Basic CS-Operating System [3i Infotech Placement]: Sample Questions 52 - 54 of 89

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 52

Operating System
Edit

Write in Short

Short Answer▾

How many jobs can be run concurrently on MVT?

Explanation

  • 15 jobs can run concurrently on Multiprogramming with a Variable number of Tasks (MVT) .
  • Job can move from one partition to another because of dynamic address binding
  • MVT is the memory management technique in which each job gets amount of memory it needs- even at cost of swapping other processes.
  • The partitioning of memory is dynamic and changes as jobs enter and leave the system.
  • MVT makes more “efficient” use of resources.
  • MVT however suffers from the problem of internal fragmentation

Question 53

Operating System
Edit

Write in Short

Short Answer▾

How would you use qsort () function to sort the name stored in array of pointers to string?

Explanation

  • When qsort is called, it sorts the array into ascending order, calling the comparison function whenever it needs to compare array elements.
  • A call of qsort that sorts the inventory array looks like this:
  • Qsort (inventory, num_parts, sizeof (struct part) , compare_parts) . Here Compare_parts is a function that compares two part structures.

Question 54

Operating System
Edit

Write in Short

Short Answer▾

What is symbolic links?

Explanation

  • Symbolic link is another name for file.
  • Contains reference to another file as absolute or relative path
  • Affects pathname resolution.
  • Transparent to users- links appear as normal files or directories, and acted upon by the user or application in exactly the same manner.
  • Aid in migration and application compatibility with UNIX operating systems.

Symbolic link are different from hard links.

  • Hard links always point to an existing file- symbolic links may contain an arbitrary path that does not point to anything.

Developed by: