Operating Systems Flashcards

1
Q

Operating system is an intermediary between

A

user of a computer and the computer hardware

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Functions of Operating Systems

A

-Oversee (seyretmek) operation of computer
-Store and retrieve (okumak) files
-Schedule programs for execution
-Coordinate the execution of programs
++Uses the computer hardware in an efficient manner

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

OS works 2 basic way

A

OS an extended machine (resource allocator)
-Hides messy details which must be performed
-Presents user with a virtual machine, easier to use
-Manages all resources
-Decides between conflicting reuests for efficient and fair resource use
OS a resource manager (control program)
-Each program gets time with the resource
-Each program gets space on the resource
-Controls execution of programs to prevent errors and improper use of computer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Four components of computer system

A

computer hardware<operating system<system and application programs<users

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Hardware

A

provides basic computing resources
-CPU, memory, I/O devices

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Operating System

A

Controls use of hardware among various applications and users

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Application programs

A

Defines the ways in which the system resources are used to solve the computing problems of the users

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Users

A

People, machines, other computers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Software tree

A

Software
Application and System
System is utility and Operating system
Operating system is kernel and user interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Operating system components

A

Kernel and User interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Kernel

A

performs basic required functions
-file manager
-device drivers
-memory manager
-schedular and dispatcher

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

difference between schedular and dispatcher

A

schedular: işlemleri seçer sürece ekler veya süreçten kaldırır
dispatcher: zaman aralıklarının dağılımını ayarlar.seçilen işlemler alıp çalıştırır. bir zaman aralığına son vermek için bölücü sinyal yollar

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

user interface

A

communicates with users
-Text based (shell)
-Graphical user interface GUI

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Componenets of kernel

A

**File manager
-Directory (folder) a user created a bundle of files and subfiles
-Directory path a sequence of directories within directories
**
Memory manager
-Allocates space in memory
-May create a illusion and look like it has more memory than it actually does (virtual memory)by playing a shell game

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Getting is started (…)

A

(bootstrapping)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Bootloader

A

Bilgisayar açılınca çalışır, hafızaya operating sistemi alır
Program in ROM (examole of firmware)
-Run by the CPU when power is turned on
-Transfers operating system from mass storage to main memory
-Executes jump to operating system

17
Q

Process and process state

A

Process süreç
Process state Mevcut durum
-Program counter
-General purpose registers
-Related portion of main memory

18
Q

Semaphore

A

A control flag

19
Q

Critical region

A

Tek bir süreçle çalıştırılması gereken bir grup komut

20
Q

Mutual exclusion

A

requirement for proper implementation of a critical region

21
Q

Deadlock

A

Processes block each other from continuing
Conditions required for deadlock
1-Competition for non-sharable resources
2-Resources requested on a partial basis
3-An allocated resource can not be forcibly retrieved

22
Q

Filozofların akşam yemeği problemi

A

-Tamamen rastgele davranışlarla çözüm beklenir, garantisi yoktur (Random solution)
-Bir garson sırasıyla biri alacak biri almayacak biçimde dağıtır ve deadlock/starvation sorunları çözülür (Conductor solution)
-Bir kişi alcak bir kişi almaycak şeklinde davranırlar. (Monitor solution)
-Bir garson 5. filozof hariç diğerlerinin isteklerini yerine getirecektir.
-4 değerinde bir semaforla herhangi 4 filozofun yemek yemesi durdurulup diğer filozofun kesin olarak yemek yemesi sağlanır. Yemek bitince smafor değeri 1 azaltılır
-Her filozofa ilk olarak düşük numaralı chopstick aldırılıp deadlock önlenir.
-Her chopsticke semaphore konur. Müsaitlik durumuna göre chopstickleri alan filozoflardan yalnızca bir chopstick alması durumunda elindekini bırakıp sırasını tekrar beklemesi sağlanır.

23
Q

Evolution of shared computing

A

Batch processing
Interactive processing
-requires real-timeprocessing
Timesharing/Multitasking
-Implemented by multiprogramming
Multiprocessor machines