T
Tony Johansson
Hi!
Here is some text from e-learning that I find strange. It says:
"You can configure locks so that only a single thread may access the
resource at a given time or so that a specified number of threads may access
the resource simultaneously."
Now why on earth would anyone want to lock a resource so that a specified
number of threads may access the resource simultaneously.
This sound strange becuse that would cause a lot of error whan several
threads interfere with each other operation.
For example if several threads update an integer in a class you will get a
result that probably is wrong.
So can somebody explain why the text write so that a specified number of
threads may access the resource simultaneously.
//Tony
Here is some text from e-learning that I find strange. It says:
"You can configure locks so that only a single thread may access the
resource at a given time or so that a specified number of threads may access
the resource simultaneously."
Now why on earth would anyone want to lock a resource so that a specified
number of threads may access the resource simultaneously.
This sound strange becuse that would cause a lot of error whan several
threads interfere with each other operation.
For example if several threads update an integer in a class you will get a
result that probably is wrong.
So can somebody explain why the text write so that a specified number of
threads may access the resource simultaneously.
//Tony