Som 2
Som 2
SOM02
Page 1
Software base of a computer system: the operating system 2
SOM02
Operating System: what it is, what functions it has, the purpose, what types there are
According to their use, their tasks,..., mention operating systems that you know and for what users they are intended.
indicated....
The operating system is a set of programs, services, and functions that manage and
They coordinate the operation of hardware and software. Acts as an intermediary.
between the user and the computer hardware. On one hand, it tries to make the use of
resources to be efficient and on the other hand try to ensure communication between the machine and the
user be natural and intelligible.
To achieve these objectives, you need to perform a series of functions: management of
processor, memory management, peripheral management, management
of the file system, error handling and processing, security and protection of the
network system and control.
We can find single-tasking or multitasking operating systems depending on the number of
processes, single-user or multi-user operating systems according to the number of users
that interact simultaneously with resources, batch systems, or multiprogramming according to
the modes of exploitation of computational load, centralized systems, network or
distributed according to the way of offering services and monolithic systems, by layers or
virtual machine according to its internal structure.
Some current operating systems are Windows; the most widespread at present and
for the user of any level and for companies; OS X, Apple's operating system
that occupies a small proportion of the market compared to Windows and is aimed at
also to users of any type but has a very simple graphical environment and
easy to handle; Linux is a widely used free system around the world where they have
thousands of programmers have collaborated and it is aimed at all types of users.
Page 2
Software base of a computer system: the operating system 3
SOM02
5.- Explain the difference between internal fragmentation and external fragmentation.
64+33+31=128 page frames are needed to load the program into memory.
So much so that it is possible to load the program into memory.
7.- Compare the interface of an operating system from 10 years ago (for example, a
Windows 3.1) with a current one (for example, Windows 7). What are the
most important differences at a glance?
Page 3
Software base of a computer system: the operating system 4
SOM02
8.- Make a drawing/schema of the states that a process goes through. Explaining that
it means each state and explaining the evolution of these processes according to the states
for what it goes through.
Termination
Unborn process
9.- The most commonly used planning criteria are the return time, time of
waiting, performance and efficiency. Explain these concepts in a simple way.
Turnaround time: the time that elapses from the creation of a process until its
completion. It is the sum of the waiting time and the execution time.
Waiting time: it is the time that the process waits until it is granted the
processor.
Performance: indicates the number of processes per unit of time.
Effectiveness: percentage of time the processor is busy.
10.- There are 3 processes P1, P2, and P3 with execution times of 85, 45, and 118. If it acts
the SJF algorithm, determine the order in which they appear in the ready list.
Calculate your return times, wait times, performance, and system efficiency.
The order according to the SJF algorithm would be first the process P2, followed by the process
P1 and finally the process P3.
Average return=82.66
Page 4
Software base of a computer system: the operating system 5
SOM02
11.- If the return time of a process is 30 and the actual execution time is 10, what is the
waiting time, the efficiency and the performance of the system?
Tiempo de espera=20
Efficiency=(10/30)x100=33.33%
Performance = 1/30 = 0.033 processes per unit of time
12.- There are 2 processes P1 and P2 with execution times of 25 and 30. If it acts on the
RR algorithm (q = 10) determine the order in which it is in the list of ready processes.
Calculate your turnaround, response, and wait times.
1 2 3 4 5 6 7 8 9 10
P1 P1 P1 P1 P1 P1 P1 P1 P1 P1
11 12 13 14 15 16 17 18 19 20
P2 P2 P2 P2 P2 P2 P2 P2 P2 P2
21 22 23 24 25 26 27 28 29 30
P1 P1 P1 P1 P1 P1 P1 P1 P1 P1
31 32 33 34 35 36 37 38 39 40
P2 P2 P2 P2 P2 P2 P2 P2 P2 P2
41 42 43 44 45 46 47 48 49 50 51
P1 P1 P1 P1 P1 P2 P2 P2 P2 P2 P2
52 53 54 55
P2 P2 P2 P2
13.- There are two processes, P1 with a runtime of 20 and P2 with a runtime
from 15. According to the wheel algorithm with quantum 10. Mark the return time, of
response and waiting.
1 2 3 4 5 6 7 8 9 10
P1 P1 P1 P1 P1 P1 P1 P1 P1 P1
11 12 13 14 15 16 17 18 19 20
P2 P2 P2 P2 P2 P2 P2 P2 P2 P2
21 22 23 24 25 26 27 28 29 30
P1 P1 P1 P1 P1 P1 P1 P1 P1 P1
Page 5
Software base of a computer system: the operating system 6
SOM02
31 32 33 34 35
P2 P2 P2 P2 P2
14.- The following cargo description; assume the indicated order of arrival
WorkTime CPU=UPriority
1 4 3
2 2 2
3 3 2
4 2 1
Represent the CPU access by using a Gantt chart when applying scheduling.
FCFS (First Come First Serve: First to arrive, first to be served), RR (Robin
Round Robin (RR) (q = 1), SJF (Shortest Job First: the shortest task first)) and by
priority. In each case, calculate the efficiency=U/R*100, the return time and of
Wait for each job. Create a summary table with the different results and indicate
the one that has the best results overall.
FCFS Algorithm
1 2 3 4 5 6 7 8 9 10 11
P1 P1 P1 P1 P2 P2 P3 P3 P3 P4 P4
RR Algorithm
1 2 3 4 5 6 7 8 9 10 11
P1 P2 P3 P4 P1 P2 P3 P4 P1 P3 P1
SFJ Algorithm
Page 6
Software base of a computer system: the operating system 7
SOM02
1 2 3 4 5 6 7 8 9 10 11
P2 P2 P4 P4 P3 P3 P3 P1 P1 P1 P1
Priority algorithm
1 2 3 4 5 6 7 8 9 10 11
P4 P4 P2 P2 P3 P3 P3 P1 P1 P1 P1
Summary of results:
The best results are from the SFJ AND PRIORITY algorithm since both in
Overall, they have the lowest average times and highest average efficiency.
15.- Let the following load description be; assume the indicated order of arrival.
WorkTime CPU=Priority
1 6 3
2 2 2
3 3 4
4 1 1
5 4 2
Represent the access to the CPU by using a Gantt chart when applying scheduling.
FCFS, RR (q = 1), SFJ and by priority. In each case, calculate the efficiency, the time of
return and waiting for each job.
FCFS Algorithm
Page 7
Software base of a computer system: the operating system 8
SOM02
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
P1 P1 P1 P1 P1 P1 P2 P2 P3 P3 P3 P4 P5 P5 P5 P5
RR Algorithm
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
P1 P2 P3 P4 P5 P1 P2 P3 P5 P1 P3 P5 P1 P5 P1 P1
SFJ Algorithm
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
P4 P2 P2 P3 P3 P3 P5 P5 P5 P5 P1 P1 P1 P1 P1 P1
Priority Algorithm
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
P4 P2 P2 P5 P5 P5 P5 P1 P1 P1 P1 P1 P1 P3 P3 P3
Page 8
Software base of a computer system: the operating system 9
SOM02
16.- Based on the following schedules; draw the Gantt chart and calculate the
Ui, Ri and Ei: and indicate the algorithm used in each case.
----------
A
--
-----------------------
B
-----
---------------
C
---
-------------------
D
----
-----
E
--
FCFS Algorithm
A -- -- --
B -- -- -- -- -- --
C -- -- -- --
D -- -- -- -- --
E -- --
Average runtime=4
Page 9
Software base of a computer system: the operating system 10
SOM02
A ------- --
B ------- -------
C ------- -------
D ------- ------- --
E ------- -------
5.8
Mean return time=22.8
Average wait time=6
-------------------
A
---
----------
B
--
------
C
-
--------------
D
---
------------------------
E
----
SJF Algorithm
Average runtime=3
Mean return time=7
Average wait time=4
Page
10
Software base of a computer system: the operating system 11
SOM02
17.- Make a list of the latest operating systems, as well as their versions, of
the systems, Macintosh, Windows, and Linux. Learn about them and explain what improvements
they contribute compared to their predecessors.
Windows 8.1 - Replaces version 8 and has the novelty of the return of the button
start, traditional start mode so that the user can choose whether to begin with
the view of the traditional desktop, greater customization of the desktop, listing of
all applications, faster organization of the Tiles, tasks and multiple views,
universal search, automatic updates in the background without any
notification, complete integration with Skydrive, new Internet Explorer, better control with
mouse and keyboard, new configuration options for active corners, changes in
Windows Explorer, on-screen keyboard, photo slideshow on the screen of
blocking, improvements in system applications, compatibility with 3D printers.
Mac OS X Mavericks replaces the Mountain Lion version and has the following new features: To
save a file, users can add tags that will be displayed on the bar
Finder's sidebar, to assist in the search for files; The tabs will allow users to
users open multiple windows in different tabs and multiple screens; they can
open full-screen applications on multiple monitors and switch between them
easily; The new operating system also allows the use of an HDTV as
second monitor thanks to Apple TV; Apple Maps arrives manifestly on Macs
Improved, there is the possibility of syncing the application with other devices, something
very useful for finding directions at home and then syncing them; Maps is also
integrated into Mail, Contacts, and the redesigned Calendar application; Mavericks
introduce iBooks for the first time for Mac devices. Cloud integration; The
users will be able to access notifications even if their Mac is in sleep mode without
unlock the screen.
Ubuntu 13.10 - Precedes Ubuntu 13.04 and has new search features.
smart to the board, new voice recognition; Contacts will be able to edit the
contact information and will also be able to delete it; The document viewer receives
a new toolbar, Simple Scan will receive brightness and contrast options;
Rythmbox will have textless play buttons and options in the bottom bar for
add files, playlists and check connected devices, new
graphics server.
Page
11
Software base of a computer system: the operating system 12
SOM02
c. Why do we need to know the appropriate file system for the OS?
To format the hard drive that contains it in that format, as well as other media.
of storage must also be formatted in the file system that
recognize the OS.
NTFS, FAT32 for Windows; HFS, HFS+ for MAC OS; EXT, EXT2, EXT3 for
Linux; CDFS, UDF, LFS for CD, DVD, BLU-RAY DISC.
19.- If there is a computer with the MS-DOS operating system and with this FAT:
0123456789101112131415161718192021
810721816612141301720150 0 0
It is the file allocation table and contains an index that indicates the sectors.
free and those that contain information, all of which are identified through records of
directions.
b. According to the FAT, how many files does it contain and why?
It contains 4 files because the 0s mark the ends of the files and there are 4 zeros.
therefore 4 files.
c. What blocks does the file occupy whose first block is number 1?
Blocks 1, 6, 8, 18.
e. Is there any other file on the disk? What blocks do they occupy?
Yes, two more, one occupies blocks 3, 7, 15, 16, 20 and the other occupies blocks 11, 14,
17.
Page
12