The trend in
programming language development is towards more structured forms of synchronization, such as
monitors. These synchronization abstractions usually employ semaphores or mutexes internally, but do not expose the semaphore interface directly to the programmer. This is motivated partly by the serious, hard-to-diagnose problems that often arise when semaphores are used incorrectly, a risk much reduced when synchronization is tightly coupled to the resource it controls and is managed automatically by the
language implementation rather than manually by the programmer.
沒有留言:
張貼留言