UrbanPro
true

Take BTech Tuition from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Few Operating System Question - Answers for Fresher Level Interview

Adroit Learning Foundation
26/09/2016 0 0
What is kernel? How it is different from shell?
Kernel is the core portion of the Operating system which gets loaded into the primary memory at the time of bootstrapping. It allocates the memory for the program, manages all the files, and gives response to the different system calls.
On the contrary, shell acts as the interpreter between naive user and kernel. It performs Command Line Interpretation that is it interprets the command typed in the prompt in a form that kernel understands. Kernel then allocates resources to the programs as represented by the commands .
 
How many types of files are there in any standard Unix family system?
From the Operating System aspect, Unix does not impose any internal file structure, but the differences arise when they are interpreted differently by the application software.
On this background, there are two types of files in Unix, and they are Normal or Ordinary Files and some Special Files. Normal or Ordinary files are indicated with “-“ in first position of the file permission string.
There are many special files like Directory files (indicated with “d”), Named pipes (indicated with “p”), Socket files (indicated with “s”), Symbolic link (indicated with “l”) and Device files. Device files are of two types, character device files (indicated with “c”) and block device files (indicated with “b”).
 
What is the difference between Soft Linking and hard Linking in Unix?
If a file “foo” is hard linked with “bar”, then “bar” points to the content of “foo”. That is if content of the “foo” gets changed, content of ”bar” also gets changed. Vice versa is also true. As ”foo” and “bar” point to the same locations in the file structure, they share common inode number.
On the other hand if “foo” is soft linked with “dar” then dar becomes a completely different file which holds the path of the “foo”. Content of “dar” is actually nothing but the content of the file, path of which is there in “dar”. Hence change in content of “foo” will obviously lead to change in content of “dar”. As “foo” and “bar” are two different files physically, their inode numbers will be different.
Now if “foo” gets deleted, still the content of “foo” could be accessed through “bar”, but “dar” will have no content because “dar” will try to show the content of “foo” which is not there at all in the file system.
Lastly, hard linking cannot pierce through current directory where as soft linking can span through entire directory structure.
0 Dislike
Follow 0

Please Enter a comment

Submit

Other Lessons for You

Difference Between Short And Long Term Deflections (Limit State Of Serviceability)
Difference between Short- and Long-term Deflections: Short-term deflection means the immediate deflection after casting and application of partial or full service loads, while the long-term deflection...

The Coming Energy Revolution
Not Ethanol, not wind, not solar; none of the known & popular renewable alternatives, but rather a hydrogen based energy source. Is it LENR (Low Energy Nuclear Reactions)? Is it Fuel Cells? Is it a...

Review of Thermo
Which of the following process can be made reversible with the help of a regenerator? (A) Constant pressure process (B) Constant volume process (C) Constant pvn process (D) All of these Correct...

Mechanical Designing, Is it all about knowing CAD ?
Whenever, I get chance to meet and interview any mechanical designer, I could see they will be more interested to showcase themselves knowing more about a different mechanical CAD software it could be...

What is a Programming Language
What is a Language? Language is a communication system of human. What is a programming Language? A programming Language is a formal constructed language design to communicate...
X

Looking for BTech Tuition Classes?

The best tutors for BTech Tuition Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Take BTech Tuition with the Best Tutors

The best Tutors for BTech Tuition Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more