• Call Us : 03082533000 (WhatsApp)
  • Email Us : TestPointpk.com@gmail.com
Sticky Note
What is a deadlock in multithreading?
ملٹی تھریڈنگ میں ڈیڈلاک کیا ہے؟
  1. When threads finish too quickly
  2. When threads block each other permanently while waiting for resources
  3. When threads execute sequentially
  4. When threads share data safely
Explanation
  • A deadlock occurs when two or more threads wait indefinitely for resources held by each other.
  • None of the threads can proceed, causing the program to freeze.
  • Deadlocks often happen when threads acquire multiple locks in different orders.
  • Proper resource management and lock ordering help prevent deadlocks.
  • Deadlocks are a key concern in multithreading and concurrent programming.
  • Related MCQs

    ان میں سے کون سی ایک قسم کی ساؤنڈ فائل ہے۔
    1. .DAT files
    2. .LOG files
    3. .DRV files
    4. .WAV files
    اس سوال کو وضاحت کے ساتھ پڑھیں

    ایم ورڈ میں گٹر مارجن کیا ہوتا ہے؟
    1. Margin that is added to the Left margin when printing
    2. Margin that is added to the binding side of page when printing
    3. Margin that is added to the right margin when printing
    4. None of these
    اس سوال کو وضاحت کے ساتھ پڑھیں

    ایک ________ ایسا سنگل چپ ہوتا ہے جس میں دو یا زیادہ الگ پروسیسر کورز ہوتے ہیں۔
    1. Transistor
    2. Multi-core processor
    3. Resistor
    4. None of these
    اس سوال کو وضاحت کے ساتھ پڑھیں

    ایک ______ انٹرنیٹ سروس ہے جو کمپیوٹر صارفین کو ریموٹ اسٹوریج فراہم کرتی ہے۔
    1. Smart TV
    2. Cloud Storage
    3. Solid-state drive (SSD)
    4. Bluetooth
    اس سوال کو وضاحت کے ساتھ پڑھیں

    مائیکروسافٹ کارپوریشن کی بنیاد ______ نے رکھی ہے؟
    1. Billgates
    2. Paul Allen
    3. Both A and B
    4. None of these
    اس سوال کو وضاحت کے ساتھ پڑھیں

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    1 + 2 = ?



    All Rights Reserved © TestPointpk.com