🇮🇳 UGC NET Computer Science · flashcards

UGC NET Computer Science System Software and Operating System Flashcards

51 question-and-answer cards covering System Software and Operating System as it is examined in UGC NET Computer Science. 24 of them are printed below, taken from across the deck — no signup, no paywall on the preview.

51Cards in deck
24Free preview
89Syllabus topics
~307Chars per answer
FreePrice

24 sample cards from the System Software and Operating System deck

Sampled from the end of the deck, so these are different cards from the ones shown on the syllabus page.

  1. What approaches are used for multiple-processor (multiprocessor) scheduling?

    Asymmetric multiprocessing (one master processor handles scheduling/system activities, others run user code) and symmetric multiprocessing/SMP (each processor self-schedules from a common or per-processor ready queue). Considerations include processor affinity, load balancing (push/pull migration), and NUMA effects.

  2. Distinguish hard real-time from soft real-time scheduling.

    Hard real-time: tasks must complete by their deadline; missing a deadline is a system failure. Soft real-time: critical tasks get priority over non-critical ones, but no absolute deadline guarantee—missing a deadline degrades quality but is tolerable.

  3. State the rate-monotonic scheduling priority rule and its key property.

    Rate-monotonic scheduling assigns static priorities inversely proportional to period: shorter period → higher priority. It is optimal among fixed-priority algorithms; n periodic tasks are schedulable if total CPU utilization ≤ n(2^(1/n) − 1), which approaches ln 2 ≈ 0.693 as n → ∞.

  4. State the four necessary conditions for a deadlock to occur.

    Mutual exclusion (resources non-shareable), Hold and wait (a process holds resources while waiting for more), No preemption (resources released only voluntarily), and Circular wait (a cycle of processes each waiting on a resource held by the next). All four must hold simultaneously.

  5. What are the four methods for handling deadlocks?

    Deadlock prevention (negate one of the four necessary conditions), deadlock avoidance (use advance info, e.g., Banker's algorithm, to stay in safe states), deadlock detection and recovery (allow deadlocks, detect, then recover), and ignore the problem (the ostrich approach used by many OSes).

  6. How does deadlock prevention work for each necessary condition?

    Mutual exclusion: make resources shareable where possible (not always feasible). Hold-and-wait: require requesting all resources at once or releasing before requesting. No preemption: preempt held resources if a request can't be granted. Circular wait: impose a total ordering on resource types and request in increasing order.

  7. What is a safe state in the Banker's algorithm, and why does avoidance rely on it?

    A safe state is one in which there exists a sequence of all processes (a safe sequence) such that each can obtain its maximum needed resources from currently available plus those released by predecessors. Deadlock avoidance grants a request only if the resulting state remains safe, guaranteeing no deadlock (unsafe state may lead to deadlock).

  8. How are deadlocks detected and what are the recovery options?

    Detection: for single-instance resources, look for a cycle in the wait-for graph; for multiple instances, use a detection algorithm similar to the Banker's safety check. Recovery: abort processes (all deadlocked or one at a time until the cycle breaks) or preempt resources (selecting a victim, rolling back, and avoiding starvation).

  9. What is external fragmentation and how does it relate to contiguous memory allocation?

    External fragmentation occurs when free memory is broken into many small non-contiguous holes so that, although total free space is sufficient, no single hole is large enough for a request. It afflicts contiguous allocation and can be reduced by compaction or by using paging/segmentation.

  10. Compare first-fit, best-fit, and worst-fit allocation strategies.

    First-fit: allocate the first hole large enough (fast). Best-fit: allocate the smallest hole that fits (minimizes leftover but leaves tiny fragments and is slower). Worst-fit: allocate the largest hole (leaves a usable large remainder). First-fit and best-fit generally outperform worst-fit in storage utilization.

  11. What is swapping in memory management?

    Swapping temporarily moves an entire process (or pages) out of main memory to a backing store (swap space on disk) and brings it back later, allowing the total physical memory used by all processes to exceed actual RAM. It increases the degree of multiprogramming at the cost of swap overhead.

  12. Explain how paging translates a logical address to a physical address.

    The logical address is split into a page number p and an offset d. The page number indexes the page table to obtain the frame number f; the physical address is then f × frame_size + d. A TLB caches recent page-table entries to speed translation.

  13. What is the effective memory access time formula with a TLB?

    EAT = h·(t_TLB + t_mem) + (1 − h)·(t_TLB + 2·t_mem), where h is the TLB hit ratio, t_TLB is TLB lookup time, and t_mem is memory access time. (On a hit: TLB + one memory access; on a miss: TLB + page-table access + the actual access.)

  14. Compare paging and segmentation.

    Paging divides memory into fixed-size pages/frames; it is invisible to the programmer and causes internal fragmentation but no external fragmentation. Segmentation divides memory into variable-size logical units (code, data, stack) reflecting the program's structure; it causes external fragmentation but supports protection/sharing at the logical level.

  15. What is demand paging and what is a page fault?

    Demand paging loads pages into memory only when they are referenced (lazy loading), using a valid/invalid bit in the page table. A page fault is the trap raised when a process references a page not in memory; the OS then locates it on disk, brings it into a free frame, updates the page table, and restarts the instruction.

  16. Describe the FIFO, Optimal, and LRU page-replacement algorithms.

    FIFO replaces the oldest-loaded page (simple, suffers Belady's anomaly). Optimal (OPT/MIN) replaces the page that will not be used for the longest future time (lowest fault rate but unrealizable—needs future knowledge). LRU replaces the page least recently used (good approximation of optimal, needs hardware support like counters/stack).

  17. What is Belady's anomaly?

    Belady's anomaly is the counterintuitive phenomenon where increasing the number of allocated frames causes the page-fault rate to increase (rather than decrease) for certain reference strings. It occurs with FIFO replacement but not with stack algorithms like LRU or OPT.

  18. What is thrashing and how can it be controlled?

    Thrashing is a state of high paging activity where a process spends more time paging than executing because it lacks enough frames for its working set, causing CPU utilization to collapse. It is controlled using the working-set model or the page-fault frequency (PFF) scheme to allocate frames appropriately and limit multiprogramming.

  19. What is the working-set model?

    The working set is the set of pages a process has referenced in the most recent Δ (working-set window) page references; it approximates the process's locality. The OS allocates each process enough frames to hold its working set; if the sum of all working sets exceeds available frames, it suspends a process to prevent thrashing.

  20. Compare contiguous, linked, and indexed file allocation methods.

    Contiguous: file occupies consecutive blocks—fast sequential/direct access but external fragmentation and growth problems. Linked: each block points to the next—no external fragmentation, good for sequential access but poor random access and pointer overhead. Indexed: an index block holds all data-block pointers—supports direct access without external fragmentation, at the cost of index-block overhead.

  21. What free-space management techniques does a file system use?

    Bit vector/bitmap (one bit per block, easy to find contiguous free blocks but needs memory), linked list of free blocks (no waste but slow traversal), grouping (first free block stores addresses of n free blocks), and counting (stores address of first free block plus a count of contiguous free blocks).

  22. List common disk-scheduling algorithms and the goal they optimize.

    FCFS, SSTF (shortest seek time first), SCAN (elevator), C-SCAN, LOOK, and C-LOOK. They aim to minimize total seek time / head movement and improve disk throughput; SCAN/C-SCAN provide more uniform wait times and avoid the starvation possible with SSTF.

  23. Compare RAID levels 0, 1, and 5.

    RAID 0: striping, no redundancy—high performance, no fault tolerance. RAID 1: mirroring—full redundancy (duplicate copies), high reliability but 50% storage overhead. RAID 5: block-level striping with distributed parity—tolerates one disk failure with lower overhead (one parity block per stripe), good read performance with a write penalty due to parity updates.

  24. In OS protection, what is an access matrix and what are its rows and columns?

    The access matrix is a model of protection where rows represent domains (subjects) and columns represent objects (resources); entry access[i,j] lists the operations domain i may perform on object j. It is implemented practically via access control lists (by column) or capability lists (by row).

What this deck covers

The System Software and Operating System deck follows the UGC NET Computer Science System Software and Operating System syllabus — 14 chapters and 89 topics — so questions land on material that is genuinely examinable rather than trivia around it. That works out to roughly 3.6 cards per chapter.

Answers are written to be recallable, not just readable — averaging about 307 characters, which is long enough to carry the reasoning and short enough to say out loud.

A deck like this earns its keep on the second and third pass. Read the syllabus first so you know the shape of the subject, then use the cards to find the specific facts that have not stuck.

System Software and Operating System flashcards FAQ

How many System Software and Operating System flashcards are in this UGC NET Computer Science deck?

51 cards. This page previews 24 of them, sampled evenly across the deck so you can judge the difficulty before installing anything.

Are these UGC NET Computer Science flashcards free?

Yes. The preview here is free to read with no signup, and the full 51-card deck is free inside the Examius app.

What do the System Software and Operating System cards cover?

They follow the UGC NET Computer Science System Software and Operating System syllabus — 14 chapters and 89 topics — so the questions track what is actually examinable.

How should I use these flashcards?

Read the syllabus first so you know the shape of the subject, then drill the deck. Examius schedules each card with spaced repetition, so cards you keep missing come back sooner and ones you know drift further apart.