Aiming to increase the performance when generating the source code of the project’s applications in Scriptcase, it was implemented the possibility to use more than one processor core (more than one thread) simultaneously, ie, instead of generating the source code of only one application at a time we can set how many processors core will be used.

Multithreading is a very popular programming model that allows the execution of multiple line of execution within a single context, multiple actions to be performed sharing resources and process independently. The “Line of Command” programming model provides the developer a simultaneous execution. However, it is way more interesting when it is used in a simple process allowing a parallel execution on multi-processor systems.

Model Many-To-One
The many-to-one model maps many user level threads to processor cores. The threads management is done in user requariment, but the whole process will be blocked. Moreover, since only one thread can access the processor at a time, multiple threads are unable to run in parallel multiprocessor.

Model One-To-One
The one-to-one model maps each user thread for a single core processor, generates more competition than the many-to-one model. It allows another thread to run while a thread performs a blocking system call. It also allows multiple threads to execute in parallel on multiprocessors. The only disadvantage of this model is that creating a user thread requires creating the corresponding processing thread.

Model Many-To-Many
The many-to-many model multiplexes many user-level threads to a smaller or equal to the processor cores. The number of processor threads can either be specific to a particular application as for a particular machine. Developers can create as many user threads as necessary, and the corresponding processor threads can run in parallel on a multiprocessor. Furthermore, when a thread performs a blocking system call, the processor can schedule another thread for execution.

The threads configuration on Scriptcase can be found in Options > Settings. The “Quantity of compilations in parallel” by default is set to 5 and may vary from 1 to 100. The other option is there if we will “Display the compile-time of the applications individually” or collectively for all applications.

EN_thread_01

Below is a screenshot of the new functionality in operation.

EN_thread_02

By , The most efficient web development environment. Create your web solutions in a fast and innovative way, reducing the development time in up to 80%. Access http://scriptcase.net and learn more.

August 8, 2013

a

You might also like…

The importance of training in the use of software

Today we are going to reflect on the importance of training in the use of software that, when explo...

A sneak peek on scriptcase 9.4.027!

Come check out all the new details for scriptcase version 9.4.027 !! This week we launched our n...

8 tips for working from home

Hello, how are you? We hope you are well! We know that the moment is difficult and many people a...

You might also like…

Get new posts, resources, offers and more each week.

We will use the information you provide to update you about our Newsletter and Special Offers. You can unsubscribe any time you want by clinck in a link in the footer of any email you receive from us, or by contacting us at sales@scriptcase.net. Learn more about our Privacy Police.