Загрузка...

Test Real Time Embedded System Part 2: Q6-Q10

Q6
If an LED in sinking mode is connected to Pin 5, and the code executes analogWrite(5, 64), analyze the brightness of the LED.
A.
The LED will be at full brightness.
B.
The LED will be at roughly 75% brightness.
C.
The LED will be at roughly 25% brightness.
D.
The LED will be completely OFF.
Q7
Analyze a three-tasks soft RT system of TA(30,10,28), TB(40,10, 27), and TC(50, 10, 40), and then determine the correct description at time 15ms. Priority TB TA TC.
A.
At time 15ms, the status of Task TA, TB, TC are running, blocked, and ready, respectively.
B.
At time 15ms, the status of Task TA, TB, TC are running, ready, and blocked, respectively.
C.
At time 15ms, the status of Task TA, TB, TC are running, blocked, and blocked, respectively.
D.
At time 15ms, the status of Task TA, TB, TC are running, ready, and ready, respectively.
(1 mark)

Q8
Analyze a three-tasks soft RT system of TA(30,10,28), TB(40,10, 27), and TC(50, 10, 40), and then determine the correct description at time 65ms. Priority TB TA TC.
A.
At time 65ms, the status of Task TA, TB, TC are running, blocked, and ready, respectively.
B.
At time 65ms, the status of Task TA, TB, TC are running, ready, and blocked, respectively.
C.
At time 65ms, the status of Task TA, TB, TC are running, blocked, and blocked, respectively.
D.
At time 65ms, the status of Task TA, TB, TC running, blocked, and running, respectively.
(1 mark)
Q9
A system consists of two tasks: TA(10, 5) with high priority and TB(15, 6) with low priority. If both tasks arrive at t = 0 in a preemptive scheduler, at what time does TB complete its first execution?
A.
11ms
B.
22ms
C.
16ms
D.
15ms
(1 mark)
Q10
Calculate the hyperperiod of a real-time system consisting of three periodic tasks with the following periods: T1 = 8ms, T2 = 12ms, and T3 = 24ms.
A.
12ms
B.
24ms
C.
48ms
D.
96ms

Видео Test Real Time Embedded System Part 2: Q6-Q10 канала Kim Seng Chia
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять