We all know about ADA, and the "rendezvous"
Is concurrent programming just a matter of different parts of a chip doing separate tasks, then contacting other addresses at crucial points, or is it just another version of "time slicing"?
HB
by hamsterbait 2 Replies latest jw friends
We all know about ADA, and the "rendezvous"
Is concurrent programming just a matter of different parts of a chip doing separate tasks, then contacting other addresses at crucial points, or is it just another version of "time slicing"?
HB
It can be either.
Basically it means the computer is performing two or more processes at the same time.
If you have one processor, the processor will do a little bit on one process, then othe other, then the first, then the other... and so on until both processes are complete. (Time Slice)
If you have two or more processors, one processor will handle one process and the other processor will handle the other process... both executing simultaneously. (Parallel Processing)
This can be done by manually creating separate threads that run at the same time. But compiler improvements are being made to take advantage of multiple processor cores automatically instead of making programmers do this manually. This can be done by giving the compiler hints that certain things are safe to do at the same time.