concurrency 381

  1. When and how should I use a ThreadLocal variable?
  2. What is the difference between concurrency and parallelism?
  3. Collection was modified; enumeration operation may not execute
  4. What is a race condition?
  5. Is JavaScript guaranteed to be single-threaded?
  6. What's the difference between ConcurrentHashMap and Collections.synchronizedMap(Map)?
  7. Do you ever use the volatile keyword in Java?
  8. What is a mutex?
  9. NSOperation vs Grand Central Dispatch
  10. Is there an advantage to use a Synchronized Method instead of a Synchronized Block?
  11. Why there is no ConcurrentHashSet against ConcurrentHashMap
  12. What is a good pattern for using a Global Mutex in C#?
  13. How to wait for all threads to finish, using ExecutorService?
  14. Lock, mutex, semaphore… what's the difference?
  15. What is the difference between concurrent programming and parallel programming?
  16. How is Node.js inherently faster when it still relies on Threads internally?
  17. Is “Java Concurrency In Practice” still valid?
  18. Custom thread pool in Java 8 parallel stream
  19. What is meant by “thread-safe” code?
  20. What is a semaphore?
  21. Is AsyncTask really conceptually flawed or am I just missing something?
  22. Why use a ReentrantLock if one can use synchronized(this)?
  23. SET NOCOUNT ON usage
  24. Volatile Vs Static in java
  25. What is the Haskell response to Node.js?
  26. Why must wait() always be in synchronized block
  27. Why does this Java program terminate despite that apparently it shouldn't (and didn't)?
  28. How does LMAX's disruptor pattern work?
  29. multiprocessing.Pool: When to use apply, apply_async or map?
  30. What is the most frequent concurrency issue you've encountered in Java?
  31. What is the Swift equivalent to Objective-C's “@synchronized”?
  32. Volatile boolean vs AtomicBoolean
  33. Practical uses for AtomicInteger
  34. What is the fastest way to send 100,000 HTTP requests in Python?
  35. What's the status of multicore programming in Haskell?
  36. Is there a concurrent List in Java's JDK?
  37. What's the difference between Thread start() and Runnable run()
  38. Difference between Future and Promise
  39. Are non-synchronised static methods thread safe if they don't modify static class variables?
  40. Why is creating a Thread said to be expensive?
  41. iPhone - Grand Central Dispatch main thread
  42. Java concurrency: Countdown latch vs Cyclic barrier
  43. Which parallel sorting algorithm has the best average case performance?
  44. Good example of livelock?
  45. Is iterating ConcurrentHashMap values thread safe?
  46. Executors.newCachedThreadPool() versus Executors.newFixedThreadPool()
  47. Java volatile reference vs. AtomicReference
  48. When would you call java's thread.run() instead of thread.start()?
  49. Impossible to make a cached thread pool with a size limit?
  50. Is it safe to get values from a java.util.HashMap from multiple threads (no modification)?