Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Creating a thread may cost thousands of CPU cycles

3 views
Skip to first unread message

amin...@gmail.com

unread,
May 28, 2020, 7:38:54 PM5/28/20
to
Hello,


Creating a thread may cost thousands of CPU cycles. If you have a cheap function that requires only hundreds of cycles, it is almost surely wasteful to create a thread to execute it. The overhead alone is going to set you back.

Read more here:

https://lemire.me/blog/2020/01/30/cost-of-a-thread-in-c-under-linux/


This is why i have invented a powerful Threadpool that scales very well,
read my following thoughts about it:

https://community.idera.com/developer-tools/general-development/f/getit-and-third-party/72018/about-the-threadpool


Thank you,
Amine Moulay Ramdane.
0 new messages