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 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 
honey the codewitch wrote:
I guess if you're doing a ton of those all the time, you may be spawning more threads to handle it, but I don't see how being able to move the window around even as the UI is lagging its update by 250ms or more all the time is much of an improvement.
If the UI isn't updated for some time, Windows gives this nice option to close your non-responsive application. Also, usually got a thread for loading grids in the background, synchronizing a progress-bar at the same time. Gives a much better user experience than normal databinding.

MSDN states that since .NET 4, it "depends" on multiple factors. MS being helpful as always, but at least it proves Google wrong. Querying the values in a new project yields below results on my machine;

GetMinThreads - workerThreads 6, completionPortThreads 6
GetMaxThreads - workerThreads 2047, completionPortThreads 1000
GetAvailableThreads - workerThreads 2047, completionPortThreads 1000
Somehow I doubt that Max and Available are the same, but that's indeed what the framework reports.
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 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 
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 
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 

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.