Embedded Systems programming. Lecture 2. Processes and threads