SFWR ENG 4AA4 Assignment 2 Solutions

SFWR ENG 4AA4 - Assignment 2 Mectron/Sfwr Eng 4aa4 Due Thursday Oct 6 2011 at 12:00 Noon(In the boxes outside ITB 101 marked Mectron/SE 4AA4 1

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Assignment 2, Mectron/Sfwr Eng 4aa4 Due: Thursday, Oct. 6, 2011, at 12:00 Noon (In the boxes outside ITB 101 marked Mectron/SE 4AA4) 1. Briefly answer the following questions:[3+1+2+1+1+2+2+2] (a) With the help of diagrams showing the resources used, explain the difference between a process and a thread. Ans: Refer to slides 8 to 16 of slides2.pdf as discussed in class. (b) Explain the execution cycle of a system call with the help of a diagram. Refer to slides 23-24 of slides2.pdf and figure 1 1 Figure 1: 2 (c) What do you understand by the terms user space and supervi- sor/kernel space while talking about an operating system? ANS: Refer to lecture slides2.pdf page 25. (d) Design considerations for a real time operating system are differ- ent from those of a general purpose operating system. Give two examples to support this statement. Refer to slides 28 and 29 of slides2.pdf (e) How are the functions printf(), printk() and rt printk() different from each other? ANS: printf() is the standard print statement available in the user space printk() is the standard print statement available in the normal Linux kernel space rt p rintk () is the standard print statement available in the LINUX RTAI space Refer to slide 43 of slides2.pdfRefer to slide 43 of slides2....
View Full Document

This note was uploaded on 12/13/2011 for the course SOFTWARE E SFWR ENG 4 taught by Professor Bokhari during the Fall '11 term at McMaster University.

Page1 / 7

SFWR ENG 4AA4 - Assignment 2 Mectron/Sfwr Eng 4aa4 Due Thursday Oct 6 2011 at 12:00 Noon(In the boxes outside ITB 101 marked Mectron/SE 4AA4 1

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online