The document contains questions about basic Microsoft Excel functions including: how to open the Excel program; other toolbars besides the standard and formatting toolbars; an explanation of the Help function and how to use it; what a workbook refers to; details about the menu bar including the total number of menus and descriptions of each; and definitions of a cell and worksheet. The student is asked to answer each question in the provided lines.
The document contains questions about basic Microsoft Excel functions including: how to open the Excel program; other toolbars besides the standard and formatting toolbars; an explanation of the Help function and how to use it; what a workbook refers to; details about the menu bar including the total number of menus and descriptions of each; and definitions of a cell and worksheet. The student is asked to answer each question in the provided lines.
Chapter 3 discusses processes and process scheduling in operating systems. Key points include:
- A process includes the program code, program counter, stack, data, and process state information stored in a process control block (PCB).
- The operating system uses queues like ready queues and I/O queues to schedule processes between running, waiting, and ready states using long-term and short-term schedulers.
- Processes can cooperate through interprocess communication (IPC) using message passing or shared memory. Common IPC examples are producer-consumer problems and client-server systems.
This document discusses various CPU scheduling algorithms and concepts. It covers scheduling criteria like CPU utilization and turnaround time. Algorithms discussed include first-come first-served (FCFS), shortest job first (SJF), priority scheduling, and round robin (RR). It also covers multiple queue scheduling, real-time scheduling, and ways to evaluate scheduling algorithm performance like deterministic modeling and simulation.
The document provides an overview of key components and concepts in operating system structures. It discusses common system components like process management, memory management, file management, and protection systems. It also covers operating system services, system calls, system programs, virtual machines, and approaches to system design and implementation.
This document discusses multiprogramming and time sharing. Multiprogramming allows a single processor to execute multiple programs simultaneously by having several processes reside in memory at once and switching between them when one is waiting for I/O. Time sharing extends this by dividing processor time into slices and allocating them fairly among competing jobs, enabling interactive processing where users do not have to wait. The degree of multiprogramming, or number of processes, can increase CPU utilization as it decreases the probability that all are waiting on I/O at once. Advantages include efficient memory usage, increased throughput, and high processor utilization.
Operating System
ระบบปฏิบัติการคอมพิวเตอร์
by Nuttha Otanasap (ณัฏฐ์ โอธนาทรัพย์)
Computer Science Dept.,
South-east Asia University
Bangkok 10160 Thailand
email: auisuke@gmail.com
website:auisuke
auisuke.blogspot.com
Hi5:auisuke.hi5.com
Copyrights 2009 SE Asia University All Rights Reserved
24. 24
ลำำดับชั้นของโปรเซส (Process
Hierarchy)
• โดยทั่วไป เมื่อโปรเซสแม่จบลง โปรเซสต่ำง ๆ ที่อยู่
ภำยใต้ตัวมันก็จะจบลงตำมไปด้วย
• แต่ OS บำงตัวยอมให้โปรเซสแม่จบลง โดยที่โปรเซ
สลูกไม่ต้องจบลงตำมไปด้วย ในกรณีนี้โปรเซสลูกก็
จะไม่มีโปรเซสแม่
A
B C D
E F G H
25. 25
ลำำดับชั้นของโปรเซส (Process
Hierarchy)
• จำกตัวอย่ำงในรูป โปรเซส A จะมีโปรเซสลูก
3 โปรเซสคือ B,C และ D
• ถึงแม้ว่ำโปรเซส A เป็นโปรเซสแม่ของโปรเซส
B,C และ D แต่โปรเซส A ไม่ได้เป็นผู้ที่สร้ำง
โปรเซส B,C และ D
• ผู้ที่สร้ำงโปรเซสทั้งหมดได้แก่ OS ซึ่ง OS จะมี
โปรเซสหนึ่งทำำหน้ำที่สร้ำงและยุติโปรเซส คือ
“ตัวจัดคิวระยะยำว”
• คำำถำม
– โปรเซส F,G,H นั้นถูกสร้ำงโดยโปรเซส D ใช่
27. 27
กำรติดต่อระหว่ำงโปรเซส
(Interprocess communication)
• เมื่อโปรเซส A ต้องกำรติดต่อกับโปรเซส B
– โปรเซส A และ B จะต้องจองเนื้อที่ในหน่วยควำม
จำำในส่วนที่ว่ำงเอำไว้
– ทั้ง 2 โปรเซสต้องรู้ว่ำหน่วยควำมจำำร่วมนี้อยู่ที่ใด
– เมื่อโปรเซส A ส่งข้อมูลให้โปรเซส B ข้อมูลจะถูก
ส่งไปไว้ในหน่วยควำมจำำร่วม
หน่วย
ควำมจำำร่วม
โปรเซส
A
โปรเซส
B
ส่งข้อมูล รับข้อมูล
รับข้อมูล ส่งข้อมูล
29. 29
กำรติดต่อระหว่ำงโปรเซส
(Interprocess communication)
• เมื่อโปรเซส A ต้องกำรติดต่อกับโปรเซส B
– โปรเซส B จะตรวจสอบได้เองว่ำโปรเซส A นำำ
ข้อมูลไปวำงไว้แล้วหรือยัง
– ถ้ำโปรเซส A ยังไม่ส่งข้อมูลมำ โปรเซส B ก็
จะยังไม่ดึงเอำข้อมูลมำใช้
– นอกจำกนั้นโปรเซส B ยังต้องสำมำรถตรวจ
สอบได้ว่ำข้อมูลที่อยู่ในหน่วยควำมจำำร่วมนั้น
เป็นข้อมูลเก่ำที่เคยนำำมำใช้แล้วหรือยัง
– สำำหรับโปรเซส A ถ้ำจะส่งข้อมูลชุดใหม่ให้
โปรเซส A จะต้องตรวจสอบก่อนว่ำข้อมูลชุด