Readers and Writers
Simulate the readers and writers problem by using a pool of randomly generated threads:
Each thread should either be a reader or a writer.
Number of readers simultaneously accessing the DB should be at most 10.
Number of writers simultaneously accessing the DB should be at most 2.
On every step of simulation, a description of the action should be printed out:
New reader - X.
Reader X is accessing the DB.
New writer - Y.
Writer Y is accessing the DB.
Also, at all times total number of readers (waiting/active) and writers (waiting/active) should be visible.
Choice of the programming language is not restricted, but usage of C++ or Java is preferred.
Hi, I'm experienced C/C++ developer with a special knowledge of operating systems. So I can help you with this task using C or C++.. Kind regards, Mostafa
16 pekerja bebas membida secara purata $40 untuk pekerjaan ini
Hello, I'm a software engineer and developer with ample experience in C and C++ programming, network programs, threading, database connectivity, benchmarkings and simulations.
Hello, I'm an intermediate-level C++ software engineer so I can finish this job in no time. I want to get some freelancing experience as well. Sincerely, Karol