Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming.threads > #3741
| From | rami17 <rami17@rami17.net> |
|---|---|
| Newsgroups | comp.programming.threads |
| Subject | Coroutines or threads ? |
| Date | 2017-04-25 17:03 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <ododdt$2io$2@dont-email.me> (permalink) |
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.
Back to comp.programming.threads | Previous | Next — Next in thread | Find similar | Unroll thread
Coroutines or threads ? rami17 <rami17@rami17.net> - 2017-04-25 17:03 -0400
Re: Coroutines or threads ? Bonita Montero <Bonita.Montero@gmail.com> - 2017-05-07 10:52 +0200
Re: Coroutines or threads ? Bonita Montero <Bonita.Montero@gmail.com> - 2017-05-07 16:16 +0200
Re: Coroutines or threads ? Bonita Montero <Bonita.Montero@gmail.com> - 2017-05-07 16:54 +0200
csiph-web