Re: Concurrent tasklets in Stackless Python

2009-03-19 Thread Aahz
[posted and e-mailed] In article , Minesh Patel wrote: > >Can you suggest any Python libraries for true parallelism or should I >just stick with Python Threads or asyncore Python threads are mostly only parallel for I/O (you have to write special C code to release the GIL). If you want paralle

Re: Concurrent tasklets in Stackless Python

2009-03-09 Thread Chris Rebert
On Mon, Mar 9, 2009 at 4:47 PM, Minesh Patel wrote: > On Mon, Mar 9, 2009 at 3:17 PM, Chris Rebert wrote: >> On Mon, Mar 9, 2009 at 3:05 PM, Minesh Patel wrote: >>> Is there a way for multiple tasklets to run in parallel? >> >> Seems doubtful (though I'm not an expert). >> >> From the Wikipedia

Re: Concurrent tasklets in Stackless Python

2009-03-09 Thread Minesh Patel
On Mon, Mar 9, 2009 at 3:17 PM, Chris Rebert wrote: > On Mon, Mar 9, 2009 at 3:05 PM, Minesh Patel wrote: >> Is there a way for multiple tasklets to run in parallel? > > Seems doubtful (though I'm not an expert). > > From the Wikipedia article: "Stackless microthreads are managed by the > languag

Re: Concurrent tasklets in Stackless Python

2009-03-09 Thread Chris Rebert
On Mon, Mar 9, 2009 at 3:05 PM, Minesh Patel wrote: > Is there a way for multiple tasklets to run in parallel? Seems doubtful (though I'm not an expert). From the Wikipedia article: "Stackless microthreads are managed by the language interpreter itself, not the operating system kernel—context sw

Concurrent tasklets in Stackless Python

2009-03-09 Thread Minesh Patel
Is there a way for multiple tasklets to run in parallel? I have been following the examples in http://members.verizon.net/olsongt/stackless/why_stackless.html but it seems that tasklets block for data or are scheduled and there is no way to run them concurrently. -- Thanks, Minesh Patel -- http:/