Sunday, 5 October 2014

OSD Unit 6 Advance Tools and Technologies (Problem Solving in OS) - question bank

Q No
Question
1
What is multiprocessor system? List the types of multiprocessor system.
2
Explain the design issues of multiprocessor scheduling.
3
What is gang scheduling?
4
What is real time system?
5
Distinguish between hard real time task and soft real time task.
6
Enlist different characteristics of real time system and explain it.
7
What are different types of real time tasks?
8
What is fail-soft operation?
9
Explain different types of approaches for real time scheduling.
10
Explain static table-driven approach for real time scheduling.
11
Explain static priority-driven preemptive approach for real time scheduling.
12
Explain Dynamic planning based approach for real time scheduling.
13
What is deadline scheduling? Explain with example.
14
What is rate monotonic scheduling? Explain with example.
15
What are different classes of Linux scheduling?
16
Explain data structures used in Linux scheduling.
17
What is UNIX Free-BSD scheduler? List different priority levels of the same.
18
Write a note on Windows Vista scheduling.
19
Write a note on Windows-8 ReFS file system.
20
What is embedded system? List some examples.
21
What are the characteristics of embedded system?
22
Compare Windows NTFS and ReFS file systems.
23
Write a note on Embedded system OS.
24
Write a note on handheld devices. List various OS used in handheld devices.
25
Write a short note on PalmOS, Windows CE, Android.
26
List the android features.
27
Draw and explain the android OS architecture.

Sunday, 21 September 2014

Prepare pie chart in JSP using JFreeChart

Contributed by Mr. Mohammed Ali Chherawalla

Solution:
Often we need to present required information in pie chart. Towards, I am presenting a simple project which justifies the mentioned goal above. Developers need to go through the following requirements.
1. Import 2 Jar files called "jcommon-1.0.23.jar" and "jfreechart.jar".
2. These JARs have predefined functions which makes it easier to create the pie chart.
3. I dynamically created a new file in the form of "piechart.jpg".
4. "Piechart.jsp" file calls "Piechartcall.jsp" which in turn calls the image file created in "piechart.jsp" and presents it in a uniform manner .
5. Any web server like Glassfish or Apache Tomcat can be used for deployment.
6. You also need "mysql-connector-java-5.1.31-bin.jar".
7. Download the source code and required JARs by clicking following link.


Thursday, 18 September 2014

Cloud Infrastructure and Services unit wise question bank - TE IT

Unit no 1
Journey to the Cloud

Q No
Question
1
Define cloud computing.
2
Explain different cloud deployment models with example.
3
Compare different cloud service models.
4
List out essential characteristics of cloud computing.
5
Why to refer cloud computing? Elaborate with real time applications
6
What are the key benefits of virtualization technology?

Saturday, 13 September 2014

OSD Unit 5 Advance Tools and Technologies - question bank


Q No
Question
1
What is make utility? Explain with an example.
2
Write short notes on nmake and cmake.
3
What is AWK scripting? Explain with advantages.
4
Write AWK script to generate a report on student database.
5
Elaborate with an example grep utility.
6
Write short note on egrep, fgrep and sort utility.
7
What are EFI and UEFI? Explain with an application.
8
Differentiate BIOS with EFI?
9
Explain in brief about following files:
gcdx64.efi, grub.cfg, grubx64.efi, MokManager.efi, shim.efi, shim-fedora.efi
10
Explain in detail, how to make USB bootable with any open source tool.

OSD Unit 4 Inter-process communications - question bank


Q No
Question
1
What is Inter-process communication? Why it is important in operating system?
2
Explain shared memory with its system calls.
3
What do you mean by pipe? Explain anonymous and named / FIFO pipe.
4
What is socket? Explain its types.
5
Explain in brief signal and semaphore.
6
Differentiate message passing and shared memory IPC mechanism.
7
Write and explain pseudo code for exchanging data between two computers using socket.
8
Write short note on System V with IPC mechanisms used in it.
9
What is process tracing? Mention its advantages and disadvantages.
10
Explain multiprocessor system with it benefits.
11
Write short notes on SISD, SIMD, MISD, MIMD.

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"


Tuesday, 29 July 2014

Create RAMDisk on Linux platform

Problem statement: 
Write a program in C++ to create a RAMDRIVE and associate an a cyclic directory structure to it. Use this RAMDRIVE to store input, out files to run a calculator program.

Solution:

   A.    Basics of RAMDisk
As name suggest, RAMDisk is basically hard disk portion which is used / treated as RAM portion. It means, from actual RAM, we utilize few size to be used as RAMDisk. For e.g out of 2GB RAM size, you may allocate 512 MB size to newly created portion. Ramdisk or ramdrive is part of system memory that applications/user can use just like normal disk space — e.g. to create folders and files in it and manipulate them with dramatically better performance rather if they were stored on the hard drive. This is because Ram memory is much faster than other forms of storage.
By default Ubuntu has ramdisk mounted into /dev/shm/ directory so you can just copy/move files into that dir and be sure they’ll be stored in RAM memory. That could be useful for, say, video conversion when both input and output files are stored in ramdisk — resulting performance will be better as read and write speeds are higher for ram than for hdd or any other storage. This is due to the fact CPU cannot access to HDD directly while it can do it with RAM. There are two types of RAMDisk: 1. ramfs (not much used now a days) and 2. tmpfs (mostly used).

Thursday, 24 July 2014

Use pipe to perform Inter-Process Communication (IPC)

Problem statement: Write an IPC program using pipe. Process A accepts a character string and Process B inverses the string. Pipe is used to establish communication between A and B processes using Python or C++.

Solution: 
   A.    Basics of Inter-Process Communication (IPC)
Inter-Process-Communication (or IPC for short) are mechanisms provided by the kernel to allow processes to communicate with each other. On modern systems, IPCs form the web that binds together each process within large scale software architecture. 
The Linux kernel provides the following IPC mechanisms:


Ugrade Ubuntu 10.04 to Ubuntu 12.04 via terminal [closed]

Objective: 
Upgrade to Ubuntu 12.04 from Ubuntu 10.04 via terminal

Steps:
1. start terminal. Use shortcut alt+ctrl+t

2.  Install update-manager-core, if it is not already installed.
 pavan@ubuntu:~$ sudo apt-get install update-manager-core 

3. Run the commands below to open upgrade manager's release  upgrade file
pavan@ubuntu:~$ sudo vi /etc/update-manager/release-upgrades 

4. set Prompt=lts if not set in the opened file. Save file and close it

5. Update all packages installed before you upgrade
pavan@ubuntu:~$ sudo apt-get update && sudo apt-get upgrade & sudo apt-get autoremove

6. Finally begin the upgrade process
pavan@ubuntu:~$ sudo do-release-upgrade
when ask if you want to continue with upgrade, press Y or yes

7. After successful upgrade, cross check your Ubuntu version with below command
pavan@ubuntu:~$ lsb_release -a
No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 12.04.1 LTS
Release:    12.04
Codename:    precise
pavan@ubuntu:~$
 
8. You are done. Enjoy !!!


Wednesday, 23 July 2014

Display i-node information of given file

Problem statement: Display i-node information of given file using C++ or Python language

Solution:
    A.     Introduction
The inode (also known as Index Node) is a very basic concept related to Linux and UNIX filesystem. Each and every object/element in the filesystem is associated with an inode.
You must be aware of the fact that, most of the countries have given a unique identity to their citizens in the form of a unique identification number ('Aadhar Card' in India and 'SSN' in the USA) to identify an individual easily and uniquely. This also leads to make all the paper work corresponding to any citizen easier to be handled.
Just like these identification numbers for people, there is a unique identity of every member of a Linux filesystem which is known as Inode number and it uniquely exists for each and every individual file on Linux or Unix filesystem.