i have a little program that searches for perfect numbers.
now it took it 36 minutes to get to the 5th number(and last one for longint) which is 33550336. as it worked i noticed in the task manager that it only used 25% of cpu the whole time and the memory usage was really low..
i was wondering if its possible to force it to use more? and find the 5th number in less time?
ni5958 0 Newbie Poster
Recommended Answers
Jump to PostIt seems you aren't quite specifying your problem adequately.
First off, most CPU monitors are aggregate monitors, which means if you have multiple cores/processors it will only show what is utilized by the process thread. Which means, you likely have a 4-core system.
While TThread is far from …
Jump to PostYes, you can't multi-thread a process unless you have a design that needs parallelism. I don't know precisely what you are doing, but what you describe should work as long as the threads don't touch any of the same resources in the system (excepting synchronization). TThread is the tool you …
All 5 Replies
Wolfgan 17 Junior Poster
Glenn9999 0 Newbie Poster
ni5958 0 Newbie Poster
Glenn9999 0 Newbie Poster
ni5958 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.