Multi-core computer systems are readily available, and customer expect applications to take advantage of the extra cores within their machines. Traditionally, 4D has been a single-threaded application – but overtime more and more aspects of the 4D application have been updated to take advantage of additional cores. Initially, the backend parts of 4D, such as the SQL and HTTP servers, were updated to take advantage of multi-cores. Later, language commands were progressively made thread safe. Originally this was only available in single-user mode or when the code was executed on the server. Now, starting with v17 R4, 4D Remote (i.e. 4D Clients) can also take advantage of multi-core systems as well. This tech note discusses the requirements for using preemptive mode as well as the steps necessary to ensure a thread-safe process.
Download Complete Tech Note: Tech Note Document