Concurrency questions and answers
Threads, async/await, locks and parallel execution. Page 11 of 20.
Interview Questions practice on Codemia
Over 8,000 real interview questions from top companies, searchable by company and role.
Answers 601-660
- Difference between event queue and message queue
- Difference between Kafka async and Kafka sync acks=0?
- Difference between multitasking, multithreading and multiprocessing?
- Difference between Multithreading and Async program in c
- Difference between racearound condition and deadlock
- difference between standard's atomic bool and atomic flag
- Difference between Take/TryTake and Add/TryAdd on a Blocking Collection
- Difference between Task Callbacks and OnCompleted
- Difference between the TPL async/await Thread handling
- Difference between thenAccept and thenApply
- Difference between thread's context class loader and normal classloader
- Difference between user-level and kernel-supported threads?
- Difference between volatile and synchronized in Java
- Difference between volatile and synchronized in Java
- Difference between WAIT and BLOCKED thread states
- Difference between "wait()" vs "sleep()" in Java
- Difference between wait vs sleep in Java
- Differences between Multithreading and Async
- Different implementations of a method that returns a Task
- Different scenarios on distributed processing
- Differentiation between Synchronous Domain Events, Asynchronous Domain Events and Integration Events
- Discuss the main issues governing concurrency control in a large distributed database environment
- dispatch_after - GCD in Swift?
- dispatch_async from Grand Central Dispatch and stdasync from C11
- Dispatcher.CurrentDispatcher vs. Application.Current.Dispatcher
- Dispatcher.Invoke 'hangs' during asynchronous read in Windows Service
- Distributed database synchronization
- Distributed lock - Two nodes believing to have a token after process pause
- Distributed Lock - Using fencing token for preventing concurrent writes to a network file
- Distributed lock with TTL
- Distributed nodes to sync data without a single point of failure
- Distributed Systems - Events Consumption | Sync Problem
- Distributed Systems Keeping timestamp consistency between different nodes
- Django and celery on different servers and celery being able to send a callback to django once a task gets completed
- Django async with AppConfig.ready sync/async
- Django Celery Execute only one instance of a long-running process
- Django channels for asynchronous periodic tasks
- Do asynchronous operations in ASP.NET MVC use a thread from ThreadPool on .NET 4
- Do asynchronous operations in ASP.NET MVC use a thread from ThreadPool on .NET 4
- Do condition variables still need a mutex if you're changing the checked value atomically?
- Do I always have to await on an Async method of a disposable object instead of returning its Task?
- Do I have to acquire lock before calling condition_variable.notify_one?
- Do I have to use Pin when returning a boxed trait object from an async method?
- Do I need to be concerned with race conditions with asynchronous Javascript?
- Do I need to kill a thread written like this? Or will it automatically end?
- Do I need to synchronize a call to the interrupt method?
- Do Kubernetes liveness probes run in parallel with your application?
- Do promises resolve asynchronously or synchronously?
- Do sequence points prevent code reordering across critical section boundaries?
- Do spurious wakeups in Java actually happen?
- Do spurious wakeups in Java actually happen?
- Do the new C 5.0 'async' and 'await' keywords use multiple cores?
- Do threads have a distinct heap?
- Do threads share local variables?
- Do you have to call EndInvoke or define a callback for asynchronous method calls even if you don't have anything to do when it returns
- Does 2 phase locking need to keep the order of commands?
- Does a locked object stay locked if an exception occurs inside it?
- Does a locked object stay locked if an exception occurs inside it?
- Does a System.Timers.Timer elapse on a separate thread?
- Does an asynchronous task with no return need to finish before an ASP.NET request can end
.png&w=3840&q=75)
Free course
Beginner
7 lessons
2 hours
Tackling System Design Interview Problems
A short course that equips you with the skills to approach system design interviews methodically.
Start the free course