On Thursday 20 July 2006 04:38, Sergey Plis wrote: > Hello! > > I've asked this question before a couple of times but did not get an > answer. > > Does anyone implemented usage of POSIX threads in bigforth? I want to > make my program parallel for better cpu utilization. > > It is very sad if such thing is impossible or very hard in bigforth.
I don't think it is impossible or hard, it's just that nobody did it. A number of questions pop up when you want POSIX threads in bigFORTH: * Should that replace the build-in cooperative multitasker? * Should that be orthogonal, i.e. there's a main thread running all bigFORTH's cooperative tasks, and some side-threads running specialized tasks * What kind of services should be available for the second solution? The first one is a hard thing, since it requires to make the whole bigFORTH thread-save, while the second makes it much simpler - you only need your multithreaded application to be thread-save (and probably also the C library interface). -- Bernd Paysan "If you want it done right, you have to do it yourself" http://www.jwdt.com/~paysan/
pgpynddMSaYtu.pgp
Description: PGP signature
