 |
|
| |
|
 |
 |
at Global Oneness Community.
Share your dreams and let others help you with the interpretation!
Dream Sharing Forum
|
 |
Lock computer science - Granularity |  | Lock computer science - Granularity: Encyclopedia II - Lock computer science - Granularity |  | An important property of a lock is its granularity. The granularity is a measure of the amount of data the lock is protecting. In general, choosing a coarse granularity (a small number of locks, each protecting a large segment of data) results in less overhead when a single process is accessing the protected data, but worse performance when multiple processes are running concurrently. This is because of increased lock contention: the more coarse the lock, the higher the likelihood that the lock will stop an unrelated process from proc ...
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 - Granularity
Lock computer science - Granularity
An important property of a lock is its granularity. The granularity is a measure of the amount of data the lock is protecting. In general, choosing a coarse granularity (a small number of locks, each protecting a large segment of data) results in less overhead when a single process is accessing the protected data, but worse performance when multiple processes are running concurrently. This is because of increased lock contention: the more coarse the lock, the higher the likelihood that the lock will stop an unrelated process from proceding. Conversely, using a fine granularity (a larger number of locks, each protecting a fairly small amount of data) increases the overhead of the locks themselves but reduces lock contention. More locks also increase the risk of deadlock.
In a database management system, for example, a lock could protect, in order of increasing granularity, a record, a data page, or an entire table. Coarse granularity, such as using table locks, tends to give the best performance for a single user, whereas fine granularity, such as record locks, tends to give the best performance for multiple users.
One strategy is to avoid locks entirely by using lock-free programming techniques.
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 "Granularity", 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!
|