Unit 1 - OS
Unit 1 - OS
10. Shutdown and Restart: Properly shutting down or restarting the system,
including terminating processes and saving system state.
These operations collectively allow the operating system to provide a stable
and efficient environment for running applications, managing hardware
resources, and enabling user interaction.
Computing Environments :
Computing environments refer to the technology infrastructure and software
platforms that are used to develop, test, deploy, and run software applications.
There are several types of computing environments, including:
1. Mainframe: High cost and complexity, with a significant learning curve for
developers.
2. Client-Server: Dependence on network connectivity, and potential security
risks from centralized data storage.
3. Cloud Computing: Dependence on network connectivity, and potential
security and privacy concerns.
4. Mobile Computing: Limited processing power and memory compared to
other computing environments, and potential security risks.
o Program execution
o Control Input/output devices
o Program creation
o Error Detection and Response
o Accounting
o Security and Protection
o File Management
o Communication
Program execution
To execute a program, several tasks need to be performed. Both the instructions and
data must be loaded into the main memory. In addition, input-output devices and files
should be initialized, and other resources must be prepared. The Operating structures
handle these kinds of tasks. The user now no longer should fear the reminiscence
allocation or multitasking or anything.
As there are numerous types of I/O devices within the computer system, and each I/O
device calls for its own precise set of instructions for the operation. The Operating
System hides that info with the aid of presenting a uniform interface. Thus, it is
convenient for programmers to access such devices easily.
Program Creation
The Operating system offers the structures and tools, including editors and debuggers,
to help the programmer create, modify, and debugging programs.
An Error in a device may also cause malfunctioning of the entire device. These include
hardware and software errors such as device failure, memory error, division by zero,
attempts to access forbidden memory locations, etc. To avoid error, the operating
system monitors the system for detecting errors and takes suitable action with at least
impact on running applications.
While working with computers, errors may occur quite often. Errors may occur in the:
o Input/ Output devices: For example, connection failure in the network, lack of
paper in the printer, etc.
o User program: For example: attempt to access illegal memory locations, divide
by zero, use too much CPU time, etc.
o Memory hardware: For example, Memory error, the memory becomes full, etc.
To handle these errors and other types of possible errors, the operating system takes
appropriate action and generates messages to ensure correct and consistent computing.
Accounting
An Operating device collects utilization records for numerous assets and tracks the
overall performance parameters and responsive time to enhance overall performance.
These personal records are beneficial for additional upgrades and tuning the device to
enhance overall performance.
Operating device affords safety to the statistics and packages of a person and protects
any interference from unauthorized users. The safety feature counters threats, which are
published via way of individuals out of doors the manage of the running device.
For Example:
When a user downloads something from the internet, that program may contain
malicious code that may harm the already existing programs. The operating system
ensures that proper checks are applied while downloading such programs.
File management
Computers keep data and information on secondary storage devices like magnetic tape,
magnetic disk, optical disk, etc. Each storage media has its capabilities like speed,
capacity, data transfer rate, and data access methods.
For file management, the operating system must know the types of different files and
the characteristics of different storage devices. It has to offer the proportion and safety
mechanism of documents additionally.
Communication
The operating system manages the exchange of data and programs among different
computers connected over a network. This communication is accomplished using
message passing and shared memory.
A CLI is a text-based interface that allows users to interact with the operating system
by typing commands in a command prompt or terminal window. Users provide
instructions to the OS by entering text commands, and the OS responds with text-based
output. CLI interfaces are often used by system administrators, developers, and power
users for their efficiency and scriptability. Some common features of a CLI include:
- Commands: Users enter specific commands and parameters to perform tasks.
- Flexibility: Allows for precise control and direct access to system functions.
- Resource Efficiency: CLI environments use fewer system resources compared to GUIs.
A GUI is a visual interface that uses graphics, icons, menus, and windows to enable
user interaction with the operating system and applications. GUIs are designed to be
more intuitive and user-friendly, making them accessible to a broader range of users,
including those who may not be familiar with command-line interactions. GUI interfaces
provide features such as:
- Visual Elements: Icons, buttons, menus, and windows for navigation and
interaction.
- Point-and-Click: Users can interact with elements by using a mouse or touch input.
- WYSIWYG (What You See Is What You Get): Allows users to view documents or
layouts as they will appear when printed or displayed.
Examples of GUI interfaces include the Windows Desktop, macOS Finder, and
various desktop environments in Linux distributions like GNOME and KDE.