Click here to Skip to main content
15,885,757 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: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch28-Feb-21 3:22
mvahoney the codewitch28-Feb-21 3:22 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Sander Rossel27-Feb-21 23:13
professionalSander Rossel27-Feb-21 23:13 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Martijn Smitshoek28-Feb-21 22:39
Martijn Smitshoek28-Feb-21 22:39 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
CARNESECCHILuc28-Feb-21 23:42
CARNESECCHILuc28-Feb-21 23:42 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch1-Mar-21 3:10
mvahoney the codewitch1-Mar-21 3:10 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
obermd1-Mar-21 3:16
obermd1-Mar-21 3:16 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
milo-xml1-Mar-21 4:41
professionalmilo-xml1-Mar-21 4:41 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch1-Mar-21 4:46
mvahoney the codewitch1-Mar-21 4:46 
Not if there's I/O or something involved, but otherwise, yes, it "probably" will.

The reason I say probably is because when you're dealing with multiple cores, they don't run in lockstep with one another. There's a small amount of non-determinism just in the fact that the cores keep their own schedulers and may not have started at precisely the same moment nor even work together***


*** they might synchronize with each other - it's a FreeRTOS-ESP32variant implementation detail I haven't looked into.

But that aside, there's also the issue of I/O, which when dealing with an external device, can introduce non-determinism.

In my code, I'm outputting to a serial UART, that's connected through an FTDI built bus/USB-bridge controller to a windows PC.

Any latency introduced by the PC will ripple back to the thread that's running waiting on I/O.
Real programmers use butterflies

GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
milo-xml2-Mar-21 3:33
professionalmilo-xml2-Mar-21 3:33 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Stuart Dootson2-Mar-21 7:14
professionalStuart Dootson2-Mar-21 7:14 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch2-Mar-21 7:22
mvahoney the codewitch2-Mar-21 7:22 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Stuart Dootson2-Mar-21 8:00
professionalStuart Dootson2-Mar-21 8:00 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch2-Mar-21 8:48
mvahoney the codewitch2-Mar-21 8:48 
GeneralInteresting demographic? Pin
#realJSOP27-Feb-21 11:38
mve#realJSOP27-Feb-21 11:38 
GeneralRe: Interesting demographic? Pin
Eddy Vluggen27-Feb-21 11:43
professionalEddy Vluggen27-Feb-21 11:43 
GeneralRe: Interesting demographic? Pin
#realJSOP27-Feb-21 11:57
mve#realJSOP27-Feb-21 11:57 
GeneralRe: Interesting demographic? Pin
Gary R. Wheeler27-Feb-21 12:32
Gary R. Wheeler27-Feb-21 12:32 
JokeRe: Interesting demographic? Pin
raddevus28-Feb-21 12:38
mvaraddevus28-Feb-21 12:38 
GeneralRe: Interesting demographic? Pin
OriginalGriff27-Feb-21 11:54
mveOriginalGriff27-Feb-21 11:54 
GeneralRe: Interesting demographic? Pin
markrlondon27-Feb-21 12:32
markrlondon27-Feb-21 12:32 
GeneralRe: Interesting demographic? Pin
Marc Clifton27-Feb-21 11:59
mvaMarc Clifton27-Feb-21 11:59 
GeneralRe: Interesting demographic? Pin
User 1505013427-Feb-21 12:25
User 1505013427-Feb-21 12:25 
GeneralRe: Interesting demographic? Pin
markrlondon27-Feb-21 12:30
markrlondon27-Feb-21 12:30 
GeneralRe: Interesting demographic? Pin
Dave Kreskowiak27-Feb-21 12:50
mveDave Kreskowiak27-Feb-21 12:50 
GeneralRe: Interesting demographic? Pin
User 1505014627-Feb-21 13:09
User 1505014627-Feb-21 13:09 

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.