Reputation: 1
Hey I was hoping some one could explain something to me. I'm new to programming and so far in the program I am writing I haven't done anything with threading, but when I look at the resource monitor in windows 7 it shows 18 threads for my program.
My program is just under 1MB at this point uses about 10,000kb of private memory on average and rarely hits 1% of my cpu usage. The program still runs great but I was just a little confused and wanted some insight on this.
Should this even be something I should be concerned about and if so, what should I be looking at that might cause so many threads being used?
Upvotes: 0
Views: 100
Reputation: 19692
The threads you are seeing may well not be your own threads, they will be owned by the clr and will be handling things like garbage collection.
I'd suggest that you don't need to worry about thread management. If you need to program multiple tasks happening at once, then take a look at the Task Parallel Library (TPL). Multi threaded programming is hard, learn about it only when you really have to.
Upvotes: 6