iOS Question Threads

Discussion in 'iOS Questions' started by Semen Matusovskiy, May 6, 2019.

  1. Semen Matusovskiy

    Semen Matusovskiy Well-Known Member Licensed User

    Hi, gues --

    Does B4I use one thread only (like in B4a) and we don't need to think about semaphores, critical sections etc. ?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    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.
     
  3. Semen Matusovskiy

    Semen Matusovskiy Well-Known Member Licensed User

    I have some modules with timers. "Tick" subroutines change common variables.
    Is it correct that I do not need to think about locking ?
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    That's correct.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice