Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C 

how to multi-thread efficiently in c++?

I've seen people making some sort of program/bots that can run the same task with simultaenously... 200+ threads running at once. Any tutorial on how to do this? 🤝
200+ threads is not efficient.

But here is some papers : http://bfy.tw/KEgH
Yeah your CPU only has so many hardware threads, so just adding more is stupidity.
Getting Started: C/C++
[C/C++/.NET/x86 ASM - Automation Programmer]
(Oct 6, 2018 06:34 PM)0xDEAD10CC Wrote:  Yeah your CPU only has so many hardware threads, so just adding more is stupidity.

I've seen people with their bots, having an option to run 500 threads. I have no idea what is the real term for this. That's why I've added this to the original post.
I'm talking about running the same program, but simultaneously, doing the task simultenaously x100 times.
how would I do that?
(Oct 6, 2018 07:19 PM)pmtobefriend Wrote:  I've seen people with their bots, having an option to run 500 threads. I have no idea what is the real term for this. That's why I've added this to the original post.
I'm talking about running the same program, but simultaneously, doing the task simultenaously x100 times.
how would I do that?

The only reason their bots run 500 simultaneous threads is because they have no real understanding of synchronisation and cpu resources. Microsoft recommends if you are going to multithread, to run no more than twice the number of your processor cores. But 99% of problems people use multithreads for can be solved through async and callbacks.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by trueFeb 27, 2018 03:25 AM 13 639 Feb 27, 2018 03:25 AM
Last Post: cocaine_monkey
[C] by Silent SweatOct 8, 2014 08:53 PM 4 164 Oct 8, 2014 08:53 PM
Last Post: 0xDEAD10CC
[C#] by bmr03Apr 22, 2013 10:36 PM 4 197 Apr 22, 2013 10:36 PM
Last Post: BaussHacker