Innovative concurrency model in a OS
A traditional operating system handles the concurrency problem using the thread model. In the last years we need more and more to use many concorrent blocks in big software application, we need to handle simply the concurrency in the complex algoritms we developped and we have to maximize the CPU time. The presence of multiple CPUs in a home PC shows to everyone that the speedup offered using traditional OS is quite low. For this reasons the thread model begins to be insufficient for managing this needs.
I propose another concurrency model.
Every program loaded in a OS has a additional memory area , handled just by the OS in which there essentially a map.
Every row of this map contains
1) concurrency id (optional)
2) start of block address
3) end of block address
4) concurency start reference (relative pointer to other row)
5) concurrecy end reference (relative pointer to other row)
The concurency start reference tells what is the previous block triggering this parallel execution.
The concurency end reference tells what is the future block must wait the execution of that block.
When a compiler assembles a program , identifies the indipendent blocks in the code as possible concurrent blocks : every one could be just fews of instructions or a huge block. Then the compiler fullfils this map.
The compiler might identifies also the the concurrent memory access if it exist and in this case it might introduces a mutex automatically.
When the os loaded this program, it executes the program and launchs as many internal threads as many concurrent block set in the concurrency map.
In this model a developer has not to write a thread explicitly, because all is managed by the compiler and the os. The developer can explicitly tells to the compiler if he want a specific block or function to be concurrent (and eventually the priority of the execution).
Innovative concurrency model in a OS by Cristian Lorenzetto is licensed under a Creative Commons Attribuzione - Non commerciale - Non opere derivate 3.0 Unported License.