Skip to main content

Process Virtualization

 Virtualization

Virtualization in computing is the process of simulating hardware and software in a virtual(software) environment.

  • This one server is running 3 VMS (Virtual machines).
  • Running 3 different Application like Emails , Web Server and DATABASE.
  • The Software that creates and runs the virtualization is called a hypervisor.
  • It allocates and controls the sharing.
  • It allocates and controls the sharing of a machines resources.    
            1. Storage space.
            2. RAM.
  •      CPUS

 Type-1

Installed on Empty , bare metal hardware.

Eg. VMware ESX1, Citrix Xen Server.

Type-2

Installed on an existing operating System.

Eg. Personal Computers, Oracle VM Virtual Box , Microsoft Virtual PC, VM ware work station.

Processes

A  Program which we executing enters into a main memory is called Process.

  • When Process is executing it is changing its state from one to another.
  • (Process State  Diagram)

Process API Code

  • API - Application programming Interface.
  • API helps to get functions available to write user programs.
  • API provided by OS is a set of  "System Calls".
  • System call is a function call in OS which run in higher privilege level of the CPU where Sensitive Operations (accessing hardware) takes place.
  • There is Blocking System calls cause the process to be blocked and descheduled.

POSIX API

  • A standard set of system calls an OS  must implement.
  • Now days OS are POSIX compliant.
  • Programs languages libraries contains details of System calls.
          eg. printf()  in c language will invoke write System to write on screen.

Proccess related System calls (in Unix)

  • fork() - Create a new child process.
  • init - ancestor of all processes.
  • exec()- makes a process execute a given executable.
  • exit()- terminates a process.
  • wait()- Causes a parent to block util child terminates.

 Shell

  • After initialization of hardware init process is created.
  • Init process spawns a shell like bash.

Working of shell

              


Direct Execution

When more no. of applications are accessing direct on hardware after that OS is scheduling next application to run. This is done by Time interrupt for some milliseconds.



Popular posts from this blog

Operating System

What is an operating system? An operating system (OS) is the program that, after being initially loaded into the computer by a boot program, manages all of the other application programs in a computer. The application programs make use of the operating system by making requests for services through a defined application program interface ( API ). In addition, users can interact directly with the operating system through a user interface, such as a command-line interface (CLI) or a graphical UI (GUI). Why use an operating system? An operating system brings powerful benefits to computer software and software development. Without an operating system, every application would need to include its own UI, as well as the comprehensive code needed to handle all low-level functionality of the underlying computer, such as disk storage, network interfaces and so on. Considering the vast array of underlying hardware available, this would vastly bloat the size of every application and make software