Professional Documents
Culture Documents
CONCURRENCY
• Multiprogramming: The management of multiple
processes within a uniprocessor system.
• Multiprocessing: The management of multiple
processes within a multiprocessor.
• Distributed processing: The management of
multiple processes executing on multiple, distributed
computer systems
Principles Of Concurrency
void echo()
{
chin = getchar();
chout = chin;
putchar(chout);
}
Remainder Section.
• A classic software based solution to the critical
section problem is known as Peterson’s
solution by using Flags.
• But this approach could not work on Modern
computer architectures so , the solution for
critical section problem is done by using Locks
in hardware.
• But the hardware based solutions to the
critical section problem is complicated for
application programmers to use.
• To overcome this difficulty we can use a
synchronization tool called a “Semaphore”.
Semaphores