Java

Topic: Design pattern

Explain the concurrency patterns?

Concurrency patterns prescribe the way access to shared resources is coordinatedor sequenced. By far the most common concurrency pattern is Single ThreadExecution, where it must be ensured that only one thread has access to a section ofcode at a time. This section of code is called a critical section, and typically it is asection of code that either obtains access to a resource that must be shared, suchas opening a port, or is a sequence of operations that should be atomic, such asobtaining a value, performing calculations, and then updating the value

Browse random answers: