Click here to Skip to main content
15,916,462 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: APOD Pin
Gary Wheeler11-Jul-18 7:19
Gary Wheeler11-Jul-18 7:19 
GeneralRe: APOD Pin
glennPattonWork311-Jul-18 9:10
professionalglennPattonWork311-Jul-18 9:10 
GeneralWhat are all those threads in Windows doing? Pin
Marc Clifton11-Jul-18 3:52
mvaMarc Clifton11-Jul-18 3:52 
GeneralRe: What are all those threads in Windows doing? Pin
F-ES Sitecore11-Jul-18 4:02
professionalF-ES Sitecore11-Jul-18 4:02 
GeneralRe: What are all those threads in Windows doing? Pin
Eddy Vluggen11-Jul-18 4:46
professionalEddy Vluggen11-Jul-18 4:46 
GeneralRe: What are all those threads in Windows doing? Pin
patbob11-Jul-18 5:53
patbob11-Jul-18 5:53 
GeneralRe: What are all those threads in Windows doing? Pin
kalberts11-Jul-18 9:22
kalberts11-Jul-18 9:22 
GeneralRe: What are all those threads in Windows doing? Pin
patbob11-Jul-18 10:34
patbob11-Jul-18 10:34 
In the original windows programming model, everything had to be event driven because there were no threads. It was also all based off the windows messaging model, which was closely linked to having a window.

When threads were added, they were predominantly for background tasks, and as such it was a major pain to give them a windows message pump so you could write them event driven (you had to give them a hidden window). So, for that kind of background processing, there was a shift toward just writing the code single-threaded and using multiple threads.. unless you needed gobs of threads, in which case you used some sort of thread pooling (which, IIRC, there was no library support for at first).

I seem to recall this being the recommended practice from the teacher back when I took my Win32 programming class at MS.. but this is a lot of years ago, so maybe I misremember it all... Smile | :)

My point was, that was the prevailing best-practice when a lot of that system code was written, and I doubt it's been rewritten since.
I live in Oregon, and I'm an engineer.

GeneralRe: What are all those threads in Windows doing? Pin
kalberts11-Jul-18 22:33
kalberts11-Jul-18 22:33 
QuestionRe: What are all those threads in Windows doing? Pin
MSBassSinger12-Jul-18 7:44
professionalMSBassSinger12-Jul-18 7:44 
AnswerRe: What are all those threads in Windows doing? Pin
kalberts12-Jul-18 21:43
kalberts12-Jul-18 21:43 
GeneralRe: What are all those threads in Windows doing? Pin
Martin ISDN13-Jul-18 5:38
Martin ISDN13-Jul-18 5:38 
GeneralRe: What are all those threads in Windows doing? Pin
obermd12-Jul-18 10:22
obermd12-Jul-18 10:22 
GeneralRe: What are all those threads in Windows doing? Pin
DRHuff11-Jul-18 9:24
DRHuff11-Jul-18 9:24 
GeneralRe: What are all those threads in Windows doing? Pin
Nelek11-Jul-18 20:01
protectorNelek11-Jul-18 20:01 
GeneralRe: What are all those threads in Windows doing? Pin
TNCaver12-Jul-18 7:41
TNCaver12-Jul-18 7:41 
GeneralRe: What are all those threads in Windows doing? Pin
Gary Wheeler11-Jul-18 7:20
Gary Wheeler11-Jul-18 7:20 
GeneralRe: What are all those threads in Windows doing? Pin
raddevus11-Jul-18 8:46
mvaraddevus11-Jul-18 8:46 
GeneralRe: What are all those threads in Windows doing? Pin
Marc Clifton11-Jul-18 11:36
mvaMarc Clifton11-Jul-18 11:36 
GeneralRe: What are all those threads in Windows doing? Pin
kalberts11-Jul-18 21:56
kalberts11-Jul-18 21:56 
GeneralRe: What are all those threads in Windows doing? Pin
Stuart Dootson12-Jul-18 6:24
professionalStuart Dootson12-Jul-18 6:24 
QuestionHow do you handle this? Pin
Eytukan11-Jul-18 3:44
Eytukan11-Jul-18 3:44 
AnswerRe: How do you handle this? Pin
Marc Clifton11-Jul-18 3:48
mvaMarc Clifton11-Jul-18 3:48 
GeneralRe: How do you handle this? Pin
Eytukan11-Jul-18 4:00
Eytukan11-Jul-18 4:00 
GeneralRe: How do you handle this? Pin
raddevus11-Jul-18 4:53
mvaraddevus11-Jul-18 4:53 

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.