chp 6 Introduction to Operating Systems
chp 6 Introduction to Operating Systems
N TO
OPERATING
SYSTEMS
6.0 OBJECTIVES
• The OS manages all the hardware and peripheral devices of your computer.
For example, when you put in a DVD to play a movie, the OS will start
reading the data from the optical drive and launch a movie player. Or when
you are saving a file to a USB flash drive, the OS checks to make sure there
is enough space on the drive to store your file
STORAGE MANAGEMENT
• Operating System also Controls the all the Storage Operations means how
the data or files will be Stored into the computers and how the Files will be
Accessed by the users etc. All the Operations those are Responsible for
Storing and Accessing the Files is determined by the Operating System
Operating System also Allows us Creation of Files, Creation of Directories
and Reading and Writing the data of Files and Directories and also Copy the
contents of the Files and the Directories from One Place to Another Place.
PROCESS MANAGEMENT
• The Operating System also Treats the Process Management means all the
Processes those are given by the user or the Process those are System ‗s
own Process are Handled by the Operating System . The Operating System
will Create the Priorities for the user and also Start or Stops the Execution of
the Process and Also Makes the Child Process after dividing the Large
Processes into the Small Processes
FILE MANAGEMENT
• The operating system also handles the organization and tracking of files
and directories (folders) saved or retrieved from a computer disk. The file
management system allows the user to perform such tasks as creating files
and directories, renaming files, coping and moving files, and deleting files.
The operating system keeps track of where files are located on the hard
drive through the type of file system. The type two main types of file
system are File Allocation table (FAT) or New Technology File system (NTFS).
SECURITY
• There are numerous security threats to your computer, in particular various
types of malware, which is short for malicious software. This includes
computer viruses, which can interfere with the normal operations of your
computer. Viruses can be very harmful and result in loss of data or system
crashes.
• The OS of a computer has a number of built-in tools to protect against
security threats, including the use of virus scanning utilities and setting up
a firewall to block suspicious network activity. One of the most common
ways to get a computer virus is by e-mail. If you have received an e-mail
message from someone you don't know with an unknown file attachment,
be careful about opening up that file since it may just contain a virus or
other malicious software
SECURITY
• While the OS has a number of built-in security tools, you may need
additional software to set up the best protection, in particular virus
scanning software. These types of utilities expand the functionality of the
OS.
• Another basic security feature is to control access to your computer by
setting up a password. Without the password someone else will not be able
to get access to the software applications and files on your computer
MEMORY MANAGEMENT
• When an operating system manages the computer's memory, there are two
broad tasks to be accomplished:
• 1. Each process must have enough memory in which to execute, and it can
neither run into the memory space of another process nor be run into by
another process.
• 2. The different types of memory in the system must be used properly so
that each process can run most effectively
• The first task requires the operating system to set up memory boundaries
for types of software and for individual applications.
MEMORY MANAGEMENT
• When applications begin to be loaded into memory, they are loaded in block
sizes determined by the operating system. If the block size is 2 kilobytes,
then every process that's loaded will be given a chunk of memory that's a
multiple of 2 kilobytes in size. Applications will be loaded in these fixed
block sizes, with the blocks starting and ending on boundaries established
by words of 4 or 8 bytes. These blocks and boundaries help to ensure that
applications won't be loaded on top of one another's space by a poorly
calculated bit or two. With that ensured, the larger question is what to do
when the 500-kilobyte application space is filled.
MEMORY MANAGEMENT
• In most computers, it's possible to add memory beyond the original
capacity. For example, you might expand RAM from 1 to 2 gigabytes. This
works fine, but can be relatively expensive. It also ignores a fundamental
fact of computing -- most of the information that an application stores in
memory is not being used at any given moment. A processor can only
access memory one location at a time, so the vast majority of RAM is
unused at any moment. Since disk space is cheap compared to RAM, then
moving information in RAM to hard disk can greatly expand RAM space at
no cost. This technique is called virtual memory management
• Disk storage is only one of the memory types that must be managed by the operating system, and
it's also the slowest. Ranked in order of speed, the types of memory in a computer system are:
• High-speed cache -- This is fast, relatively small amounts of memory that are available to the CPU
through the fastest connections. Cache controllers predict which pieces of data the CPU will need
next and pull it from main memory into high-speed cache to speed up system performance.
• Main memory -- This is the RAM that you see measured in megabytes when you buy a computer.
• Secondary memory -- This is most often some sort of rotating magnetic storage that keeps
applications and data available to be used, and serves as virtual RAM under the control of the
operating system.
• The operating system must balance the needs of the various processes with the availability of the
different types of memory, moving data in blocks (called pages) between available memory as the
schedule of processes dictates
PROCESSOR MANAGEMENT
• The heart of managing the processor comes down to two related issues:
• Ensuring that each process and application receives enough of the
processor's time to function properly
• Using as many processor cycles as possible for real work
• The basic unit of software that the operating system deals with in
scheduling the work done by the processor is either a process or a thread,
depending on the operating system
PROCESSOR MANAGEMENT
• It's tempting to think of a process as an application, but that gives an
incomplete picture of how processes relate to the operating system and
hardware. The application you see (word processor, spreadsheet or game)
is, indeed, a process, but that application may cause several other
processes to begin, for tasks like communications with other devices or
other computers. There are also numerous processes that run without
giving you direct evidence that they ever exist. For example, Windows XP
and UNIX can have dozens of background processes running to handle the
network, memory management, disk management, virus checks and so on
PROCESSOR MANAGEMENT
• A process, then, is software that performs some action and can be
controlled -- by a user, by other applications or by the operating system.
• It is processes, rather than applications, that the operating system controls
and schedules for execution by the CPU. In a single-tasking system, the
schedule is straightforward. The operating system allows the application to
begin running, suspending the execution only long enough to deal with
interrupts and user input.
PROCESSOR MANAGEMENT
• Interrupts are special signals sent by hardware or software to the CPU. It's
as if some part of the computer suddenly raised its hand to ask for the
CPU's attention in a lively meeting. Sometimes the operating system will
schedule the priority of processes so that interrupts are masked -- that is,
the operating system will ignore the interrupts from some sources so that a
particular job can be finished as quickly as possible. There are some
interrupts (such as those from error conditions or problems with memory)
that are so important that they can't be ignored. These non-maskable
interrupts (NMIs) must be dealt with immediately, regardless of the other
tasks at hand
PROCESSOR MANAGEMENT
• While interrupts add some complication to the execution of processes in a
single-tasking system, the job of the operating system becomes much more
complicated in a multi-tasking system. Now, the operating system must
arrange the execution of applications so that you believe that there are
several things happening at once. This is complicated because the CPU can
only do one thing at a time. Today's multi-core processors and multi-
processor machines can handle more work, but each processor core is still
capable of managing one task at a time
PROCESSOR MANAGEMENT
• In order to give the appearance of lots of things happening at the same time, the
operating system has to switch between different processes thousands of times a
second. Here's how it happens:
• A process occupies a certain amount of RAM. It also makes use of registers, stacks
and queues within the CPU and operating-system memory space.
• When two processes are multi-tasking, the operating system allots a certain
number of CPU execution cycles to one program.
• After that number of cycles, the operating system makes copies of all the
registers, stacks and queues used by the processes, and notes the point at which
the process paused in its execution.
• It then loads all the registers, stacks and queues used by the second process and
allows it a certain number of CPU cycles.
• When those are complete, it makes copies of all the registers, stacks and queues
used by the second program, and loads the first program
PROCESSOR MANAGEMENT
• Each process has a status associated with it. Many processes consume no CPU time until they
get some sort of input. For example, a process might be waiting for a keystroke from the user.
While it is waiting for the keystroke, it uses no CPU time. While it's waiting, it is "suspended".
When the keystroke arrives, the OS changes its status. When the status of the process changes,
from pending to active, for example, or from suspended to running, the information in the
process control block must be used like the data in any other program to direct execution of the
task-switching portion of the operating system.
• This process swapping happens without direct user interference, and each process gets enough
CPU cycles to accomplish its task in a reasonable amount of time. Trouble can begin if the user
tries to have too many processes functioning at the same time. The operating system itself
requires some CPU cycles to perform the saving and swapping of all the registers, queues and
stacks of the application processes. If enough processes are started, and if the operating system
hasn't been carefully designed, the system can begin to use the vast majority of its available
CPU cycles to swap between processes rather than run processes. When this happens, it's called
thrashing, and it usually requires some sort of direct user intervention to stop processes and
bring order back to the system.
DEVICE MANAGEMENT
• The path between the operating system and virtually all hardware not on
the computer's motherboard goes through a special program called a
driver. Much of a driver's function is to be the translator between the
electrical signals of the hardware subsystems and the high-level
programming languages of the operating system and application programs.
Drivers take data that the operating system has defined as a file and
translate them into streams of bits placed in specific locations on storage
devices, or a series of laser pulses in a printer
DEVICE MANAGEMENT
• Because there are such wide differences in the hardware, there are differences in the
way that the driver programs function. Most run when the device is required, and
function much the same as any other process. The operating system will frequently
assign high-priority blocks to drivers so that the hardware resource can be released
and readied for further use as quickly as possible.
• One reason that drivers are separate from the operating system is so that new
functions can be added to the driver -- and thus to the hardware subsystems -- without
requiring the operating system itself to be modified, recompiled and redistributed.
Through the development of new hardware device drivers, development often
performed or paid for by the manufacturer of the subsystems rather than the publisher
of the operating system, input/output capabilities of the overall system can be greatly
enhanced.
DEVICE MANAGEMENT
• Managing input and output is largely a matter of managing queues and
buffers, special storage facilities that take a stream of bits from a device,
perhaps a keyboard or a serial port, hold those bits, and release them to the
CPU at a rate with which the CPU can cope. This function is especially
important when a number of processes are running and taking up processor
time. The operating system will instruct a buffer to continue taking input
from the device, but to stop sending data to the CPU while the process
using the input is suspended. Then, when the process requiring input is
made active once again, the operating system will command the buffer to
send data. This process allows a keyboard or a modem to deal with external
users or computers at a high speed even though there are times when the
CPU can't use input from those sources
DEVICE MANAGEMENT
• Managing all the resources of the computer system is a large part of the
operating system's function and, in the case of real-time operating systems,
may be virtually all the functionality required. For other operating systems,
though, providing a relatively simple, consistent way for applications and
humans to use the power of the hardware is a crucial part of their reason
for existing
MULTI-PROGRAMMING
• Multi-programming is a method of operating such that several programs
appear to be running at once.
• The operating system switches jobs in and out of processor time according
to priority. For example, while one job is being allocated printer time,
another will be being processed in memory. The processor is so fast that it
seems that many jobs are being processed at the same time.
BATCH PROCESSING
• A batch processing system is where programs or data are collected
together in a batch and processed in one go. Typically the processing of
payrolls, electricity bills, invoices and daily transactions are dealt with this
way.
• This method of operation lends itself to jobs with similar inputs, processing
and outputs where no human intervention is needed. Jobs are stored in a
queue until the computer is ready to deal with them. Often batch processed
jobs are done overnight.
• Advantages: It is possible to perform repetitive tasks on a large number of
pieces of data rapidly without needing the user to monitor it
INTERACTIVE PROCESSING (ONLINE
PROCESSING)
• Operating systems work properly only when you install them on computers
that meet the minimum hardware requirements. You should remember that
these requirements are just for the operating system itself, but most people
want to do more than just run an operating system: they also want to run
applications. Applications require memory and storage space beyond that of
the operating system minimum requirements. As someone who may be
responsible for making recommendations about the specifications of
computer hardware that your organization will purchase, you need to take
into account the hardware requirements of the operating system and the
applications that will run on it, not just the operating system itself.
WINDOWS 7 STARTER AND WINDOWS 7 HOME
BASIC HAVE THE FOLLOWING MINIMUM HARDWARE
REQUIREMENTS
• Gadgets
• Gadgets are mini-applications (applets) for the Windows 7 desktop that give
you access to frequently changing information, such as the current time,
weather, stock quotes, news feeds, computer usage, and the like. Figure 1-4
shows you my desktop with the Gadgets Gallery window displayed
FEATURES OF WINDOWS 7
• Clock, which shows an analog clock with the current time for any time
zone you select.
• Slide Show, which displays a continuous slide show of the images that are
stored in your Pictures library.
• Calendar, which shows the current day and date.
• Weather, which shows the current temperature (and when enlarged,
weather conditions) for a selected town or city.
• Feed Headlines, which shows you news headlines for the RSS feed you
select.
6.6.2 WINDOWS 8.1 EDITIONS
• Choose the ideal Windows 8.1 edition
• There are four Windows 8.1 editions, and each offers specific features. You
can narrow your options for selecting an opeWindows RT
• This edition comes preinstalled on tablets and similar devices that run on
ARM processors. You can‘t buy it as a stand-alone product. It won‘t run on
anything other than ARM processors, so there is no need to consider it if
you are looking for an operating system to install on a typical laptop or
desktop PC. In addition, it can run apps from the Windows Store, but it
cannot be used to install or run the traditional Windows x86/x64
applications you‘d normally obtain from the Internet, network shares, CDs,
or DVDs. Windows RT devices come with a special version of Microsoft
Office for completing tasks that require it, but they do not come with
Windows Media Player and have other limitationsrating system by learning
the basics about each:
WINDOWS 8.1
• This edition is the popular retail edition of Windows. It is most often used by
home users but might also work for some home office users. This edition
comes preinstalled on the majority of PCs available from big-box stores, and
you‘ll see it on most of the devices your end users bring to work (from
home). You can buy this edition and install it on x86/x64 platforms. The
main limitation of this edition in an enterprise is that it can‘t join a domain.
Thus, if your client needs to join a domain, this isn‘t the edition you‘ll select.
(It‘s easy to upgrade to Windows 8.1 Professional, though, should that be
necessary.)
WINDOWS 8.1
PROFESSIONAL (WINDOWS
8.1 PRO)
• This edition is used mostly by small to medium-sized businesses (with or
without a domain) and by larger enterprises. It offers features not available
in Windows 8.1 or Windows RT such as BitLocker (computers running
Windows RT, Windows RT 8.1, or Windows 8.1 can be protected using
Device Encryption, which is a customized version of BitLocker) and
BitLocker to Go, the ability to host a Remote Desktop Connection, Client
Hyper-V, and Virtual Hard Disk (VHD) Boot. If your client needs any of these
features and you don‘t have (and don‘t want) a volume licensing agreement
to purchase Windows 8.1 Enterprise, this is the edition you‘ll choose
WINDOWS 8.1 ENTERPRISE
• This edition is only available through the Microsoft volume licensing program. Customers
can purchase an Enterprise Agreement (EA), Select Agreement, or Open License.
Customers have the ability to purchase Software Assurance (SA) with each license for
Windows 8. Not all customers buy SA on Windows and therefore sometimes pay after each
product release. If you are enrolled, you‘ll get all of the features in Windows 8.1
Professional and these features that are exclusive to Windows 8.1 Enterprise: Start screen
control, Windows To Go Creator, AppLocker, BranchCache, DirectAccess, and Virtual
Desktop Infrastructure (VDI) Enhancements.
• Each Windows 8.1 edition has minimum and maximum system settings for CPU sockets
and RAM, among other things. The hardware you use to install Windows 8.1 must meet
these requirements.
• Below details minimum system requirements for Windows 8.1.
• Minimum Hardware for common resources
• ------------------------------------------------------------------------------------------------------------
• 32-bit (x86)
• 64-bit (x64)
• Processor speed
• 1 gigahertz (GHz) or faster
• 1 GHz or faster
• System memory (RAM)
• 1 GB
• 2 GB
• Available hard disk space
• 16 GB
• 20 GB
• Graphics adapter
• DirectX 9 graphics adapter with WDDM driver
• DirectX 9 graphics adapter with WDDM driver
• Secure Boot
• Unified Extensible Firmware Interface (UEFI)–based BIOS
• UEFI-based BIOS
• --------------------------------------------------------------------------------------------------------------------
• When you first start using Windows 8.1, the changes from Windows 7 are
significant and very obvious. The biggest change is the use of the new user
interface (UI) as the default method for interacting with software programs
and apps (see below) The desktop has effectively been downgraded to an
app, but it retains all the power and functionality of Windows 7.
FIGURE BELOW SHOWS THE START SCREEN
WINDOWS
• Windows 8.1 is also the very first version of Windows to feature a built-in
antivirus as standard. The new Windows Defender software is not like the
version in Windows XP, Vista, and Windows 7, in which it was a basic
malware protection tool. In Windows 8.1, it is a fully rebadged copy of the
free Microsoft Security Essentials software everything is where you would
expect to find it—certainly when you drill down into the advanced features
on the desktop. Some of the new features may come as a pleasant surprise,
however, because they expand the core power and flexibility of Windows in
new and exciting ways
WHAT’S NEW IN WINDOWS
8.1?
• Start Screen
• First of all, what is this new UI? Why does it exist and how do you use it? The Start
screen came about in Windows 8.1 because of the need for Microsoft to get into the
tablet computing market. It is based on a design created for the company‘s
Windows Phone OS and can be traced back in various forms to the Zune media
player and even Windows Media Center before that.
• The Start screen is based around a series of ―live tiles,‖ each of which gives you
real-time information from a particular app. For example, they can display the
number of e-mails you have waiting, or the sender and subject of those e-mails.
They can show you calendar appointments, currency exchange rates, stock market
values, or the latest photographs in your collection