OS - PowerPoint PPT Presentation

About This Presentation
Title:

OS

Description:

Title: PowerPoint Presentation Last modified by: Created Date: 1/1/1601 12:00:00 AM Document presentation format: Other titles – PowerPoint PPT presentation

Number of Views:26
Avg rating:3.0/5.0
Slides: 26
Provided by: edut1550
Category:

less

Transcript and Presenter's Notes

Title: OS


1
OS Operating System??????
  • ???
  • ???

2
Outline
  • ???????
  • ?????????
  • ?????????
  • ??????
  • ??????

3
????????
???
  • A basis for application programs
  • ???????????
  • An intermediary between users and Hardware
  • ????????????
  • Can boot and Run at all time
  • ????,?????????
  • The stuff shipped by vendors as an OS
  • ?! ??????,???????OS.

?????
4
??????????
  • ??
  • 1. ?? 2. ????? 3. throughput(??)
  • ????
  • 1. ???? 2. ???????.?
  • ?????
  • ???? ?? ??????????
  • ??? ?? ?????????????????????
  • PDA ?? ??????
  • ????? ?????????

5
??????
  • Batch System(??)?????
  • Ex. ???
  • Multiprogrammed System(??)?????
  • Ex. ???????B??????????
  • Time-Sharing System(??)??????????
  • Ex. Ptt ?????? 5000?
  • Real-Time System(??)
  • Hard real-time ???????
  • Ex. ????
  • Soft real-time ????
  • Ex. ??demo

6
???????
????
????
I/ O interrupt(??)
  • ????
  • I/ O interrupt(??)
  • timer interrupt (????)
  • system call (trap)(????)
  • scheduling (????)
  • ???? ??

7
??????????
  • ????(interrupt)
  • 1. ??????
  • Ex. ??????????
  • 2. ?????
  • gt ?????????process??
  • ????(trap)
  • 1. ???????????????
  • why? ?????????
  • 2. ??????
  • Ex. ??0?????????.?

8
???????
  • ?????????? ??????
  • lt??gt
  • 1. CPU ?????
  • 2.??????
  • 3.I/O????
  • ??????
  • 1.CPU??CPU??,????????CPU???????
  • 2.???????????????????,???????????
  • 3.I/O???????????,?????????,?????????(system
    call),???????????

9
???? multiprogramming(??)
  • ??
  • preemptive(???)???????????
  • nonpreemptive(????)????????????I/O?,??????
  • ??
  • 1. ???????????????,???????
  • 2. ????????,???I/O?,?CPU???????,?????CPU?I/O?????
    ???,????
  • ??
  • ?????????????? (context switch overhead)

10
???? Process Thread
  • ????????,?????
  • ??
  • Process????????????
  • Thread????????(a basic unit of CPU utilization)
  • ?????
  • ??process????? 1????thread,???????????,????proces
    s??thread????????process????,??????????,??????????
    ?

11
???? CPU??
  • 1. FCFS (first come first serve) ???????
  • 2. SJF (shortest job first) ?????????
  • 3. Priority Scheduling ??????
  • 4. Round-Robin Scheduling ??????
  • 5. Multilevel Queue Scheduling ???????
  • 6. Multilevel Feedback Queue Scheduling ?????????

12
1. FCFS(???????)
  • ????
  • Convoy effect(????)
  • gt??SJF??

13
2. ????????? (SJF)
  • ????????????!!

14
3.??????(Priority Scheduling)
  • priority????????????!!

15
4. ?????????
  • ???????,???????????,????????????
  • ??
  • 1. ???????queue?????????????,??????queue??????
  • 2.????????,????????,???????,?????????????queue???
    ?
  • ??
  • 1. ??SJF???,?????????,??????????????
  • 2. ?????queue??????????????.???,???????

Ex.
????? 8 ms????????
????? 16 ms????????
16
Deadlock(??)
  • ????,???? gt ???????
  • ?CPU? gt ??????????????????
  • ?????????
  • 1. ????????????????????
  • 2. ????????,????????
  • 3. ??????????
  • 4.???? ?????? P0, P1, , Pn, P0
    ????????,???????????????????

??B
??A
A
B
17
???????
  • 1. ?????
  • ??????????????
  • 2. ?????
  • ???????,?????
  • 3. ?????
  • ?????????,???

18
????? ???????
  • Deadlock prevention
  • ??
  • ??????,??????????????????????
  • Deadlock avoidance
  • ??
  • 1. ????????????,???????????????,???????????
  • 2.???????? gt ?????????,???????????????????????,?
    ?????????,?????????????
  • ?????????

19
Spooling (Simultaneous Peripheral Operation
On-Line)
  • Spooling ????????I/O??buffering(??)?????
  • ??????????????,?????????
  • 1. ???(?CPU?)
  • 2. ????,???????????
  • ??CPU????????????????????,?????????,??,CPU???????
    ,?????????,????,?????????????????,?CPU????????????
    ??????

20
DMA (Direct Memory Access)
  • ?I/O????????,??????CPU?????
  • gt ?I/O?????????memory?,?????????,???????
  • ?????device?CPU?memory??????

???
CPU
??
21
??OS?? Windows 2000
  • ??
  • windows 2000????????
  • 1. Professional 2. Server
  • 3. Advanced Server 4. Datacenter Server
  • ????98 ? NT4.0???,?????????
  • ??
  • ??
  • ???(extensible)??????,????,???MS-DOS?POSIX?OS/2??
    ?
  • ???(portable)?????hardware,???????
  • ???(security)????,???,??????????????windows???
  • ???? ?CPU ????? ???????? NTFS file system

22
(No Transcript)
23
??OS?? Linux
  • ??
  • Linux ????Linus Torvalds ? 1991
    ?????????,?Linux????????,????????free
    software,??????,Linux?? ????????????,??????????,
    ?????????
  • ?UNIX????,??Linux?RedHat?Slackware?Debian
    ??????????
  • ??
  • ????
  • ?????UNIX??,????????????,???????
  • ??????????????,????????????????(Ex. ????)

24
(No Transcript)
25
Reference
  • http//www.mis.kyit.edu.tw/learn/classnote/OS/
  • http//www.ascc.net/course/BCC/slide3.html
  • ltOperating Systems Conceptsgt Abrahan Silberschatz
    and James L. Peterson
Write a Comment
User Comments (0)
About PowerShow.com