There is still a busy wait in the main loop, so what is the benefit of interrupts?
Solution: Busy waiting is a state of the processor or the executing unit in which the process repeatedly checks for a condition to be true while waiting in the queue. An interrupt is nothing but an instruction or a signal that is sent by the processor to change the state of the process so that it can be executed efficiently and effectively by the processor.
Now, coming to this question, the interrupts are meant to change the state the processes that are present in the queue busy waiting but in this case, they will anyway in a busy waiting state due to an infinite loop in the main function. Due to this loop, it will keep on waiting for an infinite amount of time in the busy waiting state.
Here's the solution to your question, please provide it a 100% rating. Thanks for asking and happy learning!!
There is still a busy wait in the main loop, so what is the benefit of...
okay so here is my c++ code and the errors im really stuck on fixing what i did wrong it seems to be the same repeated error our job is to write a menu driven program that can convert to display Morse Code ere is the menu the program should display Menu Alphabet Initials N-Numbers - Punctuations S = User Sentence Q- Quit Enter command the user chooses A your program should use a loop and your morse code printing...