Click here to Skip to main content
15,117,549 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
RickZeeland28-Feb-21 7:23
mveRickZeeland28-Feb-21 7:23 
GeneralRe: Electron? Pin
Mike Hankey28-Feb-21 7:31
professionalMike Hankey28-Feb-21 7:31 
GeneralRe: Electron? Pin
#realJSOP28-Feb-21 7:35
mva#realJSOP28-Feb-21 7:35 
GeneralRe: Electron? Pin
Mike Hankey28-Feb-21 8:15
professionalMike Hankey28-Feb-21 8:15 
GeneralRe: Electron? Pin
Daniel Pfeffer28-Feb-21 9:14
professionalDaniel Pfeffer28-Feb-21 9:14 
GeneralRe: Electron? Pin
Mike Hankey28-Feb-21 9:25
professionalMike Hankey28-Feb-21 9:25 
GeneralRe: Electron? Pin
raddevus28-Feb-21 13:35
mvaraddevus28-Feb-21 13:35 
GeneralAnd when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch27-Feb-21 14:10
mvahoney the codewitch27-Feb-21 14:10 
It's bad enough that multithreaded code is nondeterministic.

I propose that it is also meta-nondeterministic: You can not even count on it to be non-deterministic

Shucks | :-\

When you need it to be unpredictable, the scheduler will inexplicably run your timeslices the exact same way, even when threads are executing on different cores, and even reboot to reboot.

I'm stuck on creating an *example* simply because I cannot create a situation wherein two secondary threads appear to be in competition (with the third thread being the main application thread) on a dual core ESP32 running FreeRTOS. I can do it where one thread is in competition with the primary thread, but it's as if the scheduler is just a dog when it comes to scheduling between two threads on the same core or something. Grrr.

It's bizarre.
Real programmers use butterflies

GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Marc Clifton27-Feb-21 14:15
mvaMarc Clifton27-Feb-21 14:15 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch27-Feb-21 14:15
mvahoney the codewitch27-Feb-21 14:15 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Greg Utas27-Feb-21 14:38
mvaGreg Utas27-Feb-21 14:38 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Gary R. Wheeler27-Feb-21 14:31
MemberGary R. Wheeler27-Feb-21 14:31 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch27-Feb-21 14:45
mvahoney the codewitch27-Feb-21 14:45 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Member 133016791-Mar-21 21:33
MemberMember 133016791-Mar-21 21:33 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch2-Mar-21 3:58
mvahoney the codewitch2-Mar-21 3:58 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Member 133016792-Mar-21 4:20
MemberMember 133016792-Mar-21 4:20 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch2-Mar-21 4:24
mvahoney the codewitch2-Mar-21 4:24 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Member 133016792-Mar-21 4:38
MemberMember 133016792-Mar-21 4:38 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch2-Mar-21 4:54
mvahoney the codewitch2-Mar-21 4:54 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Member 133016792-Mar-21 11:58
MemberMember 133016792-Mar-21 11:58 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch2-Mar-21 12:02
mvahoney the codewitch2-Mar-21 12:02 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Member 133016792-Mar-21 12:17
MemberMember 133016792-Mar-21 12:17 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch2-Mar-21 14:22
mvahoney the codewitch2-Mar-21 14:22 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Member 133016792-Mar-21 14:28
MemberMember 133016792-Mar-21 14:28 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch2-Mar-21 14:30
mvahoney the codewitch2-Mar-21 14:30 

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.