Software, the OS and interrupts
Đã giới thiệu
8:28
Phần cứng & Phần mềm
Đây là một chiếc máy tính mới tinh. Mọi bộ phận vật lý đều hoạt động — bộ xử lý, bộ nhớ, màn hình, bàn phím. Bật nó lên, nhưng không có gì xảy ra. Không có desktop…
Thuyết minh tiếng Anh · Có thể chuyển đổi phụ đề tiếng Anh và tiếng Trung
Trong bài học này
| English | Ý nghĩa |
|---|---|
| software/ˈsɒftweə/ | Phần mềm |
| operating system/ˈɒpəreɪtɪŋ ˈsɪstəm/ | Hệ điều hành |
| 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ə/ | Phần mềm hệ thống |
| application software/ˌæplɪˈkeɪʃn ˈsɒftweə/ | Phần mềm ứng dụng |
| compilers | |
| device drivers/dɪˈvaɪs ˈdraɪvəz/ | Trình điều khiển thiết bị |
| utility software/juːˈtɪlɪti ˈsɒftweə/ | Phần mềm tiện ích |
| 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ɪŋ/ | đa tác vụ |
| interrupt/ˈɪntərʌpt/ | ngắt |
| 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/ |
Phần mềm và hệ điều hành
- Phần cứng là các bộ phận vật lý; phần mềm là các chương trình điều khiển chúng.
- Phần mềm chia thành phần mềm hệ thống và phần mềm ứng dụng.
- Hệ phần mềm quan trọng nhất là hệ điều hành.
Phần mềm hệ thống so với phần mềm ứng dụng
- Phần mềm hệ thống điều khiển máy tính và cung cấp nền tảng cho các chương trình khác: hệ điều hành, trình biên dịch, trình điều khiển thiết bị và phần mềm tiện ích (chống virus, sao lưu).
- Phần mềm ứng dụng giúp người dùng thực hiện một tác vụ: trình xử lý văn bản, bảng tính, cơ sở dữ liệu, trình duyệt web.
- Phần mềm hệ thống chạy ở hậu cảnh; phần mềm ứng dụng được người dùng sử dụng trực tiếp.

Phần mềm chia thành phần mềm hệ thống (chạy máy tính) và phần mềm ứng dụng (giúp người dùng thực hiện tác vụ).

Trên khi xảy ra ngắt, CPU lưu vị trí hiện tại, chạy thủ tục xử lý ngắt, sau đó khôi phục vị trí và tiếp tục.

Which is system software?
Độ khó 1/5 · 100 xu + phần thưởng nhỏ khi hoàn thành lần đầu tiên hôm nay
The OS (and drivers, utilities) is system software; the others are application software.
Sort these into system or application software.
Độ khó 2/5 · 140 xu + phần thưởng nhỏ khi hoàn thành lần đầu tiên hôm nay
Drivers and utilities run the computer (system); a browser is a user application.
Hệ điều hành
- Hệ điều hành (OS) kiểm soát toàn bộ máy tính để phần cứng, ứng dụng và người dùng hoạt động cùng nhau. Các vai trò của nó bao gồm:
- quản lý tập tin, quản lý bộ nhớ, quản lý thiết bị ngoại vi (và trình điều khiển), đa nhiệm, xử lý ngắt, cung cấp giao diện người dùng, một nền tảng cho ứng dụng và bảo mật.

Bo mạch chủ và các bộ phận gắn vào đó là phần cứng — các bộ phận vật lý của máy tính.

Which is a role of the operating system?
Độ khó 1/5 · 100 xu + phần thưởng nhỏ khi hoàn thành lần đầu tiên hôm nay
The OS manages files, memory, peripherals, multitasking, interrupts, the UI and security.
Báo hiệu ngắt (Interrupts)
- Một ngắt là tín hiệu gửi đến bộ xử lý cho biết có thứ gì đó cần sự chú ý ngay lập tức.
- Nó có thể đến từ phần cứng (nhấn phím, hết giấy máy in), phần mềm (chia cho không), hoặc người dùng (nhấn hủy).
- Bộ xử lý dừng, lưu vị trí, xử lý ngắt, sau đó tiếp tục — giúp máy tính phản hồi nhanh với các sự kiện quan trọng.

Hệ điều hành nằm giữa phần cứng và phần mềm ứng dụng cũng như người dùng, cho phép họ hoạt động cùng nhau.

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:
Độ khó 1/5 · 100 xu + phần thưởng nhỏ khi hoàn thành lần đầu tiên hôm nay
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.
Độ khó 1/5 · 100 xu + phần thưởng nhỏ khi hoàn thành lần đầu tiên hôm nay
Interrupts can be hardware, software or user-triggered; in every case the CPU saves state, handles it, then resumes.
Đây là thẻ mới nên sẽ hiển thị bằng tiếng Anh cho đến khi bản dịch sẵn sàng.
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?
Độ khó 1/5 · 100 xu + phần thưởng nhỏ khi hoàn thành lần đầu tiên hôm nay
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.
Độ khó 1/5 · 100 xu + phần thưởng nhỏ khi hoàn thành lần đầu tiên hôm nay
Saving the registers lets the program resume exactly where it stopped.
Bạn đã nắm vững
- phần mềm hệ thống chạy máy tính (OS, driver, utility); phần mềm ứng dụng thực hiện tác vụ của người dùng
- hệ điều hành quản lý tập tin, bộ nhớ, thiết bị ngoại vi, đa nhiệm, ngắt, giao diện người dùng và bảo mật
- một ngắt = tín hiệu cần sự chú ý ngay lập tức (phần cứng / phần mềm / người dùng)
- trên khi xảy ra ngắt, CPU lưu vị trí, xử lý ngắt, sau đó tiếp tục
Đã xảy ra vấn đề gì? Chỉ đội ngũ trang web nhìn thấy thông tin này.