Click here to Skip to main content
15,914,013 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
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 
GeneralRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
Eddy Vluggen19-Jul-20 6:32
professionalEddy Vluggen19-Jul-20 6:32 
GeneralRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
honey the codewitch19-Jul-20 6:51
mvahoney the codewitch19-Jul-20 6:51 
GeneralRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
Eddy Vluggen19-Jul-20 7:29
professionalEddy Vluggen19-Jul-20 7:29 
GeneralRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
honey the codewitch19-Jul-20 8:35
mvahoney the codewitch19-Jul-20 8:35 
Eddy Vluggen wrote:
It's not named "TwoPools".


What's in a name? Try calling GetMaxThreads() or GetAvailableThreads() and they each return two values.

Eddy Vluggen wrote:
So how would the framework know?


Because you tell it when you call QueueUserWorkItem() you're using a CPU bound thread - or at least one from the pool intended for that. When you use any of the items that use IO completion ports (like file or socket operations) .NET runs those on I/O threads for you.

multithreading - Simple description of worker and I/O threads in .NET - Stack Overflow[^]

Maybe that will help.

Eddy Vluggen wrote:
The stuff drivers are made of?


No just the stuff you're running the processor ragged with when you call QueueUserWorkItem(). I'm not counting threads that spend most of their time sleeping.
Real programmers use butterflies

GeneralRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
Eddy Vluggen19-Jul-20 8:53
professionalEddy Vluggen19-Jul-20 8:53 
GeneralRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
honey the codewitch19-Jul-20 9:09
mvahoney the codewitch19-Jul-20 9:09 
GeneralRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
Eddy Vluggen19-Jul-20 12:54
professionalEddy Vluggen19-Jul-20 12:54 
GeneralRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
honey the codewitch19-Jul-20 13:56
mvahoney the codewitch19-Jul-20 13:56 
QuestionRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
Eddy Vluggen19-Jul-20 15:38
professionalEddy Vluggen19-Jul-20 15:38 
AnswerRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
honey the codewitch19-Jul-20 16:21
mvahoney the codewitch19-Jul-20 16:21 
QuestionRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
Eddy Vluggen25-Jul-20 12:50
professionalEddy Vluggen25-Jul-20 12:50 
AnswerRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
honey the codewitch25-Jul-20 13:39
mvahoney the codewitch25-Jul-20 13:39 
AnswerRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
honey the codewitch25-Jul-20 13:50
mvahoney the codewitch25-Jul-20 13:50 
AnswerRe: Whiskey Tango Foxtrot: On thread pooling, kernel waits and Microsoftisms Pin
Hooga Booga21-Jul-20 3:46
Hooga Booga21-Jul-20 3:46 
GeneralAbout Chuck Norris... Pin
Sander Rossel18-Jul-20 0:23
professionalSander Rossel18-Jul-20 0:23 
GeneralRe: About Chuck Norris... Pin
OriginalGriff18-Jul-20 1:23
mveOriginalGriff18-Jul-20 1:23 
GeneralRe: About Chuck Norris... Pin
RickZeeland18-Jul-20 8:03
mveRickZeeland18-Jul-20 8:03 
GeneralI listen to this song and dream of a dev machine with 32GB of RAM Pin
honey the codewitch17-Jul-20 14:21
mvahoney the codewitch17-Jul-20 14:21 
GeneralRe: I listen to this song and dream of a dev machine with 32GB of RAM Pin
Sander Rossel18-Jul-20 0:24
professionalSander Rossel18-Jul-20 0:24 
GeneralRe: I listen to this song and dream of a dev machine with 32GB of RAM Pin
honey the codewitch18-Jul-20 2:48
mvahoney the codewitch18-Jul-20 2:48 
GeneralRe: I listen to this song and dream of a dev machine with 32GB of RAM Pin
kmoorevs18-Jul-20 4:48
kmoorevs18-Jul-20 4:48 

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.