Showing posts with label LINUX PROGRAMS FOR R13 3-1. Show all posts
Showing posts with label LINUX PROGRAMS FOR R13 3-1. Show all posts

Friday, 11 September 2015

OS & linux lab updated Syllabus

III Year - I SEMESTER
                                           Image description

                       Operating Systems & Linux Programming   Laboratory
  
                                                             T   P   C
                                                             0   3    2
  Operating Systems



                                              
1.  Simulate the following CPU scheduling algorithms
a) Round Robin b) SJF c) FCFS d) Priority
2.  Multiprogramming-Memory management- Implementation of fork (), wait (), exec() and exit (), System calls
3.  Simulate the following
            a)Multiprogramming with a fixed number of tasks (MFT)
            b)Multiprogramming with a variable number of tasks (MVT)
4. Simulate Bankers Algorithm for Dead Lock Avoidance 
5.Simulate Bankers Algorithm for Dead Lock Prevention.
6. Simulate the following page replacement algorithms.
a) FIFO b) LRU c) LFU
7. Simulate the following File allocation strategies
a) Sequenced
 b) Indexed 
c) Linked









Linux Programming

1.
a) Study of Unix/Linux general purpose utility command list
man,who,cat, cd, cp, ps, ls, mv, rm, mkdir, rmdir, echo, more, date, time, kill, history, chmod, chown, finger, pwd, cal, logout, shutdown.

b) Study of vi editor.
c) Study of Bash shell, Bourne shell and C shell in Unix/Linux operating system.
d) Study of Unix/Linux file system (tree structure).
e) Study of .bashrc, /etc/bashrc and Environment variables.


2. Write a C program that makes a copy of a file using standard I/O, and system calls

3. Write a C program to emulate the UNIX ls -l command.

4. Write a C program that illustrates how to execute two commands concurrently
with a command pipe.
Ex: - ls -l | sort

5. Write a C program that illustrates two processes communicating using shared
memory

6. Write a C program to simulate producer and consumer problem usingsemaphores

7. Write C program to create a thread using pthreads library and let it run its function.


8.          Write a C program to illustrate concurrent execution of threads using pthreads library. 






Friday, 19 June 2015

Linux programming LAB

(3-1 CSE R13 SYLLABUS FOR 2013 ADMITTED BATCH)                                                              
Image description
III Year - I SEMESTER
                                                                                                                         T      P      C

                                                                                                                         0      3       2
                                     Linux Programming Lab

Objectives:
  To give a practical orientation of programming in Linux environment using system calls and advanced concepts in  unix programming

PROGRAMS LIST:
1. Write C programs that uses open, read, write system calls.
                                         (view) / (DOWNLOAD)

2. Write C programs that differentiates FILE *( file stream pointers in C standard library) and file descriptors by  using functions such as fdopen, fileno.
                                          (view)  /  (DOWNLOAD)

3. Write a C program which displays a given files meta data by using stat system call and st_mode structure.
                                          (view) / (DOWNLOAD)
 4. Write a C program which lists all the files of current working directory whose size is more than given number  of data blocks.
                                          (view)  /  (DOWNLOAD)
5. Write a C program which lists all the files of current working directory which contains hard link files
                                           (view)  /  (DOWNLOAD)
6. Write a C program to emulates file system checking utility (fsck command) using system calls.
7. Example C program which supports that child process inherits environment variables, command line  arguments, opened' files.
8. Simple C programs to have process trees and process chains.
9. Simple C program that demonstrates the failure of fork system call because of crossing system limits.
10. Simple C programs to demonstrate the use of pipe system call for inter process communication and also  emulating piping in shell.
11. Simple C programs to demonstrate the use of popen standard library function call for inter process  communication and also emulating piping in shell.
12. Simple C program to use named pipes for inter process communication.
13. Simple C programs to illustrate the use of exec family of functions.
14. Write a C program which emulates simple shell.
15. Write C program to create a thread using pthreads library and let it run its function.
16. Write a C program to illustrate concurrent execution of threads using pthreads library.
17. Write a C program to simulate ptrhead_create function failure by repeatedly calling the same.
18. Write a C program which creates a thread using pthread and passes arguments to the thread function.
19. Write C programs which uses sigset, sifillset, sigprocmask, related system calls and structures.
20. Write a C program to simulate memory segment violation run time error and implement a signal handler  (both reliable and unreliable) which handles situation.
 21. Write a C program to illustrate the use of sbrk system call.
22. Write a C program to illustrate inter process communication via message queues.
23. Write a C program to illustrate inter process communication via shared memory.
24. Write a C program to simulate producer and consumer problem using semaphores, shared memory, and fork.
25. Write a C program to simulate producer and consumer problem using semaphores, shared memory, and  pthread_create.
26. Write a C program to simulate producer and consumer problem using muexes, shared memory, and threads.
27. Write socket Programs in C for Echo/Ping/Talk Commands.
28. Create a Socket (TCP) between two computers and enable file transfer between them.
29. Write a Program to implement Remote Command Execution.
30. Write a code simulating  ARP/RARP.