iOS Operating System Analysis 2014
iOS Operating System Analysis 2014
embargo ofreció others exclusive to the company, we will only be able to provide
characteristics how the through the acquisition of one of those devices,
integration with Facebook in addition to the battery life, which is very short,
share photos in streaming compared to other devices that have a
by iCloud, panoramic photos
different operating system.
among other functions. Brought
new updates like It has special commands required by the
iOS 6.1, iOS 6.1.3, iOS 6.1.4 and command line interface, often make use of
its final version 6.1.5 cryptic name schemes and do not give much
This seventh generation information to notify a user of what they are
multiplatform adapted for doing.
iPhone, iPad, and iPod touch, is
the most recent version of [Link] iOS
Operating System oriented towards
offer a better experience
June of
iOS 7 device visual, is
2013 iOS is an operating system based on the
version offers features
improved at the Center of knowledge of the MAC OS X operating system, the
Notifications, the camera, the same which in turn is based on Darwin BSD, for
Safari y the capacity what a UNIX operating system is.
multitasking of yours This architecture has four layers of
applications.
abstraction, in which the upper layers are
those that contain the services and technologies for
b. ADVANTAGES AND DISADVANTAGES OF the development of applications, while the layers
lower rates intervene in basic services.
iOS
i. Advantages
[Link] MANAGEMENT
As mentioned earlier, iOS derives from
UNIX operating system, so we will focus on
he. Fig. 3.2.: State diagram of a process[8]
When talking about processes, it can be defined as a
work in progress in a real-time system ii. Threads
shared. The one that needs certain resources
such as: CPU time, memory, files and A thread is one that allows the execution of several
I/O devices. instructions sequences within the same
These resources are provided to you at the moment process sharing the same space of
to create the process or they are assigned while it is happening directions and the same data structures of the
executing. When the process ends, the system core.
operational claims all usable resources. System calls for basic management of
threads are:
i. States of a process
Table 3.1. System calls, thread management. [9]
Includes nine states through which it travels a Description Calls to the system
processes, such as: pthread_create
Created (Creado):El proceso está recién creado pthread_exit
and is not ready to run. Thread management pthread_kill
Ready (Ready to execute in memory): The pthread_join
pthread_self
the process is not running, but it is ready
to execute as soon as the kernel it
plan. iii. Process Planning
Ready Swapped
the process is ready to execute. But it must In UNIX, being a time-sharing system
load into main memory before it and real-time, use a short-term scheduler, therefore
plan your execution. that its scheduling algorithm prioritizes
Sleep (Asleep in memory): Unable to execute providing an effective response time to
until an event occurs; the process is interactive processes, which turns it into a system of
in main memory. timeshare. The algorithm used by this system
Sleep Swapped (Asleep in the swap area): The It is the Round-Robin with multiple queues where
the process is waiting for an event and has been each of these queues is assigned a level of
changed to a secondary storage (a priority, this level of priority is high when its value
blocking state. it is lower and when the value is high the level of
Kernel running (Execution in Kernel mode): priority decreases, a queue represents a list
Events that only the kernel can control. linked to the processes ready to be executed in
User Running (Execution in user mode): where they share the same level of priority.
Running in user mode. The processes that are going to be executed are assigned
Zombie: The process no longer exists but leaves a a CPU time called quantum.
register to be picked up by the parent process. A process runs until it consumes its
Preempted (expelled or appropriated): The process time quantum or is voluntarily blocked, at
returns from kernel mode to user mode, but the the duration of the quantum is usually 100 milliseconds.
the kernel takes over the process and makes a change The process scheduling algorithm that uses
from context, passing another process to be executed in this system is as follows:
user mode. The priorities of the processes that are ready
to be executed and assigned among the
It is worth mentioning that there are two levels in the different queues are constantly calculated
that a process is executed: in periods of 1.
Kernel mode: in this mode, no one is put. Every tenth of a second, the scheduler
restriction to the system kernel (privileged mode select the highest priority process and this is
[7]). assigned to the CPU.
User mode: normal execution mode of a If a process consumes its time quantum, it is
process, has no privileges. placed at the end of its priority queue.
Research - Analysis of the iOS operating system - 2014
If a process goes to the sleeping state during o semctl.- Performs read operations and
on the amount of time, the scheduler selects status writing of the traffic light, as well as
immediately another process and assigns it the CPU. also the destruction of the traffic light.
If a process ends a system call o semop.- Performs increment operations
during its quantum of time and a process of the decrease with blockages.
the highest priority is ready to be executed, to the Signals.-It is a mechanism to communicate to a
lower priority process exits the CPU and is given process that a certain event has occurred and therefore
assign the space to the highest priority. must be attended to.
Every time there is an interruption of the A signal handler is a subroutine
system clock (clock tick), the usage counter responsible for attending to the reception of a signal
the CPU of the process increases by a process. When a process
Define a manager is indicated that it has been
captured the signal.
The possible signs are:
o SIGHUP. Usually for reread
configuration
o SIGKILL - The kernel destroys the process
o SIGTERM.- 'Graceful' termination, in
general ends up sending a KILL to himself
same
o SIGSTOP.- The kernel stops the process
stopped
o SIGCONT
o SIGUSR.- Defined by the user or more
Well done to the person who programmed the process.
Fig 3.3. Priority scheme in UNIX
Sockets.- A socket is a point through which one can
iv. Inter-process communication communicate two processes. These can be created and
destroy dynamically.
UNIX must establish certain mechanisms of
inter-process communication (IPC):
Message queue: it is a way to
communication that allows sending messages from a
process to another. Each process is associated with a
message queue, which functions as a mailbox.
The basic operations it performs are:
o Msgctl.- Control
o msgget.- Create / access
o msgrcv.- Receive messages
o msgsnd.- Send messages
Fig 3.4. Communication via Sockets
Shared memory: it is a way of sharing
data in a memory fragment to which several
processes can access. INTERBLOCKING
Within UNIX, memory usage
shared, it is the fastest way to In most Operating Systems, in our
communication, being a block of memory in UNIX case, the problem is simply ignored by justifying that
virtual which is shared by several processes; the most users would prefer an active lock
same ones that can write or read about the occasional (or even a blocking) instead of a
shared memory. rule that restricts all users to one
The fundamental operations that UNIX process, a single file open, and only one thing of
define son: all.
o Shmat.- Links memory to the process The method used to address the problem
o Shmctl.- Performs control mutual blocking in UNIX is:
o Shmdt.- Detach memory from the process
o shmget.- Create / start / access i. The ostrich algorithm
Semaphores: it is a concurrency tool
que permite sincronizar varios procesos. This method ignores the problem and pretends that
A traffic light must have a value of mutual deadlocks never occur in the system.
traffic light, an identifier of the last process that The ostrich method is very simple, it consists of
performed operations on the traffic light, a number to lower your head and do nothing about the problem.
of processes that wait for the traffic light to be To bypass the interlocking, it is necessary to have in
greater than its current value and a number of count the following factors:
processes that wait for the value of the semaphore Number of times the deadlock occurs.
zero sea. Additionally, UNIX defines three operations. Severity of interlocking occurrence.
basics: Cost of the consequences.
o semget.- Create or take control of a Cost, in case of doing something.
traffic light
Research - Analysis of the iOS operating system - 2014
II. CONCLUSIONS
The mobile industry was revolutionized thanks to its origin and
evolution of the iOS operating system, which was born from the
Fig 3.6. Exchange or Swapping of a process [15] hands of Steve Jobs, giving rise to a generation
new and complete list of devices that are still being followed
developing up to the present.
Research - Analysis of the iOS operating system - 2014
This operating system, which originally is [11]. A. Tanenbaum and A. Woodhull, Operating Systems
called iPhone OS, it advanced over time with the passing of Design and implementation., Mexico: Prentice-Hall,
years, including new features in each one, 2006.
as well as correcting errors, that each version [12]. F. Serrano, "Memory, process management in the
I had, currently there is the iOS 7.1 version, which operating systems," [Online]. Available:
it has improvements in its interface, corrections of some [Link]
errors, new features, thus introducing a 0609/8179/1/[Link].
new operating system update, and achieving [13]. J. Morera and J. Perez, Concepts of systems
in each one, more complete versions suitable for the operational, Madrid: Pontifical University Comillas,
changing market in which we live. 2002.
iOS is an operating system whose heart is [14].A. Lafuente, "Memory management," University of
centered on UNIX, based on that, within its management of Basque Country, 2009. [Online]. Available:
processes, it has nine states of a process, [Link]
in addition to mentioning that such processes can be pdf.
execute in two levels: kernel mode and user mode, Swapping and schemes of
in which a execution of the process is carried out without assignment, En line]. Available:
no restriction (privileged mode) or an execution [Link]
in normal mode, respectively. assignment_schemes.
UNIX uses a short-term process scheduler McGraw-Hill, 'Multiuser Operating System'
deadline, managing that planning with an algorithm Unix/Linux. File and directory management
Round-Robin with multiple queues where each one of users" [Online] Available: [Link]
these queues have an assigned priority level. Another [Link]/bcv/guide/capitulo/[Link]
One of the important features is synchronization. [17].F. Doutel, "Files App, a file manager for
of processes that this operating system has. iOS: A Fund [En line Available:
Use different communication mechanisms [Link]
between processes such as: Semaphores, sockets, queues of a file manager app for iOS in depth
messages, shared memory; where each
mechanism enables synchronization between several
processes.
III. REFERENCES
G. Fernández, iOS, Everything you have always wanted
I would like to know about your iPhone and iPad, 2013.
[2]. M. Michán, "The evolution of iOS from 2007 to
the present day,» Applesfera, 2013. [Online].
Available: [Link]
[3]. R. Ritchie, "iOS," iMore, 2014. [Online]. Available:
[Link]
iOS: The mobile operating system of
Apple.," Culturization, 2012. [Online]. Available:
[Link]
[5]. W. Bellisle-Pio, P. Technologies and W. Auburn,
Advantages and disadvantages of the operating system
Unix, 2012. [En line]. Available:
[Link]
disadvantages-of-the-unix-operating-system
list_104966/
[6]. José Arabia, Laura González, Lucia Huergo,
"iOS Technology," Google Sites, [Online].
Available: [Link]
Design of operating systems.
Memory management.,» University of Almeria, [In
line]. Available:
[Link]
Polytechnic University of Catalonia, 'Management of
Processes, [En line. Available:
[Link]
[Link]
N.N, "UNIX Concurrency: POSIX Threads" [En
line]. Available:
[Link]
[10].N.N, "UNIX Administration Course. Processes,"
[Online]. Available:
[Link]
htm.