This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

thread vs. task

I have been in Linux world for a long time and start to study BIOS in DSP from now on.

Q1) I am confused whether task concept of BIOS is same with thread concept of Linux, or not. I am thinking this is same. Is it right?

Q2) What is the same concept with a process of Linux? It seems that BIOS is single process itself, so BIOS which is single process can make multiple task such as HWi, SWi,Task, Idle .... Is it right? It means that we cannot make multiple process (NOT task) on single BIOS. Is it right as well?

Thx in advance.

  • Hi Sangchul,

    1. A task in BIOS is a context of execution that has its own stack. So yes in that sense it is the same as a thread in Linux. A difference I think is that a BIOS task can be either statically created (meaning the task will automatically be created for you during BIOS initialization) or dynamically created, unlike in Linux where threads are created dynamically.

    2. You can think of BIOS as a single process in the sense that all of its threads (tasks, HWI, SWI, idle) share the same address space, just like all threads in a Linux process does. There is no concept of separate processes in BIOS.

    Best regards,

    Vincent

  • Hi, Vincent.

    You've pinpointed my concern. Thx a lot.

    Br,

    Sangchul.