Q1. What is the difference between a process and a thread?
A process is an instance of a running program, while a thread is a sequence of instructions within that program. Multiple threads can exist within a single process, each capable of executing independently.