Sunday, 31 August 2014

Create ISO boot image using open source tools

Problem statement
Create ISO boot image using open source tool

Solution
Various open source tools are available to create ISO boot image starting with Linux platform, Windows platform and many more. We are interested here to use tools that are used for Linux distribution. Here we used ISOLINUX and SteamOSInstaller. Detailed information about them is as below.

Note: Screen shots provided below in this post will help you to create .iso file of Fedora 20. If you wish to create .iso file of Ubuntu, you may follow the another link -
http://www.pavanjaiswal.com/2015/09/create-iso-boot-image-using-isolinux.html

   1.     ISOLINUX
ISOLINUX is a boot loader for Linux/i386 that operates off ISO 9660/El Torito CD-ROMs in "no emulation" mode. This avoids the need to create an "emulation disk image" with limited space (for "floppy emulation") or compatibility problems (for "hard disk emulation".)


Detecting computer is booted with BIOS or UEFI

Problem statement
Write a program in Python / C++ to test that computer is booted with legacy boot ROM-BIOS or UEFI 


Solution
   A.    Introduction to booting
When we start our computer then there is an operation which is performed automatically by the Computer which is also called as Booting. In the Booting, System will check all the hardware’s and Software’s those are installed or Attached with the System and this will also load all the Files those are needed for running a system.
In the Booting Process all the Files those are Stored into the ROM Chip will also be Loaded for Running the System. In the Booting Process the System will read all the information from the Files those are Stored into the ROM Chip and the ROM chip will read all the instructions those are Stored into these Files. After the Booting of the System this will automatically display all the information on the System. The Instructions those are necessary to Start the System will be read at the Time of Booting.


Saturday, 30 August 2014

Socket programming in Linux

Problem statement
Use python for socket programming to connect two or more PCs to share a text file

Solution
   A.     Introduction
Sockets allow communication between two different processes on the same or different machines. To be more precise, it's a way to talk to other computers using standard Unix file descriptors. In Unix, every I/O actions are done by writing or reading to a file descriptor. A file descriptor is just an integer associated with an open file and it can be a network connection, a text file, a terminal, or something else.
To a programmer a socket looks and behaves much like a low level file descriptor. This is because commands such as read() and write() work with sockets in the same way they do with files and pipes. The difference between sockets and normal file descriptors occurs in the creation of a socket and through a variety of special operations to control a socket.
Sockets were first introduced in 2.1BSD and subsequently refined into their current form with 4.2BSD. The sockets feature is now available with most current UNIX system releases.

Create Linux Virtual File System

Problem statement
Write a python program for creating Virtual File System on Linux environment 

Solution
   A.    History of Linux filesystem
Linux is a Unix-like operating system, which runs on PC-386 computers. It was implemented first as extension to the Minix operating system [Tanenbaum 1987] and its first versions included support for the Minix filesystem only. The Minix filesystem contains two serious limitations: block addresses are stored in 16 bit integers, thus the maximal filesystem size is restricted to 64 mega bytes, and directories contain fixed-size entries and the maximal file name is 14 characters.


Thursday, 7 August 2014

OSD Unit 3 Memory Management & Virtual Memory - question bank

1
Define memory management in operating system.
2
What is need of memory management?
3
Write short note on fork swap, expansion swap.
4
Explain memory management policy – swapping in detail.
5
Write in short – allocating and freeing swap space.
6
Compare fixed partitioning with dynamic partitioning.
7
Explain with neat diagram address translation in paging.
8
Explain with neat diagram address translation in segmentation.
9
Explain with neat diagram Linux memory management.
10
Explain with neat diagram Windows 8 memory management.
11
Explain with neat diagram Android memory management.
12
Explain with example data structures used for demand paging.
13
Compare and contrast paging with segmentation.
14
Explain in detail memory management requirements.
15
Explain with example any two page replacement algorithms – FIFO, Optimal, LRU.

Tuesday, 5 August 2014

Memory Management & Virtual Memory presentation

OSD Unit 2 Process & Threads - question bank

1
Define process in operating system.
2
Define thread in operating system.
3
Define deadlock in operating system.
4
Draw and explain Process Control Block.
5
Is Operating system itself is a process? Justify your answer.
6
Write short note on popular thread libraries (any two).
7
Is deadlock prevention is better than deadlock avoidance? Justify your answer.
8
What is a process state? Explain five states process model.
9
Compare and contrast process with thread.
10
Explain with diagram saving context of process.
11
Explain with neat diagram process states and transition.
12
What is deadlock? What are necessity conditions of deadlock?
13
Explain in detail how deadlock can be avoided.
14
Explain in detail how deadlock can be prevented.
15
Explain in detail how deadlock can be detected.
16
Explain with examples, process scheduling algorithms – FCFS, priority, SJF, RR
17
Compare any four process scheduling algorithms.
18
Explain with diagram multi threaded models.
19
Explain in detail six steps of Android boot process.
20
With the help of example, explain how banker algorithm helps to determine safe state.

OSD Unit 1 Foundation of UNIX Operating System - question bank

1
Define operating system in short.
2
What do you mean by operating system kernel?
3
Define boot loader in short.
4
What is GRUB-2?
5
Define system call with example.
6
State types of file in UNIX system
7
Explain in brief any four core functions of operating system
8
Write short notes on Master Boot Record (MBR).
9
Explain swapping process in and swapping process out.
10
Explain with neat diagram the importance of buffer cache.
11
Explain with neat diagram UNIX file system structure.
12
Explain operating system with neat architecture diagram.
13
Compare and contrast different kernel types.
14
Explain operating system booting process with neat diagram.
15
What do you mean by GRUB? How to configure Linux GRUB?
16
What is free space management (FSM)? Explain how bit vector and liked list performs FSM.

Monday, 4 August 2014

First Java web application

Dear Viewers,

I have developed simple Java web application using Netbeans IDE. This application is intended to perform Login authentication. Deployment of this application can be on Glassfish server (in built in Netbeans) or Apache tomcat server. Detailed flow is as below:

index.jsp
This file presents a HTML form where user enters his login details like username and password. After clicking on Login button, form entries are sent to servlet - "CheckLogin.java"