Click here to Skip to main content
15,886,017 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 6:23
mveRickZeeland28-Feb-21 6:23 
GeneralRe: Electron? Pin
Mike Hankey28-Feb-21 6:31
mveMike Hankey28-Feb-21 6:31 
GeneralRe: Electron? Pin
#realJSOP28-Feb-21 6:35
mve#realJSOP28-Feb-21 6:35 
GeneralRe: Electron? Pin
Mike Hankey28-Feb-21 7:15
mveMike Hankey28-Feb-21 7:15 
GeneralRe: Electron? Pin
Daniel Pfeffer28-Feb-21 8:14
professionalDaniel Pfeffer28-Feb-21 8:14 
GeneralRe: Electron? Pin
Mike Hankey28-Feb-21 8:25
mveMike 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 
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 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
professionalGreg 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
Gary R. Wheeler27-Feb-21 13:31 
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
Member 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
Member 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
Member 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
Member 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
Member 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
Member 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 

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.