Advanced Embedded Systems Question: Download Advanced Embedded Systems PDF

Please explain why is it better to use multi-threading polling then single threading model?

Tweet Share WhatsApp

Answer:

Multi-threading allows a simple thread to be stored and polled. There is no Input/output function that is applied when it is having the poll. When there is no poll available to spawn it makes the system to sleep for an amount of time till the request for another poll reaches. If there is one process that is running then it divides that process into multiple threads and processes it accordingly. It allows the main thread to process all the request and produce the output by combining all other. Multi-threading allows the main thread not to put off the result or the output that will be generated. It also allow the priority of the thread to be changed by allowing to set the priority of the input/output process. It also has some problems with the polling interval that can make a thread starve for some time if the request isn’t handled properly.

Download Advanced Embedded Systems PDF Read All 76 Advanced Embedded Systems Questions
Previous QuestionNext Question
Please explain what is the need for having multibyte data input and output buffers in case of device ports?Explain me why does pre-emptive multi-threading used to solve the central controller problem?