• 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. Photoshop
    2. MS Windows
    3. MS Word
    4. None of these
    اس سوال کو وضاحت کے ساتھ پڑھیں

    مندرجہ ذیل میں سے کون سا کلائنٹ آپریٹنگ سسٹم ہے؟
    1. Windows Server 2016
    2. Windows Server 2012
    3. Windows 10
    4. None of these
    اس سوال کو وضاحت کے ساتھ پڑھیں

    اسکرین کی تصویر کو کلپ بورڈ پر کاپی کرنے کے لیے کیا استعمال کرسکتےھیں۔
    1. Print screen key
    2. Alt key
    3. Both
    4. Shift key
    اس سوال کو وضاحت کے ساتھ پڑھیں

    وہ کمپیوٹر پروگرام جو پروگرام کی ہدایات کو ایک وقت میں ایک ہدایت مشینی زبان میں تبدیل کرتا ہے، کیا کہلاتا ہے؟
    1. Interpreter
    2. Compiler
    3. CPU
    4. Interpreter
    اس سوال کو وضاحت کے ساتھ پڑھیں

    مشینی زبان کے پروگرام کے بنیادی اجزاء کیا ہیں؟
    1. Statements
    2. Directives
    3. Injunctions
    4. Instructions
    اس سوال کو وضاحت کے ساتھ پڑھیں

    All Rights Reserved © TestPointpk.com