Login
Roast topics
Find topics
Find it!
From:
Stack Overflow
(Uncensored)
subscribe
c++ - How can multiple threads, running on a single core, have a data race? - Stack Overflow
https://stackoverflow.com/questions/38732259/how-can-multiple-threads-running-on-a-single-core-have-a-data-race
links
backlinks
Roast topics
Find topics
Roast it!
I have the following simple c++ source : #define CNTNUM 100000000 int iglbcnt = 0 ; int iThreadDone = 0 ; void *thread1(void *param) { /* pid_t tid = syscall(SYS_gettid); cpu_set_t se...