[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Coroutines / Threads
At 07:03 PM 17/12/98 +0100, Tim Teulings wrote:
>Hallo!
>
>> Just a query, before I think about re-inventing any wheels. Is there some
>> work that has been done on implementing Oakwood Coroutines or a Threads
>> module for OO2C? How far from re-entrant does the library appear to be at
>> this point?
>
>I have ported enough of the pthreads header of my Redhat Linux to get a
>minimal "al threads do cnsole output at the same time" program up and
>running. However since I had no need for threads and since it was not
>clear how threads would interact with the gc I did not move on.
The GC is designed to be thread-safe. In a multi-threaded environment a
couple of macros need to be defined to establish mutual exclusion between
the allocator and the collector. These macros call code in a
system-dependent threads module. The latest version (4.13 alpha 3) seems to
have in-built support for threads under linux, irix, solaris and win32.
- Stewart