Was wondering if someone could help me out with this.
I have to Threads executing simultaneously. They both have a critical section where they access an SQL database. I DON'T want both the threads to execute this critical section at the same time, because
the database connection can only be used by one process at any one time. And I am not allowed to use two separate database connections for this task.
Would appreciate some help,