2 ms·
If the resource is shared and being accessed from many threads and is both written to and read from then it is the correct behavior to to lock it with the prope
by FpUser 6y ago
If the resource is shared and being accessed from many threads and is both written to and read from then it is the correct behavior to to lock it with the proper type of lock at access time. Depending on resource it might be possible to split it into few with more granular access.
As for novices: they are called that for reason and supposed to be under supervision rather than allowed running wild.
- secondcoming 6y agoWhy is this being downvoted? It's the truth. HN needs to only allow downvotes that have an accompanying explanation comment.
- teslalang 6y agoAs with most other compromised social sites, no badthink allowed here and how dare you.
- FpUser 6y agoHN uses downvotes mostly to boo the people with opinions deviating from common party line. As for reasonable explanation - you're asking too much. Programming as many other things often are treated as the religion. No arguments, it just is.