00:00:00
hello everyone and welcome to the first
00:00:01
lecture in the course operating system
00:00:04
so operating system is a course that is
00:00:06
very important as far as computer
00:00:08
science is concerned and also electronic
00:00:10
students you may have this subject in
00:00:12
your course so it is equally important
00:00:14
and this subject it consists mainly of
00:00:17
theory as well as problems so we will
00:00:20
first see the theory and also we will be
00:00:23
solving the problems related to this
00:00:25
subject and we will see what this
00:00:27
subject means and what we can learn from
00:00:29
this subject so first of all this is
00:00:32
just an introduction to operating system
00:00:33
and we will see what this operating
00:00:36
system actually means and what are the
00:00:38
functions of this operating system what
00:00:40
are the types of operating systems that
00:00:42
we have and we will just try to get a
00:00:45
brief idea of this subject all right so
00:00:48
let's get started so here it says that
00:00:50
an operating system also abbreviated as
00:00:53
OS is a program that manages the
00:00:56
computer hardware and it also says it
00:00:59
also provides a basis for application
00:01:02
programs and acts as an intermediary
00:01:05
between computer user and computer
00:01:08
hardware so before we understand these
00:01:11
two lines I will be explaining it to you
00:01:13
with a diagram so before we go into this
00:01:16
diagram here are some examples of some
00:01:19
operating systems that we widely use
00:01:21
these days first is your windows so you
00:01:24
may be using Windows in your desktop or
00:01:26
your laptops so it is one of the famous
00:01:28
operating systems used by many people
00:01:31
and also we have Linux and Ubuntu which
00:01:33
are also two open-source operating
00:01:35
systems that are widely used in your
00:01:38
desktops laptops and other devices and
00:01:40
then we have the Mac OS which is the
00:01:44
operating system from Apple so in their
00:01:46
laptops or in their mac books they used
00:01:49
Mac OS X and then in iPhones we find iOS
00:01:53
operating systems and then we have the
00:01:55
very famous Android which you must be
00:01:58
having in your phones so Android is one
00:02:00
of the famous operating systems that is
00:02:02
used for your mobile devices all right
00:02:05
so now before we try to understand these
00:02:07
two lines that we have written here let
00:02:10
us take a diagram to understand the
00:02:12
basic structure of
00:02:13
computer system so that we can
00:02:15
understand what is an operating system
00:02:16
and what does an operating system
00:02:18
actually do so here I have a diagram
00:02:21
which represents the basic structure or
00:02:23
the basic components of a computer
00:02:25
system so first of all in the lowermost
00:02:27
level we have the computer hardware and
00:02:30
what are computer hardware computer
00:02:32
hardware it consists of resources like
00:02:36
CPU which is a central processing unit
00:02:38
and then memory and then the i/o devices
00:02:42
which means input/output devices so your
00:02:46
resources like the processing units your
00:02:48
CPU and also your memory memory consists
00:02:51
of primary memory like your ramps and
00:02:54
your secondary memory like your roams so
00:02:57
these things also I will be explaining
00:02:59
it in a detail way in another lecture
00:03:01
so let's first know that our memory as
00:03:04
well as the i/o devices IO devices means
00:03:07
the input/output devices these are the
00:03:10
devices that you use for either giving
00:03:12
input to your system or for getting
00:03:15
output out of your system so examples of
00:03:17
input devices will include your devices
00:03:20
like your keyboards mouse your
00:03:23
microphones these are devices that you
00:03:25
use for giving input into the system and
00:03:28
then output devices would be that
00:03:30
devices that you use for getting output
00:03:33
out of your systems that would be your
00:03:34
devices like monitors or speakers which
00:03:37
gives you output or which shows you or
00:03:40
makes you hear the output those are your
00:03:42
output devices so all these things they
00:03:45
fall under computer hardware so we
00:03:48
generally refer them to as resources
00:03:50
alright and then on top of this we have
00:03:53
the operating system but for now let us
00:03:55
just forget this operating system for a
00:03:56
while just let's just assume that it is
00:03:58
not there and then on top of this
00:04:00
operating system we have the system or
00:04:03
the application programs now there are
00:04:06
two kinds of software's we have which is
00:04:08
system software and application software
00:04:10
and system software's are the software's
00:04:13
that are used to directly modify or
00:04:16
directly give some command to that
00:04:18
computer hardware and operating system
00:04:20
is also a kind of system software but
00:04:23
let's not think about that and just not
00:04:25
get confused hearing
00:04:26
that butters mainly try to understand
00:04:28
water application programs application
00:04:31
programs are the programs or software's
00:04:33
that are used to perform a specific task
00:04:36
and that can be directly used by the
00:04:39
user and these are some examples that we
00:04:41
have here versus a word processor word
00:04:44
processors are like your Microsoft
00:04:46
Office Word which are software's used
00:04:48
for making document files I have
00:04:51
believed that we have all used Microsoft
00:04:53
Word and then we have spreadsheets
00:04:54
spreadsheets are like your Microsoft
00:04:57
Excel ok that is used for making tabular
00:04:59
data or for making some calculations in
00:05:01
your table or data and then we have
00:05:04
compilers so if you are a computer
00:05:06
science student you may be knowing what
00:05:07
compilers are so compilers are the
00:05:09
software's that we use for writing our
00:05:12
computer code like your codes like C++ C
00:05:16
or Java these are written into your
00:05:18
compilers and then we have the text
00:05:20
editors text editors are editors useful
00:05:23
modifying or writing text like your
00:05:25
notepad WordPad etc and then we have web
00:05:29
browsers web browsers are the software's
00:05:32
that enable you to browse the web even
00:05:35
as you are watching this video in
00:05:37
YouTube you may be using some web
00:05:39
browser to view this and examples of
00:05:41
this are Google Chrome Mozilla Firefox
00:05:43
Internet Explorer and so on so this is
00:05:47
not the only application program that we
00:05:49
have we have many many application
00:05:51
programs and these are just few examples
00:05:53
I took to make you understand so these
00:05:56
are the application programs we have and
00:05:58
on top of that we have the users that is
00:06:01
like users like you and me
00:06:03
who are trying to use this softwares for
00:06:05
performing specific tasks so let us take
00:06:08
a simple example that this user one he
00:06:11
wants to use the word processor let's
00:06:13
say it is Microsoft Office Word so we
00:06:16
want to use Word for typing some
00:06:18
documents and he wants to save it to his
00:06:20
system so let's see how he does it so we
00:06:24
imagine that there is no operating
00:06:26
system over here we just have this user
00:06:28
and the application programs and then
00:06:30
the computer hardware so if you wants to
00:06:33
write a document or if you want to type
00:06:36
something into Microsoft Word then he
00:06:38
have to tell the computer how
00:06:40
where that he wants to do it now how can
00:06:42
he do it since there is no operating
00:06:44
system he have to explicitly tell the
00:06:46
computer hardware what he wants to do in
00:06:49
the form of code so he have to first
00:06:52
open the Microsoft Word and he have to
00:06:55
tell the computer hardware that I want
00:06:56
to load Microsoft Word so please load it
00:06:59
into the main memory and then after it
00:07:02
is loaded he has to type something and
00:07:04
when he typed something whatever he
00:07:07
types it has to be displayed on the
00:07:08
monitor he have to tell the computer
00:07:10
hardware to do even that you have to
00:07:12
tell please display the things that I am
00:07:14
typing on the computer screen or on the
00:07:16
monitor and then after doing all that he
00:07:18
have to save it and even for saving it
00:07:21
you have to tell the computer hardware
00:07:23
that yeah I am done with all my typing
00:07:25
and now please save this file with a
00:07:27
particular file name to my hard disk so
00:07:31
for each and every small on my new task
00:07:34
you have to perform you have to
00:07:36
explicitly tell the computer hardware
00:07:38
what to do and how do you communicate to
00:07:40
it in the form of codes you have to
00:07:42
write source code you have to write
00:07:44
codes for each and everything that you
00:07:46
have to perform so we see that it is a
00:07:49
very tedious task or it is a very
00:07:51
difficult task to do this if there is no
00:07:54
operating system you have to manually
00:07:56
tell the computer hardware each and
00:07:58
everything that you have to do so if it
00:08:01
was like this then nobody would actually
00:08:03
use a computer system or at least common
00:08:06
people would not use the computer system
00:08:08
because it is such a tedious thing and
00:08:10
it is very difficult to perform even the
00:08:12
simplest of tasks so in order to avoid
00:08:16
this or to overcome this problem what we
00:08:18
have is an operating system so the
00:08:21
operating system resides between the
00:08:23
computer hardware and the users so it is
00:08:26
a intermediary that acts between the
00:08:29
computer hardware and user so let us
00:08:33
take our first example that we have
00:08:34
taken suppose the user one wants to type
00:08:37
something and save it into his Microsoft
00:08:39
Word so what he does he just double
00:08:42
click on the Microsoft Word and then the
00:08:44
rest of the things the operating system
00:08:46
takes care of it it just opens it for
00:08:48
him and then it makes the screen ready
00:08:50
for him for typing and whatever he types
00:08:53
it
00:08:53
the operating system tells the hardware
00:08:55
what to do so that it will be typed and
00:08:57
displayed on the screen and everything
00:09:00
that otherwise would have to be done
00:09:02
manually by the user is now taken care
00:09:05
of by the operating system and after
00:09:08
typing it he has to save it when he
00:09:09
saves it the operating system tells the
00:09:12
computer Hardware where to save it and
00:09:13
how to save it and how much memory to
00:09:16
allocate or saving it and everything is
00:09:19
done by the operating system so all
00:09:21
those my new things which we otherwise
00:09:23
had to do in the absence of operating
00:09:25
system is now done by the operating
00:09:27
system and it becomes very easy for the
00:09:30
user to use the computer system so the
00:09:33
user just opens the computer he just
00:09:35
takes or opens what he wants to use it
00:09:37
and he just uses it and all the
00:09:39
underlying things that has to happen all
00:09:41
the communication that has to happen
00:09:43
between the computer hardware and the
00:09:45
user is taken care of by the operating
00:09:48
system it does all for the user and does
00:09:50
the computing or the usage of computer
00:09:53
becomes very easy for the users because
00:09:56
of the presence of the operating system
00:09:58
so that is the main task of an operating
00:10:01
system now if we look back at these two
00:10:04
lines that we have written now it will
00:10:06
make sense and now you would understand
00:10:08
what it actually means so let's read it
00:10:10
once again an operating system is a
00:10:13
program that manages the computer
00:10:15
hardware yes we saw that the computer
00:10:17
hardware how with resources like CPU
00:10:20
memory i/o devices everything is managed
00:10:23
by the operating system now and then it
00:10:25
also provides a basis for application
00:10:28
programs and acts as intermediary
00:10:30
between the computer user and the
00:10:32
computer hardware so it provides a basis
00:10:35
for the application programs so here we
00:10:37
have our application programs and it is
00:10:39
installed on the operating system it
00:10:42
provides a base for the application
00:10:44
programs and also it acts as an
00:10:46
intermediary between the computer user
00:10:48
and the computer hardware so here we
00:10:50
have the users and here we have the
00:10:52
hardware and in the operating system it
00:10:54
acts like an intermediary between the
00:10:56
user and the hardware thus making the
00:10:59
process of computation and the usage of
00:11:01
computers seamless and very easy for the
00:11:04
users so that is the main fun
00:11:06
of an operating system and I hope that
00:11:09
made you understand what an operating
00:11:11
system actually does now we will be
00:11:15
seeing some of the types of operating
00:11:17
systems that we have and also the
00:11:19
functions of operating system and what
00:11:21
are the goals that an operating system
00:11:23
needs to achieve so here I have some
00:11:26
types of operating system personas badge
00:11:28
operating system then time-sharing
00:11:30
operating system distributed operating
00:11:33
system network operating system a
00:11:35
real-time operating system multi
00:11:38
programming multi processing and
00:11:40
multitasking operating systems so it is
00:11:43
not limited to just this but these are
00:11:45
some main types of operating systems
00:11:47
that we have and don't worry even if you
00:11:50
don't understand them I will be doing
00:11:52
another lecture where I will explain all
00:11:54
the types of this operating system in a
00:11:56
clear manner I am just introducing this
00:11:58
to you so that you just get used to the
00:12:01
terms that we have here so all this
00:12:03
types of operating system they perform
00:12:05
in a different way based on the need
00:12:08
that we have so just remember that much
00:12:10
and you can keep this few points in mind
00:12:13
and then let's see what are the
00:12:14
functions of OS so the main functions of
00:12:17
OS are number one is it is an interface
00:12:20
between the user and the hardware yes we
00:12:23
just saw that right now we have users
00:12:25
here and we have the hardware here and
00:12:27
it acts like an interface between the
00:12:29
user and hardware and then the second
00:12:33
point is allocation of resources so I
00:12:35
already told you what I mean by
00:12:37
resources here what we mean by resources
00:12:39
are the hardware that we have like the
00:12:42
central processing unit the memory and
00:12:44
the input/output devices so when I user
00:12:47
or when different users wants to use the
00:12:49
different resources so they have to be
00:12:52
allocated our resources are not
00:12:54
unlimited we have a limited resources
00:12:55
that means we have limited hardware so
00:12:58
how this resources should be allocated
00:13:01
to users in such a way that everybody
00:13:03
gets their share and it performs in an
00:13:05
efficient manner all this is done by the
00:13:08
operating system so it allocates
00:13:10
resources to different users or
00:13:12
different processes in a good manner
00:13:14
that is the function of the operating
00:13:16
system and then it does the management
00:13:19
of memory secure
00:13:20
etc so I told you even when we were
00:13:23
typing this word processor we have to
00:13:25
first load it into the main memory then
00:13:28
after typing it it has to be saved into
00:13:30
the secondary memory or the hard disk so
00:13:32
don't worry if you don't understand what
00:13:34
is main memory secondary memory and all
00:13:36
this I will be explaining all this to
00:13:38
you in a clearer way in the coming
00:13:40
lectures so just want you to understand
00:13:42
that how the memory is managed
00:13:44
so how things are stored or where they
00:13:46
are stored everything is managed by the
00:13:48
operating system and how securely it is
00:13:51
done that is also managed light
00:13:53
operating systems so these are some of
00:13:55
the main functions of operating system
00:13:57
and now let us see what are the goals of
00:13:59
an operating system so we have studied
00:14:01
this much now we must be knowing just by
00:14:04
studying all these functions of
00:14:06
operating system and what it does we can
00:14:08
just assume what its goals will be
00:14:10
number one is convenience so I told you
00:14:13
in that example if we were not having an
00:14:15
operating system how tedious or how
00:14:17
tough it would be to execute even the
00:14:20
smallest of tasks by the user but having
00:14:23
an operating system on top of our
00:14:25
computer hardware makes it very easy for
00:14:27
the user to communicate to the computer
00:14:30
hardware so it becomes a very convenient
00:14:33
thing for the user to have this
00:14:35
operating system so the first goal of
00:14:37
operating system is to provide
00:14:39
convenience and then the second point is
00:14:41
efficiency now what do we mean by
00:14:43
efficiency if you were not having the
00:14:46
operating system and let's say we have
00:14:48
different users trying to access these
00:14:50
resources and how would you efficiently
00:14:52
manage the resources that you should get
00:14:55
this much resources or the other users
00:14:57
should get this much resources so if you
00:14:59
do it manually it is going to be very
00:15:01
tough and that is very less chance that
00:15:03
you can efficiently manage it so
00:15:05
operating system by taking care of all
00:15:08
these allocations of resources and
00:15:10
management of memory and everything it
00:15:12
provides you an efficient usage of your
00:15:15
system so the first point is a
00:15:18
convenience and then the second point is
00:15:20
efficiency so many operating systems are
00:15:23
designed mainly for convenience some are
00:15:25
design designed for efficiency but
00:15:27
mostly most or we can say many of the
00:15:31
operating system are designed for both
00:15:33
for both convenience as well as
00:15:35
efficiency so these are the goals of
00:15:38
operating system which we achieve by the
00:15:40
functions of this operating system so in
00:15:43
this lecture we have seen that types of
00:15:45
OS we have seen the functions of OS and
00:15:48
we have seen what is the basic structure
00:15:50
and the basic components we have in our
00:15:52
computer system and we see what the
00:15:55
operating system actually does
00:15:57
in order to make computation very easy
00:16:00
for us and we have also seen some
00:16:02
examples of the operating systems that
00:16:05
we widely use so I hope this was clear
00:16:08
to you this was just an introduction to
00:16:10
just get you started so that you can
00:16:12
know what an operating system actually
00:16:14
is and now you must be understanding how
00:16:17
complex tasks the operating system must
00:16:19
be performing so all the design of
00:16:21
operating system and each and everything
00:16:23
that we need to know about this
00:16:24
operating system we will be studying
00:16:26
step by step in this lecture series so I
00:16:29
hope this introduction was clear to you
00:16:31
thank you for watching and see you in
00:16:32
the next one
00:16:34
[Applause]
00:16:42
you
00:16:44
[Music]