Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming.threads > #3742 > unrolled thread

Coroutines or threads ?

Started byrami17 <rami17@rami17.net>
First post2017-04-25 17:04 -0400
Last post2017-04-25 17:04 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.programming.threads


Contents

  Coroutines or threads ? rami17 <rami17@rami17.net> - 2017-04-25 17:04 -0400

#3742 — Coroutines or threads ?

Fromrami17 <rami17@rami17.net>
Date2017-04-25 17:04 -0400
SubjectCoroutines or threads ?
Message-ID<ododf9$2io$6@dont-email.me>
Hello...


I have come to an interesting subject...

Is my Object coroutines library still useful ?

Can threads do the same job as coroutines ?

I think that coroutines are still useful because a lock or a cache-line 
transfer is expensive on threads running on multicores, a cache-line 
transfer is around 400 CPU cycles on x86 , and that's too much expensive 
compared to coroutines, and the semaphore and mutex of my coroutines 
library and the contention on them are thus much much less expensive, 
other than that coroutines can yield to other functions or procedures 
inside a function or procedure, so i think that coroutines are thus 
still useful.

My Object oriented Stackful coroutines library was updated..

Now i have rendered it completly stackful for both 32 bit and 64 bit 
Delphi and FreePascal.

And it's portable to both Windows and MacOSX.

And I think it is portable to Linux, just compile it on Delphi Tokyo for 
Linux.

You can download my new version from:

https://sites.google.com/site/aminer68/object-oriented-stackful-coroutines-library-for-delphi-and-freepascal

Thank you,
Amine Moulay Ramdane.



[toc] | [standalone]


Back to top | Article view | comp.programming.threads


csiph-web