Semen Matusovskiy Well-Known Member Licensed User May 6, 2019 #1 Hi, gues -- Does B4I use one thread only (like in B4a) and we don't need to think about semaphores, critical sections etc. ?
Hi, gues -- Does B4I use one thread only (like in B4a) and we don't need to think about semaphores, critical sections etc. ?
Erel B4X founder Staff member Licensed User Longtime User May 7, 2019 #2 Semen Matusovskiy said: Does B4I use one thread only (like in B4a) Click to expand... This is not 100% accurate. Both B4A and B4i use a pool of threads for all kinds of tasks. The B4X code (your code) runs on the main thread. Upvote 0
Semen Matusovskiy said: Does B4I use one thread only (like in B4a) Click to expand... This is not 100% accurate. Both B4A and B4i use a pool of threads for all kinds of tasks. The B4X code (your code) runs on the main thread.
Semen Matusovskiy Well-Known Member Licensed User May 7, 2019 #3 I have some modules with timers. "Tick" subroutines change common variables. Is it correct that I do not need to think about locking ? Upvote 0
I have some modules with timers. "Tick" subroutines change common variables. Is it correct that I do not need to think about locking ?