B4J Question About Threads and Modules.

vfafou

Well-Known Member
Licensed User
Longtime User
Hello!
Erel somewhere says that the code into code modules is executed in the main thread of the application.
My question is: where is executed the code of the code modules called from a thread of a multithreaded application? In the main thread or in the thread called it?

Thank you in advance!
 

billzhan

Active Member
Licensed User
Longtime User
Guess it's about b4j server.


See thread and Erel's answers (in post #4)
[WebApp] Chatroom - Threads, Sessions and Server events



https://www.b4x.com/android/forum/threads/threadsafe-map
 
Upvote 0

vfafou

Well-Known Member
Licensed User
Longtime User
Thank you for your reply billzhan!
Yes, it's about B4J Server!

"Unless it is explicitly written that the event runs on a different thread"

How could I write that the event runs on a different thread?

Any help is highly appreciated!
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…