Software, the OS and interrupts
แนะนำใหม่
8:28
ฮาร์ดแวร์และซอฟต์แวร์
นี่คือคอมพิวเตอร์เครื่องใหม่ ทุกชิ้นส่วนทำงานได้ดี — โปรเซสเซอร์, เมมโมรี่, จอ, คีย์บอร์ด เปิดเครื่องแล้วไม่มีอะไรเกิดขึ้น ไม่มีเดสก์ท็อป…
บรรยายภาษาอังกฤษ · สลับคำบรรยายภาษาอังกฤษและภาษาจีนได้
ในบทเรียนนี้
| English | ความหมาย |
|---|---|
| software/ˈsɒftweə/ | ซอฟต์แวร์ |
| operating system/ˈɒpəreɪtɪŋ ˈsɪstəm/ | ระบบปฏิบัติการ |
| Hardware/ˈhɑːdweə/ | The physical parts; software is the programs that control them. |
| programs/ˈprəʊɡræmz/ | A set of instructions specifying operations for a computer to carry out. |
| system software/ˈsɪstəm ˈsɒftweə/ | ระบบซอฟต์แวร์ |
| application software/ˌæplɪˈkeɪʃn ˈsɒftweə/ | แอปพลิเคชันซอฟต์แวร์ |
| compilers | |
| device drivers/dɪˈvaɪs ˈdraɪvəz/ | ไดรเวอร์อุปกรณ์ |
| utility software/juːˈtɪlɪti ˈsɒftweə/ | ซอฟต์แวร์ utility |
| anti-virus/ˈænti ˈvaɪrəs/ | Software aimed at detecting or removing viruses and often other malware; protection is not guaranteed by its presence alone. |
| backup/ˈbækʌp/ | An additional copy of data kept so it can be recovered after loss or damage. |
| word processor/wɜːd ˈprəʊsesə/ | |
| spreadsheet/ˈspredʃiːt/ | |
| database/ˈdeɪtəbeɪs/ | An organised collection of data that can be accessed and managed. |
| web browser/web ˈbraʊzə/ | An application that requests web resources, interprets their content and presents pages for the user to interact with. |
| managing files | |
| managing memory | |
| managing peripherals/ˈmænɪdʒɪŋ pəˈrɪfərəlz/ | |
| multitasking/ˈmʌltitæskɪŋ/ | การทำงานหลายอย่างพร้อมกัน |
| interrupt/ˈɪntərʌpt/ | การขัดจังหวะ |
| user interface/ˈjuːzə ˈɪntəfeɪs/ | The controls, displays and interaction mechanisms through which a person communicates with a computer system or program. |
| platform/ˈplætfɔːm/ | A hardware/software environment on which applications can run. |
| security/sɪˈkjʊərɪti/ | |
| signal/ˈsɪɡnl/ | Information or cues that communicate a condition and can influence a response or decision. |
| processor/ˈprəʊsesə/ | The component that executes instructions and performs the operations of a computer or similar system. |
| CPU/ˌsiː piː ˈjuː/ | |
| interrupt service routine/ˈɪntərʌpt ˈsɜːvɪs ruːˈtiːn/ | A routine executed to handle a particular interrupt before control returns to an appropriate point in the interrupted processing. |
| instruction/ɪnˈstrʌkʃn/ | |
| state/steɪt/ |
ซอฟต์แวร์และระบบปฏิบัติการ
- ฮาร์ดแวร์ คือส่วนประกอบทางกายภาพ; ซอฟต์แวร์ คือโปรแกรมที่ควบคุมส่วนเหล่านั้น
- ซอฟต์แวร์แบ่งเป็น ระบบ ซอฟต์แวร์และ แอปพลิเคชัน ซอฟต์แวร์
- ระบบซอฟต์แวร์ที่สำคัญที่สุดคือ ระบบปฏิบัติการ
ระบบซอฟต์แวร์เทียบกับแอปพลิเคชันซอฟต์แวร์
- ระบบซอฟต์แวร์ ควบคุมคอมพิวเตอร์และเป็นพื้นฐานสำหรับโปรแกรมอื่น: ระบบปฏิบัติการ, คอมไพเลอร์, ไดรเวอร์อุปกรณ์, และ ซอฟต์แวร์ช่วยงาน (แอนตี้ไวรัส, สำรองข้อมูล)
- แอปพลิเคชันซอฟต์แวร์ ทำให้ผู้ใช้ทำงานต่างๆ ได้: โปรแกรมสร้างเอกสาร, สpreadsheet, ฐานข้อมูล, เบราว์เซอร์เว็บ
- ระบบซอฟต์แวร์ทำงานเบื้องหลัง; แอปพลิเคชันซอฟต์แวร์ถูกใช้โดยตรงโดยผู้ใช้

ซอฟต์แวร์แบ่งเป็นระบบซอฟต์แวร์ (ควบคุมคอมพิวเตอร์) และแอปพลิเคชันซอฟต์แวร์ (ทำให้ผู้ใช้ทำงาน).

เมื่อเกิด_interrupt CPU จะบันทึกตำแหน่งปัจจุบัน, รัน routine การจัดการ_interrupt, แล้วคืนค่าตำแหน่งเดิมและดำเนินการต่อ.

Which is system software?
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
The OS (and drivers, utilities) is system software; the others are application software.
Sort these into system or application software.
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
Drivers and utilities run the computer (system); a browser is a user application.
ระบบปฏิบัติการ
- OS ควบคุมคอมพิวเตอร์ทั้งเครื่องเพื่อให้ฮาร์ดแวร์ แอปพลิเคชัน และผู้ใช้ทำงานร่วมกัน หน้าที่ของมันประกอบด้วย:
- การจัดการไฟล์, การจัดการหน่วยความจำ, จัดการอุปกรณ์เสริม (และไดรเวอร์), มัลติทาสก, จัดการ interrupt, จัดหา อินเทอร์เฟซผู้ใช้, เป็น แพลตฟอร์ม สำหรับแอปพลิเคชัน, และ ความปลอดภัย

เมนบอร์ดและส่วนประกอบที่ติดตั้งอยู่บนนั้นคือฮาร์ดแวร์ — ส่วนที่เป็นวัตถุของคอมพิวเตอร์

Which is a role of the operating system?
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
The OS manages files, memory, peripherals, multitasking, interrupts, the UI and security.
การหยุดทำงานชั่วคราว (Interrupts)
- การขัดจังหวะ (interrupt) คือสัญญาณที่ส่งไปยังโปรเซสเซอร์เพื่อแจ้งว่ามีการกระทำใดที่ต้องการความสนใจ ทันที
- อาจมาจาก ฮาร์ดแวร์ (กดคีย์, เครื่องพิมพ์หมดกระดาษ), ซอฟต์แวร์ (หารด้วยศูนย์), หรือ ผู้ใช้ (กดยกเลิก)
- โปรเซสเซอร์จะ หยุด, บันทึกตำแหน่ง, จัดการ interrupt, แล้ว ดำเนินต่อ — เพื่อให้คอมพิวเตอร์ตอบสนองต่อเหตุการณ์สำคัญได้อย่างรวดเร็ว

ระบบปฏิบัติการอยู่ระหว่างฮาร์ดแวร์และแอปพลิเคชันซอฟต์แวร์และผู้ ใช้ ทำให้พวกเขาทำงานร่วมกันได้.

How the CPU handles an interrupt
Step through an interrupt. The CPU pauses what it's doing, deals with the urgent event, then carries on exactly where it left off — which is how one processor juggles the keyboard, printer and timer at once.
An interrupt is:
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
An interrupt makes the CPU pause, service the event, then resume — for quick reactions.
A hardware interrupt comes from a device (e.g. a printer out of paper), while a software interrupt comes from a program (e.g. dividing by zero) — both make the CPU pause and service the event.
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
Interrupts can be hardware, software or user-triggered; in every case the CPU saves state, handles it, then resumes.
การ์ดนี้เป็นการ์ดใหม่ จึงแสดงเป็นภาษาอังกฤษจนกว่าคำแปลจะพร้อม
Worked example: a key press during printing
A student is typing a report while it prints. The printer runs out of paper. Explain what the operating system does.
- The printer sends an interrupt. At the end of the current instruction 指令 the CPU checks for interrupts, saves the state 状态 of the running program and runs the interrupt service routine, which shows a "load paper" message.
- The saved state is then restored and the word processor carries on. The OS is managing peripherals (the printer) and multitasking, while the word processor is application software.
Which of these is system software?
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
Utilities help run and look after the computer; the others are applications that do a task for the user.
Before handling an interrupt, the CPU saves the state of the current program so it can carry on afterwards.
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
Saving the registers lets the program resume exactly where it stopped.
คุณเข้าใจแล้ว
- ระบบซอฟต์แวร์ ควบคุมการทำงานของคอมพิวเตอร์ (OS, ไดรเวอร์, ซอฟต์แวร์ช่วยงาน); แอปพลิเคชันซอฟต์แวร์ ทำงานตามที่ผู้ใช้ต้องการ
- OS จัดการไฟล์, หน่วยความจำ, อุปกรณ์เสริม, มัลติทาสก, interrupt, UI และความปลอดภัย
- interrupt = สัญญาณที่ต้องการความสนใจทันที (ฮาร์ดแวร์ / ซอฟต์แวร์ / ผู้ใช้)
- เมื่อเกิด interrupt CPU บันทึกตำแหน่ง, จัดการ, แล้วดำเนินต่อ
เกิดปัญหาอะไรขึ้น? เฉพาะทีมเว็บไซต์เท่านั้นที่เห็นข้อมูลนี้