Главная » Просмотр файлов » Smartphone Operating System

Smartphone Operating System (779883), страница 14

Файл №779883 Smartphone Operating System (Symbian Books) 14 страницаSmartphone Operating System (779883) страница 142018-01-10СтудИзба
Просмтор этого файла доступен только зарегистрированным пользователям. Но у нас супер быстрая регистрация: достаточно только электронной почты!

Текст из файла (страница 14)

(Usually, if it is not serviced in this time, some event is lostor performance is degraded seriously.) The interrupt execution time isthe time required to service the interrupt. Interrupts with a short interruptlatency time must have a short interrupt service time.Interrupts are serviced in a kernel by an interrupt service routine (ISR).There are many ISRs (because there are many types of interrupt) and onlya few need to be recognized by the kernel at any given time.

Therefore,most kernel designs maintain a vector table that contains the interrupt anda pointer to its ISR. This table is finite and is coordinated with the numberof possible interrupt sources. When an interrupt occurs, the address ofthe ISR is looked up in the vector table and that ISR is called.It is important to note that, while an ISR runs on the kernel side ofan operating system, the context – or state – of the system cannot beassumed.

An interrupt can occur at any time and the system could be inany state when the kernel is interrupted. This inability to access any kindof context information restricts what can be done in an ISR.Interrupts are typically implemented by an operating in several phases:1.The preamble phase saves the context of the executing process andprepares to execute the ISR.2.The second phase determines which code to execute on behalf of theinterrupt request (it dispatches the interrupt).

This is either a built-inroutine (in the case of a system class) or an external piece of code.3.The third phase is the execution of the system call or ISR code,handled by privileged-mode code. Typically, this phase is itselfinterruptible.4.The last phase implements the closure of the process (the ‘postamble’phase). This typically amounts to a reversal of the preparatory phase:56KERNEL STRUCTUREthe context is switched back to the interrupted process or storage isrestored and execution resumes where it left off.3.4 Completing the Kernel Design in Symbian OSThe smartphone platform is a unique one.

It requires many real-timeservices, but also must provide an environment that is similar to a desktopsystem in its richness. In order to respond to both of these requirements,the Symbian OS kernel has a more complicated structure than the oneoutlined earlier in this chapter. In this section, we expand our look atthe structure of the Symbian OS kernel by fleshing out a complete kernelstructure.The kernel structure is shown in Figure 3.2. It is organized in relationship to how system calls are made, that is, the path a user-mode programmust travel to execute privileged code in the kernel.The Symbian OS model starts by working with the peripheral hardware.

Several kernel components communicate directly with a smartphone’s hardware.• Device drivers, the interface for program code to work with devices(see Chapter 2), are split into two pieces in Symbian OS: the physical device driver (PDD) interfaces directly with the hardware andUser threadFile serverEFSRVUser modeHALPersonality layerRTOSPrivilegedUser library EUSERMicrokernel serversNanokernelSymbian OS kernelMemory modelASSPPeripheral hardwareFigure 3.2 Structure of the Symbian OS kernelLDDPDDExtensionCOMPLETING THE KERNEL DESIGN IN SYMBIAN OS57the logical device driver (LDD) presents an interface to upper layersof software.

In addition, the kernel can interact directly with hardware through the application-specific standard product (ASSP), whichimplements a number of components through a standard interface (soa specific driver is not needed). Finally, real-time components of theoperating system – those specifically involved in phone calls – canalso interact directly with the phone hardware when they run in aspecial mode (called the ‘personality layer’).• The memory model used by the operating system is a model of howmemory is organized on a device and how the operating system workswith it. We deal with memory management and memory models inChapter 7. Several memory models are possible in Symbian OS andthese are implemented by the Symbian OS kernel.• The Symbian OS kernel relies on the nanokernel, but is separatefrom the real-time portions of the operating system.

It implements thevarious memory models that platforms require.• The nanokernel implements the most basic and primitive parts ofSymbian OS and is used by the phone part of the operating system aswell as the larger kernel layer.• The real-time OS and personality layers are specifically designedto implement phone functionality.

The RTOS implements the GSMfunctions of a smartphone in direct connection with the hardware.The personality layer allows a smartphone manufacturer to use adifferent implementation of phone function (say, analog functionality)by using the implementation from another operating system or deviceand using a personality layer to connect that implementation to theGSM functionality of the smartphone.

The personality layer then actsas an interpreter, translating the non-GSM implementation into animplementation the smartphone can understand.• User-mode layers include microkernel servers as well as user applications. As we have discussed before, these interact with the SymbianOS kernel to request and initiate kernel-mode operations.There are many paths through the Symbian OS kernel structure. Auser-mode application might go through the file server, which wouldmake a Symbian OS kernel request, which would require device I/O,which would make use of the nanokernel.

A phone call might initiatefunctions in the RTOS, which would interact directly with the hardware.58KERNEL STRUCTUREAn application might simply cause arithmetic instructions to execute andmight not use any kernel functions at all.Note that we did not mention the extension portion of the kernelstructure. Extensions are device drivers that are loaded and executedwhen a phone boots up.

They interact with the kernel and can causekernel-mode operation. However, they represent layers in the kernelthat extend functionality, but do not directly interact with user-modeapplications. For example, the ASSP layer is an extension.3.5 SummaryThis chapter has been about how kernels are structured and how thevarious parts of a kernel interact with each other and with user-modecode.

We began with a general look at kernel components from a layeredperspective and the perspective of active and passive components. Wethen defined system calls and interrupts in relation to the kernel. Wecompleted the chapter by taking a fresh and complete look at theSymbian OS kernel structure, from the hardware to user-mode threads.In the next chapter, we begin to look at memory models and howmemory must be organized to use it effectively.Exercises1.Consider the following services (seen in Chapter 2) and classify themas to where their implementation would take place in the kernelstructure.a.

Opening and closing filesb.Writing to a registerc. Reading a memory celld.Receiving a text messagee. Playing a sound bite.2.Reconsider the following question from Chapter 2 and pinpoint theplace these operations should happen in the kernel structure. Whichof the following operations should be done in the kernel as privilegedmode?EXERCISES59a. Reading and writing filesb.Sending a text messagec. Taking a picture with the camerad.Notifying a program about data receivede. Switching processes on the CPUf.Reading from a memory cell.3.Consider a software timer that would be used by software as a ‘wakeup device’ or an alarm that would send a software interrupt whenthe timer goes off.

Place a priority on the timer interrupt. Name someevents that are more important than a timer event. Name some eventsthat are not as important.4.Should a timer be a real-time or a system-time object? In other words,should it be implemented by the RTOS or by the system kernel?Explain your answer.5.Consider the phases of interrupt implementation (Section 3.3).

Wementioned that ISR execution is pre-emptible. Should the other stepsbe pre-emptible? Give reasons for your answer.6.Consider again the diagram in Figure 3.2. Why is the nanokernel ontop of the Symbian OS kernel, which is on top of the memory model?According to Figure 3.1, the nanokernel is the innermost layer. Canyou describe why the diagram in Figure 3.2 is accurate?7.Symbian OS is an extensible operating system. If someone wanted to,they could write code that would run completely in kernel mode foreach of its operations. Explain how this could happen – especiallywhen we described system calls as built into the operating system.8.Describe why you might want to replace passive components of anoperating system with components that you could write.

Характеристики

Тип файла
PDF-файл
Размер
1,2 Mb
Материал
Тип материала
Высшее учебное заведение

Список файлов книги

Свежие статьи
Популярно сейчас
Зачем заказывать выполнение своего задания, если оно уже было выполнено много много раз? Его можно просто купить или даже скачать бесплатно на СтудИзбе. Найдите нужный учебный материал у нас!
Ответы на популярные вопросы
Да! Наши авторы собирают и выкладывают те работы, которые сдаются в Вашем учебном заведении ежегодно и уже проверены преподавателями.
Да! У нас любой человек может выложить любую учебную работу и зарабатывать на её продажах! Но каждый учебный материал публикуется только после тщательной проверки администрацией.
Вернём деньги! А если быть более точными, то автору даётся немного времени на исправление, а если не исправит или выйдет время, то вернём деньги в полном объёме!
Да! На равне с готовыми студенческими работами у нас продаются услуги. Цены на услуги видны сразу, то есть Вам нужно только указать параметры и сразу можно оплачивать.
Отзывы студентов
Ставлю 10/10
Все нравится, очень удобный сайт, помогает в учебе. Кроме этого, можно заработать самому, выставляя готовые учебные материалы на продажу здесь. Рейтинги и отзывы на преподавателей очень помогают сориентироваться в начале нового семестра. Спасибо за такую функцию. Ставлю максимальную оценку.
Лучшая платформа для успешной сдачи сессии
Познакомился со СтудИзбой благодаря своему другу, очень нравится интерфейс, количество доступных файлов, цена, в общем, все прекрасно. Даже сам продаю какие-то свои работы.
Студизба ван лав ❤
Очень офигенный сайт для студентов. Много полезных учебных материалов. Пользуюсь студизбой с октября 2021 года. Серьёзных нареканий нет. Хотелось бы, что бы ввели подписочную модель и сделали материалы дешевле 300 рублей в рамках подписки бесплатными.
Отличный сайт
Лично меня всё устраивает - и покупка, и продажа; и цены, и возможность предпросмотра куска файла, и обилие бесплатных файлов (в подборках по авторам, читай, ВУЗам и факультетам). Есть определённые баги, но всё решаемо, да и администраторы реагируют в течение суток.
Маленький отзыв о большом помощнике!
Студизба спасает в те моменты, когда сроки горят, а работ накопилось достаточно. Довольно удобный сайт с простой навигацией и огромным количеством материалов.
Студ. Изба как крупнейший сборник работ для студентов
Тут дофига бывает всего полезного. Печально, что бывают предметы по которым даже одного бесплатного решения нет, но это скорее вопрос к студентам. В остальном всё здорово.
Спасательный островок
Если уже не успеваешь разобраться или застрял на каком-то задание поможет тебе быстро и недорого решить твою проблему.
Всё и так отлично
Всё очень удобно. Особенно круто, что есть система бонусов и можно выводить остатки денег. Очень много качественных бесплатных файлов.
Отзыв о системе "Студизба"
Отличная платформа для распространения работ, востребованных студентами. Хорошо налаженная и качественная работа сайта, огромная база заданий и аудитория.
Отличный помощник
Отличный сайт с кучей полезных файлов, позволяющий найти много методичек / учебников / отзывов о вузах и преподователях.
Отлично помогает студентам в любой момент для решения трудных и незамедлительных задач
Хотелось бы больше конкретной информации о преподавателях. А так в принципе хороший сайт, всегда им пользуюсь и ни разу не было желания прекратить. Хороший сайт для помощи студентам, удобный и приятный интерфейс. Из недостатков можно выделить только отсутствия небольшого количества файлов.
Спасибо за шикарный сайт
Великолепный сайт на котором студент за не большие деньги может найти помощь с дз, проектами курсовыми, лабораторными, а также узнать отзывы на преподавателей и бесплатно скачать пособия.
Популярные преподаватели
Добавляйте материалы
и зарабатывайте!
Продажи идут автоматически
6353
Авторов
на СтудИзбе
311
Средний доход
с одного платного файла
Обучение Подробнее