 |
|
| |
|
 |
 |
at Global Oneness Community.
Share your dreams and let others help you with the interpretation!
Dream Sharing Forum
|
 |
Lock computer science - Types |  | Lock computer science - Types: Encyclopedia II - Lock computer science - Types |  | Generally, locks are advisory locks, where each thread cooperates by acquiring the lock before accessing the corresponding data. Some systems also implement mandatory locks, where attempting unauthorized access to a locked resource will force an exception in the entity attempting to make the access.
A semaphore is the simplest type of lock. No distinction is made between shared (read only) or exclusive (read and write) modes. Other schemes provide for a shared mode, where several threads can acquire a shared lock for read-only access to the data. Other modes such as shared, exclusive, intend-to-exclude and ...
See also:Lock computer science, Lock computer science - Types, Lock computer science - Implementation, Lock computer science - Granularity, Lock computer science - Database locks |  | | Lock computer science, Lock computer science - Database locks, Lock computer science - Granularity, Lock computer science - Implementation, Lock computer science - Types, Semaphore (programming), Monitor (synchronization), Mutual exclusion, Critical section, Double-checked locking, Lock-free and wait-free algorithms |  | |
|  |  | Lock computer science: Encyclopedia II - Lock computer science - Types
Lock computer science - Types
Generally, locks are advisory locks, where each thread cooperates by acquiring the lock before accessing the corresponding data. Some systems also implement mandatory locks, where attempting unauthorized access to a locked resource will force an exception in the entity attempting to make the access.
A semaphore is the simplest type of lock. No distinction is made between shared (read only) or exclusive (read and write) modes. Other schemes provide for a shared mode, where several threads can acquire a shared lock for read-only access to the data. Other modes such as shared, exclusive, intend-to-exclude and intend-to-upgrade are also widely implemented.
Independent of the type of lock chosen above, locks can be classified by what happens when the lock strategy prevents progress of a thread. Most locking designs block the execution of the process requesting the lock until it is allowed to access the locked resource. A spinlock is a lock where the thread simply waits ("spins") until the lock becomes available. It is very efficient if threads are only likely to be blocked for a short period of time, as it avoids the overhead of operating system process re-scheduling. It is wasteful if the lock is held for a long period of time.
Other related archivesC, Concurrency control, Critical section, Dekker's, Double-checked locking, Lock-free and wait-free algorithms, Monitor (synchronization), Mutual exclusion, Peterson's algorithm, Semaphore (programming), Uniprocessor, atomic, compare-and-swap, computer science, concurrency control, database management system, deadlock, exception, execution, fetch-and-add, lock-free, multiprocessor, process, semaphore, spinlock, synchronization, test-and-set, threads of execution
 Adapted from the Wikipedia article "Types", under the G.N U Free Docmentation License. Please also see http://en.wikipedia.org/wiki |
|
|
More material related to Lock Computer Science can be found here:
|
|
« Back
|
Search the Global Oneness web site |
|
|
|
|
 |
Sneak-Peek of Global Oneness Community
Hi friend! The Global Oneness Community, the place for information and sharing about Oneness is not really launched yet (you will see there is still some clean up to do) ...but it is now open for a sneak-peek! And if you wish - please register and become one of the very first members to do so! Jonas
Forum Home,
Articles,
Photo Gallery,
Videos,
News,
Sitemap
...and much more!
|