comp.lang.ada
 help / color / mirror / Atom feed
From: Adam Beneschan <adam@irvine.com>
Subject: Re: A curiosity...
Date: Thu, 4 Dec 2008 13:17:27 -0800 (PST)
Date: 2008-12-04T13:17:27-08:00	[thread overview]
Message-ID: <d49568ae-d205-457f-bf10-61e08b23b858@t26g2000prh.googlegroups.com> (raw)
In-Reply-To: a88dafcc-04d0-4a46-a168-7cb034894181@k41g2000yqn.googlegroups.com

On Dec 4, 12:47 pm, mockturtle <framefri...@gmail.com> wrote:

> Excuse me  while I turn the heat up... I suddenly
> feel a chill down my spine.... ;-)

Just in case that chill is starting to go away, please remember that
the kids who are learning C from tutorials like that today, are the
ones who will be writing the programs that go into automobiles and
airplanes and nuclear weapons in the next generation.  That chill
coming back yet?

Sorry about that.  :)  OK, maybe this will make you feel better:

int main()
{
    int t;
    pthread_t th[10];
    int args[10];

    for (t=0; t<10; t++) {
      args[t] = t;
      pthread_create(&th[t], NULL, thr_main, (void*) &args[t]); }
}

Ahhh, sanity at last...  (Or at least as much as you can expect from
C...)

                                 -- Adam




  reply	other threads:[~2008-12-04 21:17 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-04 20:47 A curiosity mockturtle
2008-12-04 21:17 ` Adam Beneschan [this message]
2008-12-04 21:48   ` Hyman Rosen
2008-12-04 22:04     ` Ludovic Brenta
2008-12-04 22:10       ` Ludovic Brenta
2008-12-04 22:24         ` Hyman Rosen
2008-12-05  8:02         ` Samuel Tardieu
2008-12-05 11:51           ` Peter C. Chapin
2008-12-05 13:09           ` Martin Krischik
2008-12-05 15:15             ` Hyman Rosen
2008-12-06 13:26             ` Peter C. Chapin
2008-12-05 16:37           ` Keith Thompson
2008-12-04 22:19       ` Hyman Rosen
2008-12-05  9:03       ` Georg Bauhaus
2008-12-04 22:30 ` Randy Brukardt
2008-12-04 22:57   ` Hyman Rosen
2008-12-05 16:42     ` Keith Thompson
2008-12-05 16:57       ` Hyman Rosen
2008-12-05 20:20         ` Keith Thompson
2008-12-05 20:59           ` Adam Beneschan
2008-12-06 22:53             ` Hyman Rosen
2008-12-06 23:15               ` Gary Scott
2008-12-08 15:39                 ` Hyman Rosen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox