02 04 Operating System Services P4 — Transcript
Full transcript
- 0:08[Music]
- 0:20next
- 0:21operating system structure
- 0:24so for efficient performance and
- 0:26implementation of os should be
- 0:28partitioned into a separate subsystems
- 0:32so each with carefully defined tasks
- 0:36inputs and outputs
- 0:38and performance characteristics
- 0:40these subsystems can be arranged in
- 0:43various architectural configurations so
- 0:45it could be a simple structure like that
- 0:47of ms-dos a more complex like that of
- 0:50unix
- 0:51layered or an abstraction
- 0:54and micro kernel
- 0:56alright
- 0:57so let's take this let's start with
- 1:00the monolithic structure okay
- 1:03this is original in unix
- 1:05okay so what do we mean by monolithic
- 1:08okay so a monolithic kernel is an
- 1:10operating system architecture
- 1:13where the entire operating system is
- 1:14working in kernel space
- 1:17okay so the monolithic model differs
- 1:20from other operating systems
- 1:22architecture
- 1:23such as the microkernel architecture in
- 1:25that it alone defines
- 1:27a high-level virtual interface over
- 1:30computer hardware
- 1:32okay
- 1:34next
- 1:39so traditional unix system structure
- 1:42okay so you've got the kernel here
- 1:44all right so the users
- 1:47interacting with the shells all right
- 1:49and the shells okay so you've got a
- 1:52system called interface the kernel
- 1:54and then these are the services
- 1:56okay so that's how traditional unix
- 1:58system architecture works
- 2:00so beyond simple but fully layered
- 2:03okay
- 2:05next for the linux system structure
- 2:07monolithic plus modular design
- 2:10okay
- 2:11so
- 2:13basically linux has innovated
- 2:16the
- 2:17unix systems all right
- 2:20using this um the traditional monolithic
- 2:23and unix
- 2:24plus the modular design
- 2:26okay
- 2:28you also have the layered approach
- 2:30okay so another approach is to break the
- 2:33os into a number of smaller layers
- 2:37each of which rests on the layer below
- 2:40it
- 2:41okay
- 2:42and relies solely on the surfaces
- 2:44provided by the next lower layers so
- 2:46this approach allows each layer
- 2:49to be developed and debugged
- 2:51independently
- 2:53so with the assumption that all lower
- 2:54layers have already been debugged
- 2:57and are trusted to deliver system
- 2:59properties
- 3:07all right
- 3:08so the problem is deciding what order
- 3:11in which to place the layers
- 3:14as no layer can upon
- 3:17the services of a higher layer so
- 3:20many chicken and egg situations may
- 3:23arise
- 3:24right
- 3:25so layered approach can also be less
- 3:27efficient as the request from service
- 3:30from a higher layer has to filter
- 3:32through a lower layers before it reaches
- 3:34the hardware
- 3:35okay so like what we see here
- 3:37so to reach the hardware you have to go
- 3:40through several layers and possibly with
- 3:43significant processing at each step all
- 3:46right
- 3:48okay so next is microkernel
- 3:54so the basic idea behind microkernel is
- 3:56to remove all the non-essential services
- 3:59from the kernel
- 4:00and implement them as system
- 4:02applications instead
- 4:04so thereby
- 4:05making the kernel as small and efficient
- 4:07as possible
- 4:09okay
- 4:10so most microkernels provide basic
- 4:12process and memory management and
- 4:14message passing between other services
- 4:17and not much more
- 4:19okay
- 4:21so
- 4:22most
- 4:23our security and protection can be
- 4:25enhanced as most services
- 4:28are performed in the user mode not in
- 4:30the kernel mode anymore
- 4:32so system expansion
- 4:34can also be easier
- 4:36because it only involves adding more
- 4:39system applications and not rebuilding a
- 4:42new kernel
- 4:43okay
- 4:44so that that's the benefits of it okay
- 4:48so mac
- 4:50was the first and most widely known
- 4:52microkernel and now forms a major
- 4:54component for the map osx
- 4:57okay so the first to adopt this okay
- 5:00it was mac okay mac is an example of
- 5:03microkernel
- 5:05and it has
- 5:07the influence of the modern mac os x
- 5:12okay so they call it darwin
- 5:15okay so in windows nt
- 5:17okay this is from microsoft i mean the
- 5:19microsoft windows nt was originally
- 5:21microkernel but suffered from
- 5:23performance problem relative to windows
- 5:2595
- 5:27nt powerpoint 0 improved performance
- 5:30by moving more services into the kernel
- 5:34and
- 5:35now xp is back being more monolithic
- 5:39i like windows xp you know so for me
- 5:40it's the most
- 5:42stable operating system from microsoft
- 5:45okay
- 5:46another micro kernel example is qnx
- 5:49a real time os for embedded systems
- 5:57okay so this is how a micro calendar
- 6:00system architecture look like you've got
- 6:02the user mode there kernel some of the
- 6:04functionalities are not anymore in the
- 6:06kernel mode
- 6:07okay and instead they have converted it
- 6:10into
- 6:11an application program instead
- 6:13okay so it's much faster
- 6:16next is modules
- 6:18okay so modern os development is well
- 6:22nowadays most of the software
- 6:24developments or even the os developments
- 6:26are using the object oriented okay
- 6:28with a relatively small core kernel and
- 6:31set of modules which can be linked in
- 6:33dynamically
- 6:36all right so see for example the solaris
- 6:39structure okay so which we will show
- 6:41later on okay so modules are similar to
- 6:44the layers
- 6:46in that each subsystem has clearly
- 6:48defined tasks and interfaces but any
- 6:51module is free to contact any other
- 6:53modules eliminating the problems of
- 6:56going through multiple intermediary
- 6:57layers
- 6:58as well as chicken and egg problems all
- 7:02right
- 7:03so the kernel is relatively small in
- 7:05this architecture
- 7:08similar to microkernels but
- 7:10the kernel does not have to implement
- 7:12message passing since modules are free
- 7:15to contact
- 7:16each other directly so that's the
- 7:18advantage or the good side of it
- 7:20okay
- 7:22next
- 7:23hybrid systems
- 7:25so most oss today do not strictly adhere
- 7:27to one architecture okay so that's why
- 7:30it's called hybrid systems it's a
- 7:31combination of different
- 7:33uh systems presented so but hybrids are
- 7:36of several okay so like the mac os or
- 7:40the apple mac os x hybrid
- 7:42layered aqua ui plus kakoa programming
- 7:45environment
- 7:47all right
- 7:51so the mac os and the ios structures is
- 7:53basically on this um
- 7:57uh stocks you've got the applications
- 8:00you can communicate okay or user
- 8:02experience
- 8:03directly accessing the application
- 8:06frameworks core frameworks and the
- 8:08kernel environment called darwin
- 8:10okay darwin is on mac os
- 8:14and ios and this is how it looked like
- 8:16the organization of darwin
- 8:18is on this diagram or figure here
- 8:22all right
- 8:25next how about for android
- 8:27for android the android os was developed
- 8:30for android smartphones and tablets by
- 8:32an open handset alliance so primarily
- 8:36it's google all right
- 8:38so it's an open source
- 8:41similar stack to ios
- 8:44okay
- 8:46so android is an open source os as
- 8:48opposed to ios of course which is
- 8:50proprietary
- 8:51which has led to its popularity okay so
- 8:55android includes versions of linux and a
- 8:58java virtual machine
- 8:59both optimized for small platforms
- 9:03okay so android apps are developed using
- 9:07a special java for android development
- 9:09environment
- 9:12so this is a
- 9:14android architecture
- 9:16okay so similar to that of the ios
- 9:19architecture
- 9:20okay
- 9:22next
- 9:24building and booting and operating
- 9:26systems
- 9:29so operating systems generally designed
- 9:31to run on a class of systems
- 9:33with variety of peripherals so commonly
- 9:37operating system already installed on
- 9:39purchased computers right
- 9:42so we have this oem type of operating
- 9:44systems right when you purchase
- 9:46an operating system so when you purchase
- 9:49a laptop so an operating system is
- 9:50already built in it
- 9:52okay
- 9:53so but can build and install some other
- 9:56operating system so if generating an
- 9:58operating system from scratch
- 10:00so write the operating system source
- 10:02code okay
- 10:03this one is a challenge
- 10:05okay so configure the operating system
- 10:07for the system on which it will run
- 10:10compile the operating system
- 10:12install the operating system and boot
- 10:14the computer and its new operating
- 10:16system
- 10:19all right
- 10:20so building and booting linux so you can
- 10:23do this okay give it a try so download
- 10:25the linux source code okay so at
- 10:27kernel.org
- 10:29configure the kernel via the mini config
- 10:32okay compile the kernel using make
- 10:35okay
- 10:36so you can have build and
- 10:40boot linux systems
- 10:42okay
- 10:45next is system boot
- 10:48so when power initialized on the system
- 10:51execution starts at a fixed memory
- 10:53location
- 10:54okay so the operating system must be
- 10:56made available to hardware so hardware
- 10:58can start it so a small piece of code
- 11:00bootstrap loader bios is stored in a rom
- 11:03or eprom locates the kernel load
- 11:05into a memory and starts it okay so this
- 11:08is what usually happens during the power
- 11:10and self test now all right so in your
- 11:12system is about to boot
- 11:14okay
- 11:15now common bootstrap loader
- 11:18the grub or the groove
- 11:20allow selection of kernel from multiple
- 11:23disks versions and kernel options
- 11:26so kernel loads the system
- 11:29and system is then running
- 11:31okay so boot loaders frequently allow
- 11:34various boot states such as a single
- 11:36user mode now in cisco
- 11:39these cisco devices even has an ios
- 11:42all right or the internet operating
- 11:43systems
- 11:45okay and the booting process is similar
- 11:48to that of
- 11:49a computer
- 11:52if you will still remember now in cisco
- 11:56we considered
- 11:57a router as a computer why
- 12:00because every component of a computer is
- 12:03available in the router
- 12:04so the way windows are the way
- 12:07computers boot up is also the same way
- 12:10as the router and switches boot up
- 12:13all right
- 12:17next operating system debugging
- 12:19debugging is finding and fixing errors
- 12:22just like in programming okay
- 12:24also performance tuning os generate log
- 12:27files containing in error information
- 12:30so failure of an application can
- 12:32generate core dump
- 12:34okay file capturing memory of the
- 12:36process or the operating system failure
- 12:38can generate crash dump
- 12:40containing the kernel memory
- 12:43right so beyond crashes performance
- 12:46tuning can optimize system performance
- 12:48okay
- 12:51next performance tuning
- 12:53just like in task manager so we can
- 12:55improve the performance by removing
- 12:57battle necks
- 12:58okay so os must provide means of
- 13:01computing and displaying measures of the
- 13:03system behavior by in windows we are
- 13:05using the task manager to see the
- 13:08behavior of our computer
- 13:10okay and we can
- 13:12remove or we can end tasks some of the
- 13:15applications that we see cause
- 13:17bottlenecks over the performance okay or
- 13:20that would cost per more performance
- 13:22aggregation on our computer systems
- 13:25okay
- 13:27next is tracing tracing collects data
- 13:31for specific events such as steps
- 13:33involved in a system called invocation
- 13:36okay tools includes like stress i have
- 13:39mentioned stress earlier right
- 13:41so trace system calls invoke bear
- 13:43process
- 13:44or the gdb source level debugger perf
- 13:48collection of linux performance tools or
- 13:51the tcp dump
- 13:53collects network packets
- 13:55okay so we use tcp dump in windows or in
- 13:58in
- 13:59networks all right that's a very useful
- 14:02command there
- 14:04okay
- 14:05so this would be the last slide
- 14:08the bcc okay or the bpf compiler
- 14:11collection
- 14:13so debugging interactions between user
- 14:15level and kernel code nearly impossible
- 14:17without tool set that understands both
- 14:20and an instrument
- 14:22their actions okay so this bcc is a rich
- 14:25toolkit providing tracing features for
- 14:28linux
- 14:29alright
- 14:30so this one is for linux
- 14:42[Music]
- 14:50you
About this transcript
This page contains the full transcript of 02 04 Operating System Services P4 by Santelmo, generated from the public captions YouTube serves with the video. The transcript has 1,749 words across 364 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to translate the transcript into 100+ languages.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.