An operating system is a main program on computer, that governs all other applications. It allows you to use browsers, play games, print documents, launch your favorite program.
Most common Operation Systems:
Windows (desktops mostly)
Mac OS (laptops mostly)
Android (cell phones)
Linux (hard-code users & programmers)
How Operation System work. Basics
Computer CPU knows how to execute commands. But it needs someone to tell him what command to execute. It is the job of Operation System (OS).
Whenever you power your computer, it reads first bytes on your Disk Drive, where it expects to see commands that will start Operation System.
Components of Operation System
OS Kernel
main part of OS, it facilitates interactions between hardware and software components and performs task scheduling
Drivers - small programs that are responsible for interaction with different hardware: keyboard, printer, usb drive etc
User Interface - responsible for displaying all those windows, buttons and so on. Based on DirectX/OpenGL from once side, and on some UI Framework from other side (WPF, Windows Forms, WinAPI, HTML, etc)
Please use below materials for deep dive into the topic
An Operating System (OS) is an interface between a computer user and computer hardware. An operating system is a software which performs all the basic tasks like file management, memory management, process management, handling input and output, and controlling peripheral devices such as disk drives and printers.
An operating system (OS) is software that performs the task required to keep the system running, and provides the main interface for the user. In essence, the operating system enables the computer’s hardware to communicate with and control the computer’s software, while providing the user with a way to interact with both.
How OS manages to run multiple application simultaneously?
{
"id": "VUPBQqCjLl4wK0CmRoYNa4kM",
"question": "How OS manages to run multiple application simultaneously?",
"answers": [
"Queueing - every thread yields control to OS, which in turn gives it to the next thread in queue",
"Preemption - every thread is executed only for small slice of time",
"Scheduling - every thread is scheduled to work for some time"
],
"correctAnswers": [
"Preemption - every thread is executed only for small slice of time"
],
"incorrectAnswers": [
"Scheduling - every thread is scheduled to work for some time",
"Queueing - every thread yields control to OS, which in turn gives it to the next thread in queue"
],
"allowCustomAnswer": false,
"canEdit": false,
"allowFileAnswer": false,
"multi": false,
"explanation": "",
"canLike": false,
"likes": 0,
"allAnswers": [
{
"text": "Preemption - every thread is executed only for small slice of time",
"correct": true,
"selected": false
},
{
"text": "Queueing - every thread yields control to OS, which in turn gives it to the next thread in queue",
"correct": false,
"selected": false
},
{
"text": "Scheduling - every thread is scheduled to work for some time",
"correct": false,
"selected": false
}
]
}
0♡
Q:
What is the main goals of OS?
{
"id": "RAZIsyKFLUhwLsnbdlTsGq8A",
"question": "What is the main goals of OS?",
"answers": [
"Launch games and scientific programs. Everything else is a second-guess reason.",
"Give access to different hardware (printers, hard-drives) and allow to launch applications (e.g. web browsers)",
"Enforce security rules for all applications and users and restrict access to files depending on permissions"
],
"correctAnswers": [
"Give access to different hardware (printers, hard-drives) and allow to launch applications (e.g. web browsers)"
],
"incorrectAnswers": [
"Enforce security rules for all applications and users and restrict access to files depending on permissions",
"Launch games and scientific programs. Everything else is a second-guess reason."
],
"allowCustomAnswer": false,
"canEdit": false,
"allowFileAnswer": false,
"multi": false,
"explanation": "",
"canLike": false,
"likes": 0,
"allAnswers": [
{
"text": "Enforce security rules for all applications and users and restrict access to files depending on permissions",
"correct": false,
"selected": false
},
{
"text": "Give access to different hardware (printers, hard-drives) and allow to launch applications (e.g. web browsers)",
"correct": true,
"selected": false
},
{
"text": "Launch games and scientific programs. Everything else is a second-guess reason.",
"correct": false,
"selected": false
}
]
}
0♡
Q:
Do you need OS to start a program?
{
"id": "cAdfB9BNKOLAJ7M3q3LSxjNv",
"question": "Do you need OS to start a program?",
"answers": [
"Yes, but it is possible to create an application that works as small OS itself",
"No, CPU executes the program, not OS. But OS is required to read the file into memory"
],
"correctAnswers": [
"Yes, but it is possible to create an application that works as small OS itself"
],
"incorrectAnswers": [
"No, CPU executes the program, not OS. But OS is required to read the file into memory"
],
"allowCustomAnswer": false,
"canEdit": false,
"allowFileAnswer": false,
"multi": false,
"explanation": "",
"canLike": false,
"likes": 0,
"allAnswers": [
{
"text": "No, CPU executes the program, not OS. But OS is required to read the file into memory",
"correct": false,
"selected": false
},
{
"text": "Yes, but it is possible to create an application that works as small OS itself",
"correct": true,
"selected": false
}
]
}
Add question
Do you know that ...?
0♡- Many OSs can "trick" programs into using memory scattered around the hard disk and RAM as if it is one continuous chunk of memory, called virtual memory.
1♡- Normally every thread is executed during 20ms
Hence, only about 50 threads could execute during a second, while many processes contains hundreds of threads. To manage this chaos, OS provides priority level to all programs and ensures that every program has some execution time
0♡- There are more than a hundred of different OSs
*nix-based family, mobile OSs, Windows of all kinds, OSs for embded devices, OSs for specific devices, etc