Thank you for the reply. The second approach perfectly suits my needs.
However I have no clue how to pass a forth word that'd start working
in a new thread to pthread_create function (the start routine):

int  pthread_create(pthread_t  *  thread, pthread_attr_t * attr, void
*(*start_routine)(void *), void * arg);

Do you have any suggestions?

--
Sergey

On Sun, Jul 23, 2006 at 02:39:57PM +0200, Bernd Paysan wrote:
> 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/



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to