- About IPC mechanisms, difference between message queues and
shared memory?
- What is RTOS, its featuers, interrupt latency, what is
interrupts?
- what is device driver? Why we need it? Do we need device driver
to access memory?
- what is scheduling algorithm ? what scheduling algorithm unix
uses? RTOS uses?
- explain scheduling algorithm?
- How is RTOS time deterministic?
- What threads will share?
- what fork returns to
child - Ans 0
- A question on Raw socket
- Which IPC we can use between 2 PC's?
a.
Semaphores b. Pipes c. Sockets d. None
- What is software Interrupt and Hardware interrupt
- About watch dog timer, How can we convert the the Watchdog
timer interrupt(Its a software interrupt)to hardware interrup
- signals are part of IPC yes/no. Justify.
- what is multithreading and multiprogrmming.
- Explain concept of
multtreading using CPU.
- write a program to print the link data from the last node.
- what is memory fragmentation.
- what is static and their scope as variable and function.
- where static, auto and globals are stored.
- what is process and thread.
- what is pipeline.
- write a program to swap
two numbers.
- Explain fork.
- Explain diffrent IPC mechanisms.
- Difference between process and thread.
- some questions on threads and signals.
- Questions on Mutex and semaphore
- What is the difference between MUTEX and SEMAPHORE.
- Write a complete program using pipes to communicate between two
processes?
- What is RTOS? Why is it called real-time? Why is it efficient
than other OSes?
- What are different IPC mechanisms? Which ipc do u prefer and
why? What is deadlock? Which ipc did u use in project and why? How is
synchronization achieved, give example? How does Mutex work? Did you work
on shared memory? What is critical section? How do u avoid deadlock?
- You have data coming from bus and Program Status Register will
indicate whether data is available and you are processing 500 bytes of
data and when you are processing 250 th byte,if PSR will indicate data is
available, how do u handle processing data(either in drivers or normal
way) with PSR indication?
- Architecture of the Linux
- Write a program to implement semaphore operation.
- Daemon, orphan, and
zombie process.
- Process data
structures( process table, pregion table, region table ).
- How do u broadcast using a system call
- Explain Dup system call and how u will redirect the output to a
file instead of std output fork(),
vfork() system calls( differences, when to use vfork), Copy On Write( COW). mount,
open, exec, wait, signal system calls.
- Signals, signal handling, how to send signals
- ( kill command or system
call).
- Shared memory( with system calls: shmget, shmat, etc )
- Semaphores( used for synchronization, like access to shared
memory)
- What is advisory lock.
- What is mandatory lock
- Who will take care about mandatory locking ?
- What is spin lock ?
- What is dead lock ?
- In which case we have to use spin locks
- Is it possible to have dead lock situation where there is only
one process and only one
resource
What is paging ?
- In case of paging system suppose reading is happened at the end
of one page ,How it locates the
next address to read ?
- If one code is written to the system which does not support
paging, What changes has to be
made to run it on the system which supports paging ?
- How rm works ?
- What is the difference between VxWorks kernel and Linux kernel
?
- Why DOS is not multitasking system and Linux is multitasking
?
- Multitasking is implemented in software level or hardware
support is also needed? How
open system call works in kernel level ?
- Where monolithic kernels are used ? Where micro kernels are
used ?
- Write a program to generate 5 childs they run parrellaly?
- What are the different states of the process?
- What is the difference b/w zombie and orphan?
- What grep command will do?
- Write the kernel architecture?
- What is the different types of RTOS?
- How can you load the device driver modules?
- Did you compile a kernel?
- What are the different driver modules?
- Which commmand you used in linux to load the modules?
- Explain the shared memory?
- Did you write any kernel programs?
- What is the difference b/w hardware and software
interrupts?
- What is privilaged mode ? Give examples?
- Explain the interrupt handling?
- How the system call execution takesplace?
- Explain the context layers of the process?
- What is Demand paging ?
- Did you read any linux kernel book?
- What are the File systems of LINUX?
- What is the difference b/w EXT2 and EXT3?
- How are u going to check
the default shell in your system ?
- How can u change the default shell ?
- What does this first line #!/bin/bash in the shell script
indicate ?
- Which shell will interpret if u use #!/bin/csh as the first
line in the
- shell script ? and which will interpret if u run script without
using this
- first line ?
- Explain the Process Data Structure. What happens when a process
is created.
- What are signals? How are they implemented ?
- How are default signals handled.?
- What are different modes of signals?
- What is the difference
between dup and dup2?
- How to substitute a string in shell Programming ?
- In shell , how will you find the details of devices which have
been mounted ?
- Write a program to generate 5 childs they run parallel?
- About umask
- What is spin lock ?
- How open system call works in kernel level ?
- What are the different states of the process?
- What is the difference b/w zombie and orphan?
- Write the kernel architecture?
98. Did you compile a kernel?
- What are the different driver modules?
- Which commmand you used in linux to load the modules?
- Explain the shared memory?
- Did you write any kernel programs?
- What is the difference b/w hardware and software
interrupts?
- What is privilaged mode ? Give examples?
- Explain the interrupt handling?
- How the system call execution takesplace?
- Explain the context layers of the process?
- Which command you used to check shared library?
- Explain virtual address mapping?
- Did you read any linux kernel book?
- What are the File systems of LINUX?
- What is the difference b/w EXT2 and EXT3?
- What is journaling?
- What fsck will do?
--> check and repair filesystems
- Explain the imlplementation of Linux file system?
- What are the contents of inode?
- What is Copy on write? Where it is used?
- What is delayed write?
- What is PCI and how many devices it supports?
- What is the scheduling algorithm used in unix?
- Explain physical memory layout. Explain different
segments.
- Where are the shared libraries loaded?
- When are the shared libraries loaded in main memory?
- If two processes uses one shared library, how the other process
come to know that particular library is already
loaded in memory?
- What are signals? how they have been implemented?
- When is a signal handled?
- What happens if same signal is sent more then once?
- Explain wait system call.(arguments,return values)
- How does the parent process comes to know the child
exited.
- (process table entry)
- How are default signals handled?
- What are different modes of signals?
- Can we have lseek on a tape device?
- How system call is invoked?
- When SIGBUS signal is generated?
- What is TLB?
- What is shared memory?
- How to synchronize processes when they access shared
memory?
- What are the types of semaphores?
- How will you synchronize n processes from accessing r
resources?
- Virtual Memory
- Problem with parallel execution
a=b+c
d=x+y
s=a+d
how will u make them to execute in
Parallel
ans:
P1:
a=b+c
P2:
d=x+y
Then
any of them to do s=a+d
- What do u know about multi-threaded applications?
- In which case we have to use spin locks
- In case of paging system suppose reading is happened at the end
of one page. How it locates
the next address to read ?
- If one code is written to the system which does not support
paging, What changes has
to be made to run it on the system which supports paging ?
- Any real life use where multiple resources are accessed in
synchronization
- How and Where counting semaphores are used explain?
- What is the difference between VxWorks kernel and Linux kernel
?
- Why DOS is not multitasking system and Linux is multitasking
?
- Multitasking is implemented in software level or hardware
support is also needed?
- Where monolithic kernels are used ? Where micro kernels are
used ?
- What is the different types of RTOS?
- How do you convert Linux as a RTOS?
- What is virtual address and physical address?
- How virtual address is mapped into physical address? Which
hardware does it?
- How signal handling is done
- How interrupts are handled
- what to do if I want to delete the process after
executing.
- Can fork be done in threads and if done how and what will
happen.
- Difference between threads and process.
- Different IPC mechanisms.
- what are the unix concepts u know?
- list the ipc's u know?
- diff bw pipe and sockets?
- (before getting into this thread concepts he asked me something
but i dont remember .after
that he asked..)
- how can i create a thread?
- What is context switching?
- What is preemption?
- diff bw unix and windows.(some cross q's)
- diff bw unix and linux.
- what do u know abt unix internals?
- What is the difference between Binary and Mutual Exclusive
Semaphore?
- What is Priority Inheritance?
- all ipc explanation with system calls (pipes, msg q, shared
mem, semapore, socket)
- how open sytem call
work( with file table, UFDT, IT)
- how read write system
call work.
- Filesystem structure,
Kernel architecture
- signal handler in the case of child ( when the signal wll be
handled ) if parent recieve signal and then creted child and child
executed first then when signal will be handled and who
wll handle ?
- int main ()
{
fork ();
fork ();
fork ();
printf (" hi\n");
}
how
many time it wil print hi and why ?
Ans:
power(2,n), n is number of forks;
Some extra questions:
Some extra questions:
UNIX AND OS
1. About IPC mechanisms, difference
between message queues and shared memory?
2. What is RTOS, its featuers,
interrupt latency, what is interrupts?
3. what is device driver? Why we
need it? Do we need device driver to access memory?
4. what is scheduling algorithm ?
what scheduling algorithm unix uses? RTOS uses?
5. explain scheduling algorithm?
6. How is RTOS time deterministic?
7. What threads will share?
7. what fork returns to child - Ans 0
8. A question on Raw socket
9. Which IPC we can use between 2
PC's?
a.
Semaphores b. Pipes c. Sockets d. None
10. One question on Malloc
11. What is software Interrupt and
Hardware interrupt
12. About watch dog timer, How can
we convert the the Watchdog timer interrupt
(Its a software interrupt)to hardware
interrupt
13. A question on Raw socket
regarding ip packet.
14.
One question on Malloc
15. Some questions are repeated from
seniors papers.
16. signals are part of IPC yes/no.
int
main()
{
char
*str="hello";
char
*str1 ="world";
char
*p,*q;
p=&str;
q=&str1;
while(*str1++
= *p++)
;
while(*str1++
= *q++);
printf("%s"
star1);
}
17.
what is multithreading and multiprogrmming.
18. Explain concept of multtreading using CPU.
19. write a program to print the
link data from the last node.
20. data structures stack , queue,
link list, tree and their Aplication.
21. what is memory fragmentation.
22. what is static and their scope
as variable and function.
23. where static, auto and globals
are stored.
24. what is process and thread.
25. what is pipeline.
26. write a program to swap two numbers.
27. Explain fork.
28. Explain diffrent IPC mechanisms.
29. Difference between process and
thread.
30. some questions on threads and
signals.
31. Questions on Mutex and semaphore
32. What is the difference between
MUTEX and SEMAPHORE.
33. Write a complete program using
pipes to communicate between two
processes?
34. What is RTOS? Why is it called
real-time? Why is it efficient than other OSes?
35. What are different IPC
mechanisms? Which ipc do u prefer and why? What is deadlock? Which ipc did u
use in project and why? How is synchronization achieved, give example? How does
Mutex work? Did you work on shared memory? What is critical section? How do u
avoid deadlock?
36. You have data coming from bus
and Program Status Register will indicate whether data is available and you are
processing 500 bytes of data and when you are processing 250 th byte,if PSR
will indicate data is available, how do u handle processing data(either in
drivers or
normal way) with PSR
indication?
37. Architecture of the Linux
38. Booting concepts in h/w terms.
No comments:
Post a Comment