KASA
Back to interview Q&A
Computer Science FresherOperating Systembeginner

What is the difference between process and thread?

Operating system basics question for CS freshers and backend interviews.

0
Asked by KASA community7 Jul 20260 views
KASA answer
A process has its own address space, resources, and execution state. Two processes are more isolated from each other. A thread exists inside a process and shares the same memory and resources with other threads of that process. Threads are lighter to create and switch between, but shared memory means synchronization issues can happen. For example, a browser may run multiple processes for tabs, while each tab process can use multiple threads for rendering, networking, and JavaScript execution.
Cover these points
  • Process has separate memory.
  • Thread shares memory inside a process.
  • Threads are lighter than processes.
  • Threads need synchronization when sharing data.
  • Give a practical example.

Community answers

0 approved answers

Add answer

No approved community answers yet

Add a clear answer with examples. It will appear after moderation.

Question discussion

Comments and follow-ups

No approved comments yet. Add useful context or ask a follow-up.

Login to join the discussion

Write an answer

Add a practical answer with examples, edge cases, project experience, and points a fresher can speak in an interview.

Login required. Your answer will be connected to your account and sent for moderation.

Keep practising

Related interview questions

Browse all