Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

What is an Operating System?

A program that acts as an intermediary between a user of a computer and the computer
hardware
‫ما هو نظام التشغيل‬
‫برنامج يعمل كوسيط بين مستخدم الكمبيوتر وجهاز الكمبيوتر‬
Operating system goals
– Execute user programs and make solving user
– Make the computer system convenient to use
– Use the computer hardware in an efficient manner
‫أهداف نظام التشغيل‬
‫– تنفيذ برامج المستخدم وتسهيل حل مشاكل المستخدم‬
‫– جعل النظام الكمبيوتر مناسبا لالستخدام‬
‫ استخدام أجهزة الحاسوب بكفاءة‬-
Operating System Definition
OS is a resource allocator
-Manages all resources
-Decides between conflicting requests for efficient and fair resource use
OS is a control program
-Controls execution of programs to prevent errors and improper use of the computer
-The one program running at all times on the computer” is the kernel .
Everything else is either
A system program (ships with the operating system) , or an application program
‫تعريف نظام التشغيل‬
‫‪ OS is a resource allocator‬نظام التشغيل هو مخصص للموارد‬
‫‪ -‬يدير جميع الموارد‬
‫‪ -‬يقرر بين الطلبات المتضاربة لالستخدام الفعال والعادل للموارد‬
‫نظام التشغيل هو برنامج تحكم ‪OS is a control program‬‬
‫‪-‬يتحكم في تنفيذ البرامج لمنع األخطاء واالستخدام غير السليم للكمبيوتر‬
‫‪-‬البرنامج الوحيد الذي يعمل في جميع األوقات على الكمبيوتر" هو النواة‬
‫‪(kernel .‬النواة)‬
‫هو عبارة عن جزء يتحتم وجوده على الذاكرة لضمان استمرارية عمل الحاسبة‪،‬كما هو الحال في)‪ ) Code‬الذي يستقبل‬
‫عمل الـ ‪)Mouse(.‬‬
‫برنامج نظام (يأتي مع نظام التشغيل) ‪ ،‬أو برنامج تطبيق‬
‫‪Computer Startup‬‬
‫بدء تشغيل الكمبيوتر‬
‫‪For a computer to start running—for instance, when it is powered up or rebooted—it needs to‬‬
‫‪have an initial program to run. This initial program is the bootstrap program‬‬
‫لكي يبدأ الكمبيوتر في العمل‪ -‬على سبيل المثال ‪ ،‬عند تشغيله أو إعادة تشغيله ‪-‬يحتاج إلى برنامج أولي للتشغيل‪ .‬هذا‬
‫البرنامج األولي هو برنامج ‪bootstrap program‬‬

‫‪Bootstrap program‬‬
‫‪is loaded at power-up or reboot Typically stored in ROM or EPROM, generally known as‬‬
‫‪firmware‬‬
‫‪-Initializes all aspects of system‬‬
‫‪- Loads operating system kernel and starts‬‬
‫يتم تحميل برنامج ‪ bootstrap‬عند بدء التشغيل أو إعادة التشغيل يتم يتم تخزينه في ‪ EPROM‬أو ‪ ROM‬والمعروف‬
‫عموما باسم البرامج الثابتة‬
‫‪ -‬يهيئ جميع جوانب النظام‬
‫‪ -‬يقوم بتحميل نواة نظام التشغيل ويبدأ اعدام‬
‫‪Execution‬‬
‫‪Allows execution of processes not completely in memory‬‬
‫يسمح بتنفيذ العمليات غير الموجودة في الذاكرة بالكامل هيكل نظام التشغيل‬

‫‪Operating System Structure‬‬


‫‪Multiprogramming (Batch system) needed for efficiency Single user cannot keep CPU and I/O‬‬
‫‪devices busy at all times‬‬
‫‪Multiprogramming organizes jobs (code and data) so CPU always has one to execute A subset‬‬
‫‪of total jobs in system is kept in memory One job selected and run via job scheduling When it‬‬
‫‪has to wait (for I/O for example), OS switches to another job‬‬
‫البرمجة المتعددة (نظام ال ُدفعات) الالزمة لتحقيق الكفاء ة ال يمكن لمستخدم واحد إبقاء وحدة المعالجة المركزية وأجهزة‬
‫اإلدخال ‪ /‬اإلخراج مشغولة في جميع األوقات تعمل البرمجة المتعددة على تنظيم المهام (التعليمات البرمجية والبيانات) ا‬
‫لتنفيذ مجموعة ً ا واحد ً بحيث يكون لدى وحدة المعالجة المركزية دائم فرعية من إجمالي المهام في النظام يتم االحتفاظ بها‬
‫في الذاكرة تم تحديد وظيفة واحدة وتشغيلها عن طريق جدولة الوظائف عندما يتعين عليه االنتظار (لإلدخال ‪ /‬اإلخراج‬
‫على سبيل المثال) ‪ ،‬يتحول نظام التشغيل إلى وظيفة أخر ى‬
‫‪Timesharing (multitasking) is logical extension in which CPU switches jobs so frequently that‬‬
‫‪users can interact with each job while it is running, creating interactive computing Response‬‬
‫‪time should be < 1 second‬‬
‫تعد المشاركة بالوقت (تعدد المهام) امتدادًا منطقيًا تقوم فيه وحدة المعالجة المركزية بتبديل المهام في كثير من األحيان يمكن‬
‫للمستخدمين التفاعل مع كل وظيفة أثناء تشغيلها ‪ ،‬مما يؤدي إلى إنشاء تفاعلية الحوسبة الدقة‬
‫يجب أن يكون وقت االستجابة أقل من ثانية واحدة‬
‫‪Each user has at least one program executing in memory ⇨process‬‬
‫‪If several jobs ready to run at the same time ⇨ CPU scheduling‬‬
‫‪If processes don’t fit in memory, swapping moves them in and out to run‬‬
‫معالجة‬ ‫كل مستخدم لديه برنامج واحد على األقل يتم تنفيذه في الذاكرة العملية‬
‫جدولة وحدة المعالجة المركزية‬ ‫إذا كانت عدة مهام جاهزة للتشغيل في نفس الوقت المركزية‬
‫إذا كانت العمليات ال تتالءم مع الذاكرة ‪ ،‬فإن التبادل يحركها للداخل والخارج للتشغيل‬
Virtual memory
allows execution of processes not completely in memory
‫ذاكرة افتراضية‬
‫يسمح بتنفيذ العمليات غير الموجودة في الذاكرة بالكامل‬
Responsibilities of OS
User Interface : Command interface and user interface.
Process Management: Interleaved and concurrent
.Job and session management
.Device management
.Timer management
.Memory management
.File management
.Error handling
Reliability
Security
‫مسؤوليات نظام التشغيل‬
‫ واجهة األوامر وواجهة المستخدم‬:‫واجهة المستخدم‬-1
‫ متداخلة ومتزامنة‬:‫إدارة العملية‬-2
‫إدارة الوظائف والجلسات‬.-3
‫إدارة الجهاز‬-4
‫إدارة الموقت‬-5
‫إدارة الذاكرة‬.-6
‫إدارة الملفات‬-7
‫معالجة األخطاء‬.-8
‫الموثوقية‬.-9
‫األمان‬-10
Kernel Data Structures
1-Many similar to standard programming data structures
2-Singly linked list
3-Doubly linked list
4- Circular linked list
‫هيكل بيانات‬
‫كثير مماثلة لهياكل بيانات البرمجة القياسية‬-1
‫قائمة مرتبطة بشكل فردي‬-2
‫قائمة مرتبطة بشكل مضاعف‬-3
‫قائمة مرتبطة دائرية‬-4
Kernel Data Structures
Binary search tree
Hash function can create a hash map
Bitmap – string of n binary digits representing the status of n items
‫شجرة بحث ثنائية‬-1
‫يمكن لوظيفة التجزئة إنشاء خريطة تجزئة‬-2
‫ من العناصر‬n ‫ من األرقام الثنائية تمثل حالة‬n‫ سلسلة من‬-‫صورة نقطية‬-3

You might also like