
Ultimate access to all questions.
Deep dive into the quiz with AI chat providers.
We prepare a focused prompt with your quiz and certificate details so each AI can offer a more tailored, in-depth explanation.
Um dispositivo de E/S pode acionar o seu software controlador (device driver) para realizar uma tarefa enquanto este esteja realizando o tratamento de outra tarefa do dispositivo. Por exemplo, enquanto o device driver da placa de rede processa um pacote que acabou de chegar, ele é interrompido para tratar a chegada de um novo pacote. Essa característica de um device driver é denominada código:
A
Assíncrono.
B
Assimétrico.
C
Elástico.
D
Reentrante.
E
Recursivo.
Explanation:
This question is about operating system concepts related to device drivers. The scenario describes a device driver that can be interrupted while processing one task to handle another task from the same device. This is a classic characteristic of reentrant code.
Key Concepts:
Reentrant Code: Code that can be safely interrupted and re-entered (called again) before the previous execution has completed. This is essential for device drivers that handle interrupts, as they must be able to handle new interrupts while still processing previous ones.
Why other options are incorrect:
Real-world application: Device drivers in operating systems must be reentrant because hardware interrupts can occur at any time, and the driver must be able to handle new interrupts even while processing previous ones. This prevents data corruption and ensures system stability.
Correct Answer: D) Reentrante (Reentrant)