We are moving forward with 4D v16 on preemptive multi-threading as the 4D Web Server is also becoming preemptive. Just click one checkbox and your application will support more simultaneously connected users, and process more requests in parallel. For requests using a lot of CPU time, execution can be up to 2 times faster!
In addition to the preemptive Web Server, all the 4D commands of the Web Server and HTTP Client themes are now thread-safe!
Just check the new “Use preemptive process” option in the database settings dialog and your Web Server will fully run using preemptive processes.
The example database is demonstrating the loading of a web page with many requests as well as computed data requiring a lot of CPU in both preemptive and cooperative mode. This example has 8 times faster response time as several requests was handled in parallel on 8 cores.
For more details, please take a look at the documentation: