Windows also has multiple processes has process priotities switches between multiple process, how RTOS is different from that? RTOS has predictable timing constranints. Paging Paging is a techinque where in the OS makes available the data required as quickly as possible. It stores some pages from the aux device to main memory and when a prog needs a page that is not on the main memory it fetches it from aux memory and replaces it in main memory.
It uses specialised algorithms to choose which page to replace from in main memory. Caching It deals with a concept where the data is temperorarily stored in a high speed memory for faster access. This data is duplicated in cache and the original data is stored in some aux memory. This concepts brings the average access time lower. Segmentation Segmentation is a memory management scheme.
This is the technique used for memory protection. Any accesses outside premitted area would result in segmentation fault. Same as paging. Write a code to check whether a stack grows upwards or downwards? For process synchronization, it is a mechanism to invoke the sleeping process to become ready for execution. Its mechanism where a process can wait for resources to be available. The producer process creates resources and signals the semaphore saying resource is available.
Consumer process waiting on the semaphore gets the signal that resource is available. Write a small piece of code protecting a shared memory variable with a semaphore? Binary semaphore and counting semaphore. Binary semaphore is same as mutex. Binary semaphore tries to protect only one resource. Counting semaphore is used in case of multiple resource. For ex: we have 4 printers then the counting semaphore value will be init to 4. When it reaches 0, the task waiting on the semaphore is suspended.
Show Answer Feedback The correct answer is: 2 is necessary and 1 is sufficient. Maximize the throughput of the system b. Maximize the processor utilization c. Minimizing the response time d. Response within certain stipulated time period Show Answer Feedback The correct answer is: Minimizing the response time 10 Use of robot by the car manufacturing companies is an example of Select one: a.
Which of the following best described the scheduling policy design: Select one: a. The scheduler must follow a pre-emptive policy b. The scheduler must not use pre-emptive policy option c. The scheduler must not only use pre-emptive policy options with the priority considerations. The scheduler must not use pre-emptive policy option, but must employ priority consideration.
Show Answer Feedback The correct answer is: The scheduler must not use pre-emptive policy option, but must employ priority consideration. Show Answer Feedback The correct answer is: is the amount of time left after a job if the job was started now.
None of these Show Answer Feedback The correct answer is: aperiodic. Skip to content Skip to blog sidebar. Feedback The correct answer is: dedicated processor. Feedback The correct answer is: a task must be serviced by its deadline period. And What is the solution? When low priority thread is service and high priority theas is keep on waiting. This situation is called priority inversion. In this way only the rule high priority should execute first is follow. What is major concerns about any RTOS selection?
Interrrupt Latency means the time taken by the processor to pass the control to ISR after the interrupt is raised. Certainly this is the hardware feature. Footprint of the OS matters because with the same compiler and same optimization techniques, Different OS's will have different footprint.
So this is can be looked upon while selecting the RTOS. Synchronization support, Scheduler algos, and memory management of the OS. Write a code to connect Hardware interrupt to ISR? In case of high end processors the interrupt table will decide the interrupt vector address and whenever intterrupt pin goes low, the table is searched for type and source of interrupt.
0コメント