Gustav Schaffter wrote:

> I think the best live example would build on the event driven
> application mentioned by Dave here.

Yes, that works.  And I do want to point out that such applications
can be written _without_ threads--and in fact have been for decades.
Instead, you use signals; something like software interrupt vector
routines.

Same problems, different decade, different solution...

> And as Dave also touched, to communicate between threads in the same
> application, the programmer is *strongly* encouraged to use IPC
> mechanisms, such as pipes, queues, etc.

Of course, one of the "strengths" of threads is that it all happens
within the same system process space--no context switches.  Using
IPC mechanisms trigger context switches, so there have been efforts
to do test-and-set mechanisms that are only valid within the context of
the current process (and its set of threads.)  Just an observation.

Cheers,
-- 
        Dave Ihnat
        [EMAIL PROTECTED]


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to