Click here to Skip to main content
14,841,989 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: Electron? Pin
Daniel Pfeffer28-Feb-21 8:14
professionalDaniel Pfeffer28-Feb-21 8:14 
GeneralRe: Electron? Pin
Mike Hankey28-Feb-21 8:25
professionalMike Hankey28-Feb-21 8:25 
GeneralRe: Electron? Pin
raddevus28-Feb-21 12:35
mvaraddevus28-Feb-21 12:35 
GeneralAnd when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch27-Feb-21 13:10
mvahoney the codewitch27-Feb-21 13:10 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Marc Clifton27-Feb-21 13:15
mvaMarc Clifton27-Feb-21 13:15 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch27-Feb-21 13:15
mvahoney the codewitch27-Feb-21 13:15 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Greg Utas27-Feb-21 13:38
mvaGreg Utas27-Feb-21 13:38 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Gary R. Wheeler27-Feb-21 13:31
MemberGary R. Wheeler27-Feb-21 13:31 
Hmm. No criticism here, just old fart woolgathering.

After a long time developing multithreaded applications (including UI's), I've come to some observations:
  • Thinking "adding a separate thread" will fix a problem generally won't.
  • If you pay attention to timeslices, you're doing it wrong.
  • If threads care about sequence of execution, you are doomed to failure.
  • Sleep(0) to force a context switch in Windows is A Bad Idea.
  • Sleep(n > 0) is even worse.
  • Indiscriminately adding synchronization primitives like critical sections, mutexes, semaphores, and so on without understanding what you're doing gives you a false sense of security.
  • Modifying thread priorities is bad karma. Please don't.

Software Zen: delete this;

GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch27-Feb-21 13:45
mvahoney the codewitch27-Feb-21 13:45 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Member 133016791-Mar-21 20:33
MemberMember 133016791-Mar-21 20:33 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch2-Mar-21 2:58
mvahoney the codewitch2-Mar-21 2:58 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Member 133016792-Mar-21 3:20
MemberMember 133016792-Mar-21 3:20 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch2-Mar-21 3:24
mvahoney the codewitch2-Mar-21 3:24 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Member 133016792-Mar-21 3:38
MemberMember 133016792-Mar-21 3:38 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch2-Mar-21 3:54
mvahoney the codewitch2-Mar-21 3:54 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Member 133016792-Mar-21 10:58
MemberMember 133016792-Mar-21 10:58 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch2-Mar-21 11:02
mvahoney the codewitch2-Mar-21 11:02 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Member 133016792-Mar-21 11:17
MemberMember 133016792-Mar-21 11:17 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch2-Mar-21 13:22
mvahoney the codewitch2-Mar-21 13:22 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Member 133016792-Mar-21 13:28
MemberMember 133016792-Mar-21 13:28 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch2-Mar-21 13:30
mvahoney the codewitch2-Mar-21 13:30 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Member 133016792-Mar-21 13:39
MemberMember 133016792-Mar-21 13:39 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch2-Mar-21 14:26
mvahoney the codewitch2-Mar-21 14:26 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Member 133016792-Mar-21 19:59
MemberMember 133016792-Mar-21 19:59 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch3-Mar-21 0:41
mvahoney the codewitch3-Mar-21 0:41 

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.