Site icon T4Tutorials.com

Memory Management in RTOS – Real-time Systems MCQs

1. What is the main purpose of memory management in an RTOS?

(A) To execute tasks sequentially only


(B) To increase CPU idle time


(C) To ignore task priorities


(D) To allocate and protect memory for tasks and kernel objects



2. Which type of memory is commonly used in RTOS for fast access?

(A) Tape drives


(B) Hard disk


(C) Optical storage


(D) RAM (Random Access Memory)



3. Which RTOS memory management technique allocates memory before task execution?

(A) Paging


(B) Dynamic memory allocation


(C) Static memory allocation


(D) Segmentation



4. Which memory allocation method can handle tasks created at runtime?

(A) Fixed memory mapping


(B) Static allocation only


(C) Dynamic memory allocation


(D) Batch allocation only



5. What is a major advantage of static memory allocation in RTOS?

(A) Reduces CPU idle time


(B) Flexible allocation at runtime


(C) Predictable and deterministic behavior


(D) Automatically increases task priority



6. A major disadvantage of dynamic memory allocation in RTOS is:

(A) Reduced CPU utilization


(B) Deterministic execution


(C) Possibility of fragmentation and unpredictable allocation time


(D) Fixed task periods



7. Which kernel service manages memory allocation and protection in RTOS?

(A) Timer management


(B) Task scheduler


(C) IPC module


(D) Memory manager



8. Memory protection in RTOS is important to:

(A) Ignore deadlines


(B) Increase CPU idle time


(C) Reduce task WCET only


(D) Prevent tasks from accessing each other’s memory illegally



9. Which of the following can improve real-time performance of memory management?

(A) Using disk-based memory only


(B) Allocating memory dynamically for all tasks


(C) Using fixed-size memory blocks and avoiding dynamic allocation during runtime


(D) Ignoring task priorities



10. In RTOS, stack memory is used for:

(A) Holding disk files


(B) Storing local variables and function call information for tasks


(C) Storing shared resources only


(D) Task scheduling only



11. Heap memory in RTOS is typically used for:

(A) Disk scheduling only


(B) Storing task periods


(C) Dynamic allocation of memory for tasks and objects


(D) Reducing CPU utilization



12. Memory fragmentation occurs due to:

(A) Fixed-size memory blocks


(B) Static allocation


(C) Repeated dynamic allocation and deallocation of different-sized memory blocks


(D) Using periodic tasks only



13. Which memory management scheme is preferred in hard real-time systems?

(A) Paging


(B) Dynamic allocation


(C) Static memory allocation


(D) Segmentation



14. Stack overflow in RTOS occurs when:

(A) CPU idle time increases


(B) Heap is empty


(C) A task uses more stack memory than allocated


(D) Task periods are too long



15. Which RTOS mechanism isolates task memory?

(A) Message passing only


(B) Task scheduler only


(C) Timer interrupts


(D) Memory protection unit (MPU) or memory management unit (MMU)



16. Fixed-size memory blocks can help prevent:

(A) Priority inversion


(B) Preemption


(C) Fragmentation


(D) Deadlocks only



17. Which RTOS memory issue can lead to unpredictable behavior?

(A) Stack allocation only


(B) Static allocation


(C) Dynamic memory allocation causing fragmentation


(D) Task synchronization



18. What is the role of a memory pool in RTOS?

(A) Pre-allocate memory blocks for predictable allocation time


(B) Increase CPU idle time


(C) Store periodic tasks only


(D) Execute batch tasks



19. Which type of RTOS task requires careful memory management to avoid deadline misses?

(A) Hard real-time tasks


(B) Soft real-time tasks


(C) Background tasks only


(D) Aperiodic tasks only



20. Proper memory management in RTOS ensures:

(A) Deterministic execution, protection, and reliable real-time performance


(B) Random task execution


(C) Ignoring deadlines


(D) Increased CPU idle time only



Exit mobile version