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 (12 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...
Node runs JavaScript on a single thread, so scaling options are: - Cluster module or a process manager (PM2) to fork one process per core behind a shared port. Good for t...
Interaction to Next Paint measures the time from a user interaction such as a click, tap or key press until the browser paints the next frame, across the whole visit, rep...
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 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...
MRI, the standard Ruby implementation, has a Global VM Lock: only one thread executes Ruby bytecode at a time, so threads do not provide CPU parallelism for pure Ruby cod...
A thread pool keeps a set of worker threads alive so tasks avoid per-request thread-creation cost. Core pieces: - A task queue, typically bounded, holding runnable work. ...
Yes, Python supports multithreading via the standard library `threading` module. However, due to CPython's **Global Interpreter Lock (GIL)**, only one native thread execu...
Python has a multi-threading package but if you want to multi-thread to speed your code up, then it's usually not a good idea to use it. Python has a construct called the...
Python ensures safe access to threads. It uses the GIL mutex to set synchronization. If a thread loses the GIL lock at any time, then you have to make the code thread-saf...
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.