Knowledge
How OSs work in General

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

Materials
Articleby Tutorials Point
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.
Articleby Sophia Tutorial
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.
Show more materials (4)
Tasks
Single choice
5secs
Special operating systems and server software
Count of unique tasks: 4
Check yourself
Q:

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 } ] }
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 } ] }
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 } ] }
Do you know that ...?
- 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.
- 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

- 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

Skillsets
Skillset Linux administrator preview
image descriptionLinux administrator
by Infinite Education
3046 users
Skillset Junior C# Programmer preview
image descriptionJunior C# Programmer
by Infinite Education
2825 users
Skillset Web Backend Developer preview
image descriptionWeb Backend Developer
by Infinite Education
2091 users
Skillset Linux for backend developer preview
image descriptionLinux for backend developer
by Artem Naumenko (fb)
16 users
Skillset ASP.NET Core Developer preview
image descriptionASP.NET Core Developer
by balonich
13 users
Skillset General IT knowledge for programmer preview
image descriptionGeneral IT knowledge for programmer
by Anton Naumenko
5 users
Skillset Skyeng linux system administrator preview
image descriptionSkyeng linux system administrator
by Vitaliy Okulov
3 users
Skillset Rod c# preview
image descriptionRod c#
by Andressa Neves
3 users