[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: stepping scripts and multi-tasking
- From: "Patrick Donnelly" <batrick.donnelly@...>
- Date: Wed, 13 Feb 2008 16:28:30 -0700
You could set up a hook for each thread and use longjmps in each
handler to jump back and forth across threads. This however will be
very inefficient if you don't use large instruction counts I think.
You would need to set up your own collaboration technique. Also this
won't protect you much from time consuming C calls (if you want to
avoid this).
Cheers,
--
-Patrick Donnelly
"One of the lessons of history is that nothing is often a good thing
to do and always a clever thing to say."
-Will Durant