Q1. What is the difference between a process and a thread?
A process is a running program with its own virtual address space, code, data, heap, open file descriptors and at least one thread. The operating system isolates processe...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (16 available).
A process is a running program with its own virtual address space, code, data, heap, open file descriptors and at least one thread. The operating system isolates processe...
`async`/`await` enables asynchronous programming without blocking a thread. Marking a method `async` lets you `await` a `Task` or `Task`, and the compiler rewrites the me...
A goroutine is a function running concurrently, scheduled by the Go runtime rather than directly by the operating system. - Cost: goroutines start with a small growable s...
The Global Interpreter Lock is a mutex in CPython that allows only one thread to execute Python bytecode at a time. Consequences: - CPU-bound multithreading does not get ...
A common implementation is SET key value NX PX ttl. NX sets the key only if it does not exist, and PX gives the lock an expiry so a crashed holder cannot deadlock the sys...
Channels are typed conduits for goroutine communication. Direction matters: `chan T`, `
A deadlock needs four conditions: mutual exclusion, hold-and-wait, no preemption and circular wait. Classic case: thread A locks X then waits for Y while thread B locks Y...
A deadlock is a set of threads each waiting for a resource held by another, so none can proceed. Four Coffman conditions must all hold: mutual exclusion, hold and wait, n...
SQL defines four isolation levels that trade consistency against concurrency. They are usually described by which anomalies they permit. - Read uncommitted: dirty reads a...
Swift's structured concurrency builds on `async`/`await`, `Task` and `TaskGroup`. An `async` function can suspend without blocking a thread, and `await` marks a potential...
HireXTech uses essential storage to remember your study preferences and third-party advertising cookies via Google AdSense in compliance with GDPR. You can choose to enable essential cookies only or accept all cookies. Read our Privacy Policy.