Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

What is Lock splitting technique?

Pragya Keshap answered on February 6, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • What is Lock striping?

  • What is Lock splitting technique?

    0

    Lock splitting is a technique to reduce Lock contention in multithreading. It is applicable in scenario when one lock is used to

    synchronize access to different aspects of the same application.

    Sometimes we put one lock to protect the whole array. There can be

    multiple threads trying to get the lock for same array. This single

    lock on array can cause Lock contention among threads. To resolve

    this we can give one lock to each element of the array. Or we can

    use modulus function to assign different locks to a small group of

    array elements. In this way we can reduced the chance of Lock

    contention. This is Lock splitting technique.

    https://www.geeksforgeeks.org/what-is-lock-striping-in-java-concurrency/

    Popularity 1/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Tags: whatever
    Link to this answer
    Share Copy Link
    Contributed on Feb 06 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.