Click here to Skip to main content
15,916,042 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: 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 
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 
Having written FSMs using event driven programming I 100% agree. In communications domains FSMs are far easier to debug and prove correct once debugged. I find it interesting that every single blog I've read that talks about high speed IO in Windows and dotNet ends up implementing some form of a FSM and/or pure event driven architecture.

For OP's question, every service has at least two threads - one that monitors for service control commands (start/stop/pause/resume) and one that does the work. Many applications, including MS-Word and Excel, implement some form of rudimentary memory and resource management and they use background threads to assist with cleanup. All Java and dotNet based applications implement several threads for resource management. However, most of these threads are in a wait state waiting for either an OS level event trigger or an application level event trigger, so the overall CPU time is low.

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 
GeneralRe: How do you handle this? Pin
Eytukan11-Jul-18 7:56
Eytukan11-Jul-18 7:56 
GeneralRe: How do you handle this? Pin
Marc Clifton11-Jul-18 11:39
mvaMarc Clifton11-Jul-18 11:39 
AnswerRe: How do you handle this? Pin
Eddy Vluggen11-Jul-18 4:52
professionalEddy Vluggen11-Jul-18 4:52 
GeneralRe: How do you handle this? Pin
Eytukan11-Jul-18 7:57
Eytukan11-Jul-18 7:57 
AnswerRe: How do you handle this? Pin
Mycroft Holmes11-Jul-18 15:40
professionalMycroft Holmes11-Jul-18 15:40 

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.