In this RTOS program below, how many threads are running? a. 4 b. 5 c. 2 d. 3 in
ID: 3834186 • Letter: I
Question
Explanation / Answer
void main(void)
{
Thread inputThread(...); //A thread has been created.
Thread outputThread(...); //A thread has been created.
inputThread.start(...); //This thread has been initialized to run.
outputThread.start(...); //This thread has been initialized to run.
...
}
So, in this code, only 2 threads are running.
The answer is: a. 2.