Discussion
A circular buffer is preferred to a linear one because it
Answer: C
Correct answer: needs no data to be moved when an item is removed
A linear buffer must shuffle its contents down when the front item is taken; a ring simply advances the read index, which is one operation whatever the buffer holds. That makes the cost of insertion and removal constant, which is what an interrupt handler needs.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development