OPERATING SYSTEMS
COMS W1001 Introduction to Information Science Boyi Xie
1
OPERATING SYSTEMS COMS W1001 Introduction to Information Science - - PowerPoint PPT Presentation
1 OPERATING SYSTEMS COMS W1001 Introduction to Information Science Boyi Xie 2 Announcement Homework 1 is available Grace days A total of 5 days for 5 HWs If all grace days have been used, 50% of the points of that HW will be
1
be deducted for each late day
2
memory, input/output, the arithmetic/logic unit (ALU), and the control unit.
executed by the computer are represented as binary values and stored in memory.
instruction at a time is fetched from memory to the control unit, where it is decoded and executed.
3
4
5
setting switches
activity
6 ENIAC
machine
7
Drawbacks: users have no interaction with jobs after submission
restricted to only one interval at a time
8
processors so that all processors are used efficiently
the number of processors available
9
10
mass storage into the volatile are of main memory
11
12
13
14
15
16
process its code section, data section, and other resources
compete for the computer’s resources
17
18
section
counter, processor registers
addresses, local variables
variables
dynamically allocated during run time
19
scheduler and dispatcher within the kernel
creates a new entry for that process in the process table
20
process and transfer control back to the dispatcher
process table (as determined by the scheduler), restarts the timer circuit, and allows the selected process to begin its time slice
21
22
reaction to the interrupt signal
state
23
24
25
As a process executes, it changes state new: The process is being created running: Instructions are being executed waiting: The process is waiting for some event to occur ready: The process is waiting to be assigned to a processor terminated: The process has finished execution
26
space with a new program
27
28
29
30
for a particular system
unit
ready queue
submitted until the first response is produced, not output (for time- sharing environment)
31
Process Burst Time P1 24 P2 3 P3
3
The Gantt Chart for the schedule is:
32
P1 P2 P3 24 27 30
ProcessArriva l Time Burst Time P1 0.0 6 P2 2.0 8 P3 4.0 7 P4 5.0 3
33
P4 P3 P1 3 16 9 P2 24
ProcessA arri Burst TimeT Priority P1 10 3 P2 1 1 P3 2 4 P4 1 5 P5 5 2
34
P2 P3 P5 1 18 16 P4 19 6 P1
Process Burst Time P1 24 P2
3
P3 3
response
35
P1 P2 P3 P1 P1 P1 P1 P1 4 7 10 14 18 22 26 30
segment of code, called a critical section, in which the process may be changing common variables, updating a table, writing a file, and so on.
36
progressing because each is waiting for a resource that is allocated to another
37
conditions are satisfied
1.
There is competition for nonshareable resources
2.
The resources are requested on a partial basis; that is, having received some resources, a process will return later to request more
3.
Once a resource has been allocated, it cannot be forcibly retrieved
resources, e.g. kill
resources into shareable ones (e.g. spooling); request all resources at
38
39
virtual address
than physical address space
additional memory space by rotating programs and data back and forth between main memory and mass storage
40
41
n=2 and m=4 32-byte memory and 4-byte pages 1 2 3 4 5 6 7
42
43
44
mode
45
46
1.
Tell me about you: name, school, major, year
2.
Why do you want to take this course?
3.
What do you expect to learn?
4.
How do you think this course can be relevant to your current major, future study, or career?
5.
Do you have any existing knowledge in computer science, e.g. programming language, web design, database, etc?
cuit.columbia.edu/web-publishing/creating-personal-websites
47
48