Hi Jeff, Thanks again for your answer.
I understand, but I think I am having a problem. Suppose our app depends heavily on UI (and it doesđ) Suppose our app starts 8 processes showing 8 dialogs showing all kind of variables and arrays, and that need to be refreshed every X seconds Then no UI is out of the question, and pre-emptive methods donât help me a lot I guess. Now suppose I have a machine with 4 cores (What I have heard it is getting difficult to get a machine without multi-core) How can I use the 4 cores to its full extend? I am hoping you are not going to say I canât So, when it is impossible to use 4 cores within the application, is there a way to assign a core to the application? So when starting the application tell the machine to use core 1 When starting a second instance of the application tell the machine to use core 2 Etc. We are in a citrix environment, and all instances of our 4D Volume Desktop application now only use 1 core, and even worse it is using THE SAME core Now Citrix splits the time assigned to 1 4D instance by the number of 4D instances launched, while the other cores are doing totally nothing Is there a solution for this? By the way, and maybe for some of you this is obvious, but not for me: why must there be no UI involved? Wy canât I say in 4D âstart a new process showing a dialog and use core 2â, âstart another process showing a dialog and use core 4â? Gr, Piotr No, not at all. You have to first mark the method that's called first from New Process as preemptive. That method, plus all methods called by that method, and all methods called by those methods, must be written in a preemptive-safe manner (i.e. no UI, no unsafe commands, no plug-ins). If all that happens, that process will be scalable across cores. > On Jan 30, 2019, at 1:25 PM, Piotr Chabot Stadhouders via 4D_Tech > <4d_t...@xxx.xxx<mailto:4d_t...@xxx.xxx>> wrote: > > So, does 4D automagically use more cores in 4D 64-bit or what? > When I follow all pre-emptive advise in the docs or from the iNUG, do I have > a multi-core application? ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************