Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:06,970 --> 00:00:11,350
In this lecture, we will learn about what happens under the hood of the computer when a program is
2
00:00:11,350 --> 00:00:11,710
run.
3
00:00:12,610 --> 00:00:17,440
There is an area of memory inside of the computer called Random Access Memory, or RAM.
4
00:00:18,280 --> 00:00:21,770
All of the different programs on your computer have their own space in the room.
5
00:00:22,510 --> 00:00:29,080
As I mentioned in a previous lecture, computers only understand binary code made up entirely of ones
6
00:00:29,200 --> 00:00:30,040
and zeros.
7
00:00:30,460 --> 00:00:36,670
The computer is really just a collection of transistors or on off switches, with one being on and zero
8
00:00:36,670 --> 00:00:37,360
being off.
9
00:00:37,930 --> 00:00:42,460
The code that we write has to be converted multiple times before the computer can understand it.
10
00:00:43,030 --> 00:00:47,530
When we write a program in C Sharp, for example, the computer does several things.
11
00:00:47,920 --> 00:00:51,970
First, it translates the C sharp source code to assembly language.
12
00:00:52,570 --> 00:00:56,620
After that, it takes the assembly language and convert it to machine language.
13
00:00:57,160 --> 00:01:02,200
Then it takes the machine language and converts that to binary code ones and zeros.
14
00:01:02,590 --> 00:01:08,530
At this point, the instructions of the algorithm are in a form that the computer can understand to
15
00:01:08,530 --> 00:01:09,400
run a program.
16
00:01:09,580 --> 00:01:11,290
There is a cycle of four steps.
17
00:01:11,830 --> 00:01:14,370
The computer fetches the next instruction from the RAM.
18
00:01:14,950 --> 00:01:16,750
Then it decodes what it has to do.
19
00:01:16,930 --> 00:01:20,740
It looks at the instruction and sees exactly what it is being asked to do.
20
00:01:21,520 --> 00:01:25,030
Then the instruction is executed, meaning that the task is carried out.
21
00:01:25,630 --> 00:01:27,820
Finally, the result will be stored.
22
00:01:28,360 --> 00:01:34,510
The process then repeats after the store step, the next instruction is fetched and the cycle continues.
23
00:01:35,170 --> 00:01:38,200
That is a basic overview of what happens under the hood of the computer.
24
00:01:38,260 --> 00:01:43,810
When we run a program in the next lecture, we will learn about the heap in the stack and the role that
25
00:01:43,810 --> 00:01:45,360
they play in computer programming.
2582
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.