Click here to Skip to main content
15,886,919 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: I Can Not Manage This Task Pin
jochance9-Feb-24 12:03
jochance9-Feb-24 12:03 
GeneralRe: I Can Not Manage This Task Pin
obermd5-Feb-24 16:00
obermd5-Feb-24 16:00 
GeneralRe: I Can Not Manage This Task Pin
honey the codewitch5-Feb-24 16:04
mvahoney the codewitch5-Feb-24 16:04 
GeneralRe: I Can Not Manage This Task Pin
obermd6-Feb-24 5:02
obermd6-Feb-24 5:02 
GeneralRe: I Can Not Manage This Task Pin
Richard Andrew x646-Feb-24 12:48
professionalRichard Andrew x646-Feb-24 12:48 
GeneralRe: I Can Not Manage This Task Pin
honey the codewitch6-Feb-24 12:51
mvahoney the codewitch6-Feb-24 12:51 
GeneralRe: I Can Not Manage This Task Pin
BernardIE53176-Feb-24 10:22
BernardIE53176-Feb-24 10:22 
GeneralRe: I Can Not Manage This Task Pin
honey the codewitch6-Feb-24 12:55
mvahoney the codewitch6-Feb-24 12:55 
Up to a point, yes - that point being the number of threads being roughly equal to the number of virtual or logical "cpu cores" you have (hyperthreading effectively doubles that number on many CPUs because each core - p-core at least can run two threads).

Any threads created after that are no longer truly concurrent, but may still make sense to create in some cases if they'll be waiting (I/O bound) - that's not the case with your current situation which is all CPU bound.

Bottomline is if your chip has hyperthreading and 4 cores it can run 8 threads concurrently. After that it is divvying up one or more cores to do multiple tasks, which is extra overhead without extra benefit, again, in your situation.

What I would do is use System.Threading.ThreadPool and simply call QueueUserWorkItem to run each of those functions. Let the ThreadPool figure out when to schedule.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix

GeneralRe: I Can Not Manage This Task Pin
RedDk6-Feb-24 13:03
RedDk6-Feb-24 13:03 
GeneralRe: I Can Not Manage This Task Pin
Davyd McColl6-Feb-24 23:45
Davyd McColl6-Feb-24 23:45 
GeneralRe: I Can Not Manage This Task Pin
maze37-Feb-24 2:58
professionalmaze37-Feb-24 2:58 
GeneralRe: I Can Not Manage This Task Pin
Member 105614937-Feb-24 4:09
Member 105614937-Feb-24 4:09 
GeneralRe: I Can Not Manage This Task Pin
thewazz7-Feb-24 9:24
professionalthewazz7-Feb-24 9:24 
GeneralRe: I Can Not Manage This Task Pin
pmauriks7-Feb-24 16:04
pmauriks7-Feb-24 16:04 
GeneralStenography Pin
BernardIE53175-Feb-24 13:19
BernardIE53175-Feb-24 13:19 
GeneralRe: Stenography Pin
jmaida5-Feb-24 16:47
jmaida5-Feb-24 16:47 
GeneralWordle 962 Pin
StarNamer@work5-Feb-24 13:13
professionalStarNamer@work5-Feb-24 13:13 
GeneralRe: Wordle 962 Pin
Shane01035-Feb-24 16:59
Shane01035-Feb-24 16:59 
GeneralRe: Wordle 962 Pin
Luc Pattyn5-Feb-24 17:15
sitebuilderLuc Pattyn5-Feb-24 17:15 
GeneralRe: Wordle 962 Pin
Jeremy Falcon6-Feb-24 7:40
professionalJeremy Falcon6-Feb-24 7:40 
GeneralRe: Wordle 962 Pin
Sandeep Mewara5-Feb-24 18:16
mveSandeep Mewara5-Feb-24 18:16 
GeneralRe: Wordle 962 Pin
GKP19925-Feb-24 18:20
professionalGKP19925-Feb-24 18:20 
GeneralRe: Wordle 962 Pin
Amarnath S5-Feb-24 18:26
professionalAmarnath S5-Feb-24 18:26 
GeneralRe: Wordle 962 Pin
OriginalGriff5-Feb-24 19:45
mveOriginalGriff5-Feb-24 19:45 
GeneralRe: Wordle 962 - 4 4 me Pin
pkfox5-Feb-24 20:56
professionalpkfox5-Feb-24 20:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.