Hi,

On Sat, Jul 19, 2014 at 4:07 AM, Jim Michaels <[email protected]> wrote:
>
> PTH for long-running math-type processes gives the equivalent performance of 
> coroutines,
> where the thread runs until it blocks, then the other routine runs until it 
> blocks, etc. this can run
> in user-space and requires no kernel mods.

http://www.gnu.org/software/pth/

"GNU Pth - The GNU Portable Threads"

"
Pth is a very portable POSIX/ANSI-C based library for Unix platforms
which provides non-preemptive priority-based scheduling for multiple
threads of execution (aka ``multithreading'') inside event-driven
applications. All threads run in the same address space of the server
application, but each thread has it's own individual program-counter,
run-time stack, signal mask and errno variable.
"

Also, see GNU Modula-2 (which AFAIK doesn't have a DJGPP binary, sadly):

http://www.nongnu.org/gm2/gm2-libs-isopth.html

> fsu pthreads, nice stable implmentation I hear, it's at 
> http://moss.csc.ncsu.edu/~mueller/pthreads/ and is from the Army.
> did I say this already? I think I did (sorry if I did, hope this helps if I 
> didn't).
>
> no docs in it.

Originally, I think FSU was written for GNAT Ada tasking. (But I don't
know if that was ever properly supported under DJGPP. Looks like no.)
It too is cooperative only, AFAIK.

This was first used for FreeDOS in recent years in Khusraw's p7zip
9.13 since he cleaned it up and got it working again. (Thus instead of
GNU pth + Watt-32, you only need FSU.)

http://ftp.ibiblio.org/pub/micro/pc-stuff/freedos/files/util/file/7zip/9.20.1/FSUPthreads314DJ.zip

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to