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ə/ | البرمجيات المساعدة |
| 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/ |
البرمجيات ونظام التشغيل
- العتاد (Hardware) هو الأجزاء المادية؛ البرمجيات (Software) هي البرامج التي تتحكم فيها.
- تنقسم البرمجيات إلى برمجيات نظام وبرمجيات تطبيق.
- أهم برمجيات النظام هي نظام التشغيل.
برمجيات النظام مقابل برمجيات التطبيق
- برمجيات النظام تتحكم في الكمبيوتر وتوفر أساسًا للبرامج الأخرى: نظام التشغيل، والمترجمات (compilers)، ومحركات الأجهزة (device drivers)، وبرمجيات المساعدة (utility software) (مضادات الفيروسات، النسخ الاحتياطي).
- برمجيات التطبيق تسمح للمستخدم بأداء مهمة: محرر نصوص، جداول بيانات، قاعدة بيانات، متصفح ويب.
- برمجيات النظام تعمل في الخلفية؛ برمجيات التطبيق يستخدمها المستخدم مباشرة.

تنقسم البرمجيات إلى برمجيات نظام (تشغيل الكمبيوتر) وبرمجيات تطبيق (تسمح للمستخدم بأداء مهمة).

في حالة المقاطعة، يحفظ المعالج موقعه الحالي، وينفذ روتين خدمة المقاطعة، ثم يستعيد موقعه ويستمر.
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) يتحكم في الكمبيوتر بالكامل حتى يعمل العتاد والتطبيقات والمستخدم معًا. تشمل أدواره ما يلي:
- إدارة الملفات، إدارة الذاكرة، إدارة الأجهزة الطرفية (ومحركاتها)، تعدد المهام، معالجة المقاطعات، توفير واجهة مستخدم، منصة للتطبيقات، والأمان.

اللوحة الأم والأجزاء المتصلة بها تمثل العتاد — وهي الأجزاء المادية للكمبيوتر.

Which is a role of the operating system?
الصعوبة 1/5 · 100 عملة + مكافأة صغيرة عند الإنجاز الأول اليوم
The OS manages files, memory, peripherals, multitasking, interrupts, the UI and security.
المقاطعات
- المقاطعة (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.
لقد فهمت الأمر
- برمجيات النظام تشغل الكمبيوتر (نظام التشغيل، المحركات، أدوات المساعدة)؛ برمجيات التطبيق تقوم بمهمة المستخدم.
- نظام التشغيل يدير الملفات، الذاكرة، الأجهزة الطرفية، تعدد المهام، المقاطعات، واجهة المستخدم والأمان.
- المقاطعة = إشارة تتطلب انتباهاً فورياً (عتاد / برمجيات / مستخدم).
- عند حدوث مقاطعة، يحفظ المعالج موقعه الحالي، يعالجها، ثم يستأنف العمل.
ما المشكلة؟ لا يرى ذلك سوى فريق الموقع.