Operating Systems and Applications

Video Activity
Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *
or

Already have an account? Sign In »

Time
8 hours 53 minutes
Difficulty
Beginner
CEU/CPE
11
Video Transcription
00:00
in this section, we're going to talk about compatibility between applications on operating systems.
00:08
Before we talk about compatibility, though, let's define what we mean by an application
00:13
also known as a program or a nap.
00:17
Applications are written by programmers using a variety of programming languages,
00:21
although earlier we saw that a computers and native languages finery,
00:27
that's not very easy to work with for humans.
00:30
If you have to use machine code,
00:32
you would be entering sequences of ones and zeros. It's not a very inviting prospect. That's certainly be a lot less. Programmers around
00:41
humans use high level languages.
00:44
Using these. They can write programs using English words.
00:48
High level languages are then converted. Divine ary,
00:51
a process known as compiling
00:55
applications, are usually devoted to a single purpose.
00:59
Microsoft Word, for example, is a word processor is designed to help you create documents and edit documents.
01:07
A Web browser. On the other hand, it's an application designed to make it easy for you to get to websites on the Internet and to interact with them.
01:17
So when a user starts an application, what happens?
01:21
The CPU retrieves the program file from the disk and copies it into Ron
01:27
and remember that this is done because accessing drive is much faster than reading from the hard drive hard desk
01:36
and then once it's in RAM, the CPU then processes that program, carrying out the instructions that are contained within it.
01:51
Programs are written using high level languages
01:55
such a C or visual basic.
01:59
As you can see on the slide here,
02:01
this is written as relatively easy to understand text.
02:07
I didn't have to write out all that tedious machine code. I've never typing ones and zeros.
02:12
It might still look complex, but it's much easier than King Sheen coat
02:19
When you compiled the program, it's converted from that high level language
02:23
into machine code and then saved as an execute a ble file.
02:30
You could see which files are executed all files on your computer, because their name ends with the letters dot e x e,
02:37
at least in windows
02:38
in
02:39
apples OSX operating system.
02:43
The file name ends with dot a pee pee or not app you like.
02:49
The source code, which is human readable, is often not released by the bender.
02:53
We call that closed source applications. Most commercial software is closed source,
03:01
but there is a whole gamut of software that is open source.
03:06
And that means the programmer is releasing both the human readable source code off the program in the high level language
03:14
and usually also the compiled version the execute a ball that you can run.
03:19
Let's delve into that whole idea a bit more in a bit more detail,
03:27
so all software
03:29
can be closed source or open source. And by that I mean you're operating system and the applications that can all be either closed or open source.
03:39
For example, Lennox is an open source operating system.
03:45
Windows is a closed source operating system.
03:49
Open source software is available. It's human, readable, high level language that you saw on the previous slide.
03:59
This means that anyone can examine the code to see what the software's actually doing.
04:03
For example, you can verify that software is not malicious.
04:08
You can even modify the source code to suit your needs. Your program doesn't do exactly what you want.
04:15
Maybe you can change it,
04:17
and so you could download the source code.
04:21
You can check it to see if it's malicious in any way.
04:25
You can modify it if you want
04:27
and then when you're satisfied with it,
04:29
you can compile it into an execute herbal.
04:34
Most commercial software is not open source
04:39
when it's closed. Source. You only have access to the compiled version of the software that is after it has been converted into a serious of binary instructions.
04:47
This is done because the vendor doesn't want you messing with that application or even knowing what the application's really doing. That kind of keeping it secret.
04:58
So close Source software
05:00
is generally only made available as a compiled execute herbal.
05:05
If you want to have a look at open source software, check out source forge dot net.
05:11
You can download many free open source programs, applications and so on from there, including some very useful stuff like replacements for Microsoft office, which are free.
05:26
So let's summarize. Operating systems allow you to run an application.
05:30
The execute herbal is loaded from the hard disk into rhyme.
05:33
The process of then steps through it, executing each commanding turn.
05:39
You can run an application by finding the execute herbal, say Windows Explorer and double clicking it.
05:46
You can click on an icon on the desktop if there is one for the application,
05:51
huh?
05:53
You can click on an item on the START menu. The application is listed on your start menu.
05:58
What about command line based operating systems, though?
06:01
Well, in those you would have to move to the folder where the Execute Herbal is, and then type in the name of the executed file and that would then execute that program.
06:15
So now I want to touch on something called the AP I or the application programming interface
06:23
Operating systems provide an A p I,
06:26
and the reason is that these are simple commands that can be invoked by the programmer.
06:31
This saves the programmer from having to write the actual code for common tasks like
06:36
a file open dialog box or communicating across the network
06:43
stove. For example, to create a file open dialog box.
06:47
The application calls a function called bile open dialogue brackets.
06:54
The operating system understands that this is a request to generate the File Open Dialog box.
07:00
The program. I didn't have to break the code to actually do that.
07:04
Here's a very simple texture that called note pad, which comes with windows.
07:10
If I click the file menu and I choose the Open Command
07:14
the open dialog box appears, allowing me to choose a fire that I want to open.
07:19
Now Here is the simple graphics programs that comes with Windows called Emma's Paint
07:26
Clicking on the File menu. And then the open command here generates that very same dialog box we saw when running note pad.
07:33
Now, does this mean that the programmer who wrote a note pad on the programmer who wrote M s Paint
07:39
both just happened to come up with the same code that generates the open dialog box?
07:45
No,
07:46
they're both just made a request to the operating system.
07:49
That's because the code for creating the file Open dialog boxes actually provided by the operating system.
07:55
And it's a Siri's off what I called functions that are available
08:00
if we take all the functions that an operating system provides two applications collectively, we refer to that as the a P I. The application programming interface.
08:11
Can you see how much work that saves programmers?
08:13
And it assures consistency because no matter which application I'm using,
08:18
if I go to file open,
08:20
I get that exact same dialog box that I recognize that I'm familiar with in order to open up a file.
08:28
Now the functions available
08:30
depends on the operating system on diversion off it.
08:33
So the AP I for Windows X P, for example, may not be exactly the same as the A P I for Windows 10
08:41
which means if your application was written for Windows X P,
08:46
it makes requests to the Windows X p a P I.
08:50
If you try and run that same application in Windows 10
08:54
the same functions within the AP, I may or may not be available, so the application may work in Windows 10 and it may not work in Windows 10.
09:01
So there's a compatibility issue that
09:05
the AP eyes for different operating systems and different versions of an operating system are not identical. So applications are designed for the particular public operating system on a particular version of it.
09:20
Now, visual Basic is a programming language that's, Ah, high level programming language that's built into Windows.
09:26
Let's look at how AP eyes make. Developing an application much simpler
09:31
here is probably the simplest program in the world.
09:35
It just generates a message box that says, Hello world
09:39
Now. In order to do that,
09:41
I can just use the visual basic command called Message box msg Vox
09:48
that come out on calls the Windows A P I to say,
09:52
Create a message, works for me and put the text in it.
09:56
This command can be used by programmer to generate a message box without having to know how Windows does it on what code is required without knowing any machine code
10:07
on
10:07
Let's see this in action.
10:13
So here's my source code.
10:15
I could right click and choose at it
10:18
on
10:18
there. It is
10:20
very simple.
10:22
Here's my very simple program. It just uses just the command message box
10:28
to run the program. I double click on its icon
10:31
and there's the message box.
10:33
Or I could right click on it and click on Open from the Pop up and you as well.
10:39
So to do all of that,
10:39
I didn't need to know. How does Windows generate a dialog box? How did it create a button? How did put text into it?
10:48
I just said, Create me a message box and Windows went ahead and did it.
10:52
Now, of course, that same program wouldn't work if I ran it on on Apple or a *** machine.
10:58
Why? Because he doesn't understand the same commands. It doesn't have the same AP I, as Windows does.
11:07
So applications were compiled to run on a specific operating system on possibly a specific version of the operating system.
11:16
For example, you cannot run a copy of Microsoft Word that was compiled for Windows
11:20
on an Apple OS X machine
11:22
and vice versa. If it was written, he feels compiled for apples. Oa *** machine. You can't run it in Windows.
11:30
You have to get a copy of the application that was compiled for your operating system.
11:35
An application may also require a particular version of an operating system.
11:39
Like I said, we're not. An application developed for X P
11:43
may or may not work In Windows 10.
11:46
You must check to see if an application is compatible with your operating system.
11:52
This is usually specified in the requirements for the application.
11:56
Vendors often provide multiple versions of the application for different operating systems. Microsoft Office, for example, is available for apples OS X, but it's also available for Windows.
12:09
Some application developers provide the source code.
12:11
Now, remember, this is open source software.
12:16
If you've got the source code, one of the things you can do with it is. You can compile that source code to work on different operating systems so you can take the same source code. You can compile it for Windows,
12:26
or you can compile it for limits.
12:28
You can run it on a Windows machine. You can run it on the linens machine, but there you're doing the compiling yourself
12:35
from the original source Captain.
12:37
And typically, you can only do this with open source software.
12:43
What about application compatibility with hardware?
12:48
Some applications may also state as a set of minimum hardware requirements
12:54
that acquire a specific speed of CPU,
12:58
a minimum amount of RAM that needs to be installed.
13:01
All the application may require very fast, powerful video capabilities and may need a video expansion card could be installed in your machine.
13:09
So when purchasing an application, you need to check its software requirements.
13:15
What operating system is it meant for
13:16
which version of the operating system?
13:20
But also check out the hardware requirements and make sure that your computer actually meets the minimum hardware requirements for that application.
13:35
We're gonna look at, um,
13:37
the fact that operating systems can monitor your hardware on performance
13:46
operating systems can wanted to your hardware and alert you. There are problems.
13:50
For example, you know the computer is getting too hot
13:54
or problem is detected with other hardware, such as your hard drive.
14:03
Operating systems
14:05
also provide tools to help you monitor the performance of the system in real time.
14:09
This might help you to figure out why computers running slower than usual
14:15
Apple in its operating system. Oh, it's X
14:18
provides a tool called activity monitor that shows you in real time what applications are running, how much super you time, it just consuming how much memory just consuming and so on.
14:31
Microsoft provides a number of tools and windows, ranging from the very simple task Manager
14:37
two.
14:37
That's somewhat more detailed. Resource Monitor
14:41
on DDE,
14:43
the very powerful to called performance monitor.
14:48
Let's take a look at that, too.
14:52
So here I am, tracking processor usage. That's the red line that you see on the charts.
14:58
I'm also tracking network activity that appears and blue
15:03
on disk activity, which appears in greed.
15:09
Now
15:11
I start a program that generates a lot of disk activity.
15:16
What's that green line?
15:18
You see how it shoots up to indicate that the disk is pretty busy now. Something like 50% utilization off the desk is going on,
15:28
so monitoring performance can help the technician to find the bottlenecks that might be slowing the system down.
15:35
It can help you to understand which component needs to be upgraded to improve performance.
15:41
It may help you to track down 40 components.
15:46
You can also take readings at regular intervals to help you to track trends over time.
15:50
For example, supposing I've set up a Web server
15:54
initially, only a few people are visiting the website that's hosted on that server.
16:00
You noticed that as it becomes more popular than website becomes more popular, more and more people are accessing the Web site,
16:07
and this, of course, puts a strain on the Web server. The CPU becomes busier, the hard drive becomes busier, more memories being consumed and so on.
16:17
In fact, by tracking performance,
16:19
you could figure out that hey, CPU usage is going up by 10% a month.
16:23
You cannot extrapolate that into the future and figure out that hey, within 10 months, my CPU will have hit 100% utilization and have at that point will become a bottleneck and start slowing things down.
16:37
So you budget to upgrade the CPU before it becomes the bottle neck. So you proactively dealing with the problem, not waiting for the problem to actually arise.
Up Next
Instructed By