SSC IMD SA 2017 – Question 147

Question:

Which of the following is true about an asynchronous call?

निम्न में से कौन सा एसिंंक्रोोनस कॉल के बारे में सही है?

Options:

  • It returns immediately without waiting for the I/O to complete.
  • It does not return immediately and waits for the I/O to complete.
  • It takes a lot of time.
  • It is very slow.
  • I / O को पूरा करने के लिए प्रतीक्षाा किए बिना यह तत्काल वापस आता है।
  • यह तुरंत नहींं लौटता है और I / O को पूरा करने के लिए इंतजार करता है।
  • यह बहुत समय लेता है।
  • यह बहुत धीमा है।

Correct Answer: a)

Explanation:

Detailed Explanation:

The correct answer is a) It returns immediately without waiting for I/O to complete (I / O को पूरा करने के लिए प्रतीक्षा किए बिना यह तत्काल वापस आता है।).

In operating systems, I/O operations can be executed synchronously or asynchronously:

  • Asynchronous I/O (Non-blocking I/O): When an application initiates an asynchronous I/O call, the operating system registers the request, initiates the hardware transfer, and returns control immediately to the user program without waiting for the physical data transfer to complete. The calling process continues execution concurrently with the ongoing I/O operation. When the I/O transfer is finished, the process is informed via a signal, event notification, or callback.
  • Synchronous I/O (Blocking I/O): The calling thread is suspended (put into a wait state) and does not regain control until the entire I/O operation has physically completed.

Hence, asynchronous calls provide high concurrency and responsiveness by returning immediately.

विस्तृत व्याख्या:

सही उत्तर a) I / O को पूरा करने के लिए प्रतीक्षा किए बिना यह तत्काल वापस आता है। है।

ऑपरेटिंग सिस्टम में I/O कॉल्स दो प्रकार की होती हैं:

  • एसिंक्रोनस I/O (Asynchronous / Non-blocking I/O): जब कोई प्रोग्राम एसिंक्रोनस I/O कॉल करता है, तो ऑपरेटिंग सिस्टम I/O ऑपरेशन शुरू कर देता है और I/O पूरा होने की प्रतीक्षा किए बिना तुरंत कॉलिंग प्रोग्राम को नियंत्रण वापस लौटा देता है। इससे प्रोग्राम बिना रुके अपने अन्य कार्यों को समानांतर (parallel) रूप से जारी रख सकता है। I/O पूरा होने पर सिग्नल या कॉलबैक द्वारा सूचित किया जाता है।
  • सिंक्रोनस I/O (Synchronous / Blocking I/O): इसमें प्रोग्राम तब तक ब्लॉक (प्रतीक्षा) रहता है जब तक कि I/O ऑपरेशन पूरी तरह से समाप्त न हो जाए।

अतः विकल्प (a) सही है।

Leave a Comment

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

Scroll to Top