Re: Re: New stackless proposal

Lenard Lindstrom <[email protected]>
Newsgroups gmane.comp.lang.prothon.user
Message-ID <Mahogany-0.66.0-4294826651-20040711-103314.00@pop3.norton.antivirus>
On Sat, 10 Jul 2004 14:38:34 -0700 Mark Hahn <[email protected]> wrote:

> ...
> Were you using an old version of my proposal when you typed this?
> 
Possibly. I downloaded a version and used it for reference.

> ...
> What did you think of the containment hierarchy idea?  Christian put his
> stamp of approval on the limitation of one thread per ThreadMgr in private
> email.  He said he will study the whole proposal soon and that he isn't mad
> at me. :-)
> 
Looks good. ThreadMgr is like Java's ThreadGroup. But since "threads" are
managed by Prothon the potential is there for allowing custom thread scheduling
by extending ThreadMgr objects. ThreadMgr could also have a proper "wait()"
method that allows a thread to suspend itself until all threads in a ThreadMgr
group have terminated. It would make sure the suspending thread is not
a member of the ThreadMgr instance to avoid deadlocks.

A final comment. Stackless channels have a way to send an exception. Will the
yield statement do the same? I used it when implementing the tasklet generator.

Lenard Lindstrom
<[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.