Python Environment Setup

Python is a script language, the main idea for learning python is to utilize python to create easy hands-on automation script on linux env instead of shell.

Here, list the steps to configure PyDev, an eclipse plugin, inside eclipse environment.

Read More

Operating System Concepts Io System

I/O Hardware

The device communicates with the machine via a connection point, or port — for example, a serial port.

If devices use a common set of wires, the connection is called a bus. A bus is a set of wires and a rigidly defined protocol that specifies a set of messages that can be sent on the wires.

This figure shows a PCI bus (the common PC system bus) that connects the processor–memory subsystem to the fast devices and an expansion bus that connects relatively slow devices, such as the keyboard and serial and USB ports.

Read More

Operating System Concepts Virtual Memory

Demand Paging

Loading the entire program into memory results in loading the executable code for all options, regardless of whether an option is ultimately selected by the user or not. An alternative strategy is to load pages only as they are needed. This technique is known as demand paging and is commonly used in virtual memory systems.

Page Fault

A page fault causes the following sequence to occur:

Read More

Operating System Concepts Main Memory

Contiguous Memory Allocation

Problem:

Both the first-fit and best-fit strategies for memory allocation suffer from external fragmentation.

The general approach to avoiding this problem is to break the physical memory into fixed-sized blocks and allocate memory in units based on block size. With this approach, the memory allocated to a process may be slightly larger than the requested memory. The difference between these two numbers is internal fragmentation — unused memory that is internal to a partition.

Solution:

Read More

Operating System Concepts Cpu

CPU Scheduling

CPU scheduling is the task of selecting a waiting process from the ready queue and allocating the CPU to it. The CPU is allocated to the selected process by the dispatcher.

Scheduling Criteria

  • CPU utilization
  • Throughput
  • Turnaround time

The interval from the time of submission of a process to the time of completion is the turnaround time. Turnaround time is the sum of the periods spent waiting to get into memory, waiting in the ready queue, executing on the CPU, and doing I/O.

  • Waiting time
  • Response time

Read More