- Multiplication of polynomials.
- Binary merge.
- Doubling.
- Block multiplication of a matrix by a vector.
- Odd even marger sort.
- Block sorting.
- Dining Philosophers.
- Barbershop Problem.
Multiplication of two polynomials using the formula for calculating the k-th coefficient.
Using a pass of array A relative to B and array B relative to A.
To deal with the race condition when adding up to the final vector, a synchronization mechanism is used. Mutex.
Mutex - fork. Semaphore - number of chairs.
Client-server model. Two tables - two data structures. Interaction with the table - mutex. Waiting for a client or Barber to act - semaphore.