Hi,
Thanks for your answer. I guess threads is something that I was looking for. By concurrency I meant being able to spawn multiple threads which will logically run in parallel. Moreover having the possibility to define mutex and semaphores which are apparently done in Pike (mutex is at least done) and also barrier and join threads, etc.
Regards,
Danesh
On Fri, 02 May 2014 17:21:26 +0200, Chris Angelico rosuav@gmail.com wrote:
On Sat, May 3, 2014 at 1:14 AM, Danesh Daroui danesh.daroui@gmail.com wrote:
I wanted to ask whether there is any library implemented for Pike to support concurrency or if it planed to do so as an embedded feature or added package? I think the language has a great potential to be widely used if such enhancements are done. I am reading the book "Pike: an Introduction" and have not seen any concept about concurrency yet (I am not done with the book yet).
Hi!
What exactly do you mean by concurrency? Pike comes with a Thread module, which works very nicely for I/O-bound operations; though if you can get your head around it, single-threaded callback handling works beautifully there.
Chris Angelico