Reputation: 3978
I'm working on a password list generator program. This program needs to be as fast as possible. But it only uses 13% of CPU:
What should I do to make it use all CPU power available ?
Upvotes: 2
Views: 1427
Reputation: 4439
Heh. I thought it might be 8 cores. The reason is that your app is running on one thread and therefore only one core is being used. 13% is about 1/8 of 100 :)
If you can split the process up into 8 separate threads, then it will use the other 7 cores.
Upvotes: 5
Reputation: 10963
Obviously your program is only using one thread and because of this not all cores of your CPU are used.
You have to convert your program into something multithreaded
Upvotes: 3