Click here to Skip to main content
15,915,828 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.

 
GeneralAPOD Pin
R. Giskard Reventlov11-Jul-18 4:24
R. Giskard Reventlov11-Jul-18 4:24 
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 
The original Windows programming model didn't use threads. Everything was event driven: The entire application was waiting for something to happen, implemented as a new element in the message (/event) queue. The message was processed, conceptually by event concepts, that is: instantaneously.

Telecommunication people have programmed this way, using FSMs and state diagrams, since Day 1 of communication protocols. Other programmers never caught onto the way of thinking (although I have been using a disassembler written as a FSM: Recognizing an instruction prefix, an addressing mode or whatever were modelled as events).

Event/FSM modelling and programming is a completely different programming discipline. I haven't seen it taught in universities for at least twenty years. Nowadays, I don't think the lecturers are aware of it at all - not even in telecommunication courses. It really is a pity; event driven programming does have a lot of advantages.

Threads came in as an alternative, with all its problems. But people (especially those wiht *nix background) embraced it anyway. Every now and then I am itching to implement a complex protocol in a pure FSM manner, just to demonstrate how clean it could be. Even though other programmers might say: Yes, that looks great! I have no hope of making them do things that way themselves, though, so I never spent significant resources on it.
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 
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 

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.