Don't forget to Upvote if useful. 😊
I will cover the most important topics asked in interviews cs core. Most important topics related to OS/DBMS/OOPS/CN (Updated).
CONTENT OF THIS POST :
Most important topics related to OS/DBMS/OOPS/CN.
Important Topic for OS
Process (Attributes, state, life cycle, PCB) vs Thread.
| Process | Thread |
|---|---|
| Process means any program is in execution. | Thread means a segment of a process. |
| It takes more time for creation. | It takes less time for creation. |
| It also takes more time for context switching. | It takes less time for context switching. |
| The process is less efficient in terms of communication. | Thread is more efficient in terms of communication. |
| Multiprogramming holds the concepts of multi-process. | We don’t need multi programs in action for multiple threads because a single process consists of multiple threads. |
| The process is isolated. | Thread shares memory. |
| The process is called the heavyweight process. | A Thread is lightweight as each thread in a process shares code, data, and resources. |
| Process switching uses an interface in an operating system. | Thread switching does not require calling an operating system and causes an interrupt to the kernel. |
| If one process is blocked then it will not affect the execution of other processes. | If a user-level thread is blocked, then all other user-level threads are blocked. |
| The process has its own Process Control Block, Stack, and Address Space. | Thread has Parents’ PCB, its own Thread Control Block, and Stack and common Address space. |
| Changes to the parent process do not affect child processes. | Since all threads of the same process share address space and other resources so any changes to the main thread may affect the behavior of the other threads of the process. |
| A system call is involved in it. | No system call is involved, it is created using APIs. |
| The process does not share data with each other. | Threads share data with each other. |
Scheduling Algorithms
Preemptive Scheduling: Preemptive scheduling is used when a process switches from running state to ready state or from the waiting state to the ready state.
Non-Preemptive Scheduling: Non-Preemptive scheduling is used when a process terminates , or when a process switches from running state to waiting state.

First Come First Serve:
FCFS considered to be the simplest of all operating system scheduling algorithms. First come first serve scheduling algorithm states that the process that requests the CPU first is allocated the CPU first and is implemented by using FIFO queue.
Characteristics of FCFS:
Advantages of FCFS:
Disadvantages of FCFS:
Shortest Job First(SJF):
Shortest job first (SJF) is a scheduling process that selects the waiting process with the smallest execution time to execute next. This scheduling method may or may not be preemptive. Significantly reduces the average waiting time for other processes waiting to be executed. The full form of SJF is Shortest Job First.

Characteristics of SJF:
Advantages of Shortest Job first:
Disadvantages of SJF:
Longest Job First(LJF):
Longest Job First(LJF) scheduling process is just opposite of shortest job first (SJF), as the name suggests this algorithm is based upon the fact that the process with the largest burst time is processed first. Longest Job First is non-preemptive in nature.
Characteristics of LJF:
Advantages of LJF:
Disadvantages of LJF:
Characteristics of Priority Scheduling:
Advantages of Priority Scheduling:
Disadvantages of Priority Scheduling:
Round robin:
Round Robin is a CPU scheduling algorithm where each process is cyclically assigned a fixed time slot. It is the preemptive version of First come First Serve CPU Scheduling algorithm. Round Robin CPU Algorithm generally focuses on Time Sharing technique.
Characteristics of Round robin:
Advantages of Round robin:
Shortest Remaining Time First:
Shortest remaining time first is the preemptive version of the Shortest job first which we have discussed earlier where the processor is allocated to the job closest to completion. In SRTF the process with the smallest amount of time remaining until completion is selected to execute.
Characteristics of Shortest remaining time first:
Advantages of SRTF:
Disadvantages of SRTF:
Longest Remaining Time First:
The longest remaining time first is a preemptive version of the longest job first scheduling algorithm. This scheduling algorithm is used by the operating system to program incoming processes for use in a systematic way. This algorithm schedules those processes first which have the longest processing time remaining for completion.
Characteristics of longest remaining time first:
Advantages of LRTF:
Disadvantages of LRTF:
Highest Response Ratio Next:
Highest Response Ratio Next is a non-preemptive CPU Scheduling algorithm and it is considered as one of the most optimal scheduling algorithms. The name itself states that we need to find the response ratio of all available processes and select the one with the highest Response Ratio. A process once selected will run till completion.
Characteristics of Highest Response Ratio Next:
The criteria for HRRN is Response Ratio, and the mode is Non-Preemptive.
HRRN is considered as the modification of Shortest Job First to reduce the problem of starvation.
In comparison with SJF, during the HRRN scheduling algorithm, the CPU is allotted to the next process which has the highest response ratio and not to the process having less burst time.
Response Ratio = (W + S)/S
Here, W is the waiting time of the process so far and S is the Burst time of the process.Advantages of HRRN:
Disadvantages of HRRN:

The description of the processes in the above diagram is as follows:
Advantages of multilevel queue scheduling:
Disadvantages of multilevel queue scheduling:
Multilevel Feedback Queue Scheduling::
Multilevel Feedback Queue Scheduling (MLFQ) CPU Scheduling is like Multilevel Queue Scheduling but in this process can move between the queues. And thus, much more efficient than multilevel queue scheduling.
Characteristics of Multilevel Feedback Queue Scheduling:
Advantages of Multilevel feedback queue scheduling:
Disadvantages of Multilevel feedback queue scheduling:
Multiprogramming vs Multiprocessing vs Multitasking vs Multithreading.

Memory Allocation
Internal and External Fragmentation.
Memory Allocation Technique.
Page replacement Algos
Deadlock
Critical section problem
Benefits of a multiprocessor system
RAID structure in OS and different levels of RAID Configration.
Bootstrap program in OS
Demand paging
RTOS
IPC
Main Memory Vs Secondary Memory
Mutex vs Semaphore
Important Topic for DBMS
Important Topic for COMPUTER NETWORK
Important Topic for OOPS
plaese UPVOTE 👍👍👍