Process Programming and Operating Systems. Sorin Manolache email@example.com phone: 281470, room: B 329:204. Lecture Plan. What is an operating system? What are its functions? Basics of computer architectures. (Part I of the textbook) Processes, threads, schedulers (Part II , chap. IV-VI)
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
phone: 281470, room: B 329:204
What is an operating system? What are its functions? Basics of computer architectures. (Part I of the textbook)
Processes, threads, schedulers (Part II , chap. IV-VI)
Synchronisation (Part II, chap. VII)
Primary memory management. (Part III, chap. IX, X)
File systems and secondary memory management (Part III, chap. XI, XII, Part IV)
Security (Part VI)
Give examples of operating systems that you have seen/used.
When you buy/get one, what do you get actually?
You get a piece of software!
… but when you get Quake, you get a piece of software too! Is Quake an OS?
The first thing we see at an OS is an interface to run applications.
/* System calls are written in bold italic. Type “man 2 sys_call_name” for info in Linux or “man –s 2 sys_call_name” in Solaris */
int fd, n;
fd = open(“datafile.txt”, O_RDWR);
n = read(fd, buf, 1024);
printf(“Have read %d bytes: %s\n”, n, buf);
lseek(fd, 0, SEEK_SET);
write(fd, “Some other text”, strlen(“Some other text”) + 1);
write(fd, buf, n);
printf(“%d\n”, a[i] – 5);
.lc0: .string “%d\n”
subl $8, %esp
movl .lc0, (%esp)
movl i, %eax
movl a(,%eax,4), %eax
subl $5, %eax
movl %eax, 4(%esp)