Click here to Skip to main content
15,887,027 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: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
honey the codewitch18-Jul-20 4:24
mvahoney the codewitch18-Jul-20 4:24 
GeneralRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
#realJSOP18-Jul-20 6:15
mve#realJSOP18-Jul-20 6:15 
GeneralRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
honey the codewitch18-Jul-20 7:13
mvahoney the codewitch18-Jul-20 7:13 
AnswerRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
Marc Clifton18-Jul-20 12:31
mvaMarc Clifton18-Jul-20 12:31 
GeneralRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
honey the codewitch18-Jul-20 12:51
mvahoney the codewitch18-Jul-20 12:51 
GeneralRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
Greg Utas18-Jul-20 13:39
professionalGreg Utas18-Jul-20 13:39 
GeneralRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
honey the codewitch18-Jul-20 13:52
mvahoney the codewitch18-Jul-20 13:52 
AnswerRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
Eddy Vluggen19-Jul-20 0:33
professionalEddy Vluggen19-Jul-20 0:33 
honey the codewitch wrote:
I expect more like a few at most for most applications, and a well written app shouldn't have more CPU bound operations than there are CPU cores (or hardware threads) when possible, so why so many?
Threads fortunately aren't limited to the amount of CPU cores; that'd be quite unusable. Instead of having a thread for each core, we bind them to functionality that is either or not suspended.

Even in the days of single-core desktops my WinForm apps would spawn multiple threads (as do most applications). If the user would click anything, I'd spawn a thread so that the UI would stay nicely responsive and drawing, and the user would have immediate feedback on his action (as opposed to SQL Server update which doesn't show a window and you have to launch taskman just to check whether it is still running).

Also take into account that the amount of threads in the pool might not be "per application".
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.

GeneralRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
honey the codewitch19-Jul-20 1:06
mvahoney the codewitch19-Jul-20 1:06 
GeneralRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
Eddy Vluggen19-Jul-20 2:07
professionalEddy Vluggen19-Jul-20 2:07 
GeneralRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
honey the codewitch19-Jul-20 2:12
mvahoney the codewitch19-Jul-20 2:12 
GeneralRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
Eddy Vluggen19-Jul-20 3:08
professionalEddy Vluggen19-Jul-20 3:08 
GeneralRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
honey the codewitch19-Jul-20 2:15
mvahoney the codewitch19-Jul-20 2:15 
GeneralRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
Eddy Vluggen19-Jul-20 3:08
professionalEddy Vluggen19-Jul-20 3:08 
GeneralRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
honey the codewitch19-Jul-20 3:53
mvahoney the codewitch19-Jul-20 3:53 
GeneralRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
Eddy Vluggen19-Jul-20 4:19
professionalEddy Vluggen19-Jul-20 4:19 
GeneralRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
honey the codewitch19-Jul-20 4:30
mvahoney the codewitch19-Jul-20 4:30 
GeneralRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
Eddy Vluggen19-Jul-20 5:21
professionalEddy Vluggen19-Jul-20 5:21 
GeneralRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
honey the codewitch19-Jul-20 5:43
mvahoney the codewitch19-Jul-20 5:43 
GeneralRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
Eddy Vluggen19-Jul-20 3:48
professionalEddy Vluggen19-Jul-20 3:48 
GeneralRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
honey the codewitch19-Jul-20 3:49
mvahoney the codewitch19-Jul-20 3:49 
GeneralRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
Eddy Vluggen19-Jul-20 4:05
professionalEddy Vluggen19-Jul-20 4:05 
GeneralRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
honey the codewitch19-Jul-20 4:44
mvahoney the codewitch19-Jul-20 4:44 
GeneralRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
Eddy Vluggen19-Jul-20 5:37
professionalEddy Vluggen19-Jul-20 5:37 
GeneralRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
honey the codewitch19-Jul-20 5:39
mvahoney the codewitch19-Jul-20 5:39 

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.