Re: state-threads / pthreads interaction on Linux
Sascha Schumann <[email protected]> Wed, 27 Nov 2002 01:08:40 +0100 (CET)
| Newsgroups | gmane.comp.lib.state-threads.user |
|---|---|
| Message-ID | <[email protected]> |
> I discovered this also. You also have to avoid librt because it depends
> on libpthread.
>
> My guess is that pthreads is doing some stack and/or heap manipulations
> which are incompatible with those of state threads.
Since my application needs inter-process locking which won't
be available through Pthreads/POSIX semaphores until Linux
2.5, I've added a SysV semaphore set manager to my app and it
is running beautifully now.
> After doing some research I found out that other projects (e.g. python,
> pth) have had similar difficulties in cygwin with their own jmp_buf tricks.
Yes, Pth also segfaults with the posted test case on Linux.
It's great how the next-generation development effort has
benefitted from State-Threads. Through on-going refinement,
the original simple design has been extended to a much more
complex one. The State-Threads package has enabled me to
make tiny steps between each evolutionary change, so that I
could validate each step.
Mike, thank you for State-Threads.
- Sascha
-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en