Thursday, June 11, 2015

Multitasking or reactive?

0 comments
For years now, any process running in parallel of others has required a dedicated thread. We believe this paradigm to be outdated.

As the number of clients rises at an unprecedented speed, it seems no longer possible to multiply the number of threads without negatively impacting performance. We showed in our JavaEE Bench (written in French) how performance can be improved by reducing the number of threads.

To understand this, we must first differentiate soft-threads (a multi-task simulation on the same core) from hard-threads (processes running on different cores).

The soft-threads are organized by the OS in a circular list. For example, assume a distribution every 10ms and a dispatcher without priority. Every 10ms, the current process is interrupted to execute the next thread. For six threads, the loop lasts 60ms.

read more here

Leave a Reply

 
All Tech News IN © 2011 DheTemplate.com & Main Blogger .