====
=99=
====
1. Popite obecnou architekturu ovladae zarzen a vysvetlete, jak tato architektura dovoluje zpracovvat souasne asynchronn poadavky od hardware a synchronn poadavky od software.


------------------------------------------------------------------------------
2. Popite obvykl prubeh obsluhy preruen jako asynchronnho poadavku
na obsluhu hardware ovladaem zarzen. Prubeh popite od okamiku
preruen do okamiku ukonen obsluhy. Predpokldejte obvyklou
architekturu ovladae, kde spolu asynchronne a synchronne volan sti
ovladae komunikuj pres sdlenou frontu poadavk u. Kad krok popite
tak, aby bylo zrejm, kdo jsou jeho astnci a kde zskaj informace potrebn
pro vykonn danho kroku.


-----------------------------------------------------------------------------
3. Popite obvykl prubeh systmovho voln jako synchronnho poadavku
na obsluhu software ovladaem zarzen. Predpokldejte obvyklou
architekturu ovladae, kde spolu asynchronne a synchronne volan sti
ovladae komunikuj pres sdlenou frontu poadavk u. Prubeh popite od
okamiku voln do okamiku ukonen obsluhy. Kad krok popite tak,
aby bylo zrejm, kdo jsou jeho astnci a kde zskaj informace potrebn pro
vykonn danho kroku.

--------------------------------------------------------
4. Uvedte zkladn charakteristiku blokovch zarzen.

--------------------------------------------------------
5. Uvedte zkladn charakteristiku znakovch zarzen.

---------------------------------------------------
6. Vysvetlete vznam major a minor device numbers.


=====
=111=
=====
1. List the features that a hardware device that represent a bus typically provides.

In computer architecture, a bus is a subsystem that transfers data or power between computer components inside a computer or between computers and typically is controlled by device driver software. Unlike a point-to-point connection, a bus can logically connect several peripherals over the same set of wires. Each bus defines its set of connectors to physically plug devices, cards or cables together.

--------------------------------------------------------------------------
2. List the features that a hardware clock device typically provides.

Vyuit hodin, kalendr, plnovn procesu v preemptivnm multitaskingu, tovn strojovho asu, alarmy pro user procesy, watchdogs pro systm, profilovn, rzen.
Principy hodinovho hardware, odvozen od ste a od krystalovho osciltoru.
Mon funkce hardware, tedy samotn ta, one time counter, periodic counter,
kalendr.
Vyuit hodinovho hardware pro ruzn vyuit hodin - pro kalendr - pro plnovn (ekvidistantn tiky, chce interrupt) - pro eventy (nastavovn one time counteru je nejlep, lze i jinak) - watchdog timer - profiling (bud statisticky koukat, kde je program, nebo presne merit).

--------------------------------------------------------------------------
3. List the features that a hardware keyboard device typically provides.

Keyboards are designed for the input of text and characters and also to control the operation of a computer.

--------------------------------------------------------------------------
4. List the features that a hardware mouse device typically provides.

kliky klik

--------------------------------------------------------------------------
5. List the features that a hardware terminal device with command interface typically provides.

Commands as text strings, shortcuts (ctrl-c)...

--------------------------------------------------------------------------
6. List the features that a hardware terminal device with memory mapped interface typically provides.

Znakove a graficke displeje, video ram, akceleratory, rozlisenie, gui, graficke karty

--------------------------------------------------------------------------
7. List the features that a hardware disk device typically provides.

skladuje fixed length sektory, data, aj po vypnuti kompu, poskytuje read, write.

--------------------------------------------------------------------------
8. Explain the properties that a hardware disk interface must have to support hardware ordering of disk access requests.

Podporuju ma vacsina SCSI a SATA diskov, avsak vacsina ATA diskov tuto podporu nemaju.

--------------------------------------------------------------------------
9. Describe at least three strategies for ordering disk access requests. Evaluate how the strategies optimize the total time to execute the requests.

 The FIFO strategy of processing requests directs the disk to always service the first of the waiting requests. The strategy can suffer from excessive seeking across tracks.
 The Shortest Seek First strategy of processing requests directs the disk to service the request that has the shortest distance from the current position of the disk head.
The strategy can suffer from letting too distant requests starve.
 The Bidirectional Elevator strategy of processing requests directs the disk to service the request that has the shortest distance from the current position of the disk head in the selected direction, which changes when no more requests in the selected direction are waiting. The strategy lets too distant requests starve at most two passes over the disk in both directions.

--------------------------------------------------------------------------
10. Explain the role of a disk partition table.

Zoznam particii na disku.

--------------------------------------------------------------------------
11. List the features that a network interface hardware device typically provides.

Posielanie a prijimanie dat cez kabliky.

--------------------------------------------------------------------------
Exercises

1. Navrhnete rozhran mezi ovladacem disku nabzejcm funkce pro cten a zpis bloku sektoru, schopn zpracovvat vce poadavku soucasne, a vymi vrstvami operacnho systmu. Pro vmi navren rozhran popite architekturu ovladace disku, kter je schopna obsluhovat preruen a voln z vych vrstev operacnho systmu, vcetne algoritmu oetren preruen a algoritmu funkc pro cten a zpis bloku sektoru.

