Thread-safe code is code that will work even if many Threads are executing it simultaneously.
http://mindprod.com/jgloss/threadsafe.html
Related Posts:
- What is a mutex?
- What is a race condition?
- What are atomic operations for newbies?
- pthread_join() and pthread_exit()
- What’s the difference between deadlock and livelock?
- What is a “thread” (really)?
- What’s a Pthread?
- What is the difference between a process and a thread?
- What is the difference between concurrency and parallelism?
- How to use multiprocessing queue in Python?
- Multiprocessing vs Threading Python
- Android “Only the original thread that created a view hierarchy can touch its views.”
- Proper use of mutexes in Python
- What does threadsafe mean?
- How to avoid Not on FX application thread; currentThread = JavaFX Application Thread error?
- Java Wait for thread to finish
- Semaphore vs. Monitors – what’s the difference?
- What is a coroutine?
- Why PTHREAD_COND_INITIALIZER may be used to initialize a condition variable only when it is declared?
- Difference between volatile and synchronized in Java
- Difference between user-level and kernel-supported threads?
- software threads vs hardware threads
- What is an ORM, how does it work, and how should I use one? [closed]
- What is an idempotent operation?
- What is dependency injection?
- What and where are the stack and heap?
- What is the := operator?
- What is tail recursion?
- What’s the difference between passing by reference vs. passing by value?
- What is a callback function?
- What is the difference between lock, mutex and semaphore?
- What is the difference between lock, mutex and semaphore?
- Python time.sleep() vs event.wait()
- Difference between masm32 and masm?
- What is ADT? (Abstract Data Type)
- What is the maximum number of weekdays in a year? How would you code it?
- Undefined reference to pthread_create in Linux
- IOException: The process cannot access the file ‘file path’ because it is being used by another process
- What is duck typing?
- Mutex example / tutorial? [closed]
- “Parameter” vs “Argument”
- What is a database transaction?
- What’s the difference between a method and a function?
- What are bitwise shift (bit-shift) operators and how do they work?
- What is the difference between a deep copy and a shallow copy?
- What is the difference between statically typed and dynamically typed languages?
- What is stability in sorting algorithms and why is it important?
- What is an “internal error” and how do I fix it?
- How Does Modulus Divison Work
- Compiled vs. Interpreted Languages
- Array versus linked-list
- What is the difference between syntax and semantics in programming languages?
- What exactly is std::atomic?
- What exactly is GUID? Why and where I should use it?
- What languages are Windows, Mac OS X and Linux written in?
- C++ terminate called without an active exception
- Thread pooling in C++11
- What’s the difference between the message passing and shared memory concurrency models?
- What is an invariant?
- Prefer composition over inheritance?
- No enclosing instance of type is accessible.
- What are sessions? How do they work?
- Is there a concurrent List in Java’s JDK?
- Timeout on a function call
- Collection was modified; enumeration operation may not execute
- Cross-thread operation not valid: Control accessed from a thread other than the thread it was created on
- what does “nulled script” mean?
- The calling thread cannot access this object because a different thread owns it
- What is tail call optimization?
- What does java.lang.Thread.interrupt() do?
- pthread sleep linux
- What is the difference between a map and a dictionary?
- Is there any way to kill a Thread?
- Why does PyQt crashes without information? (exit code 0xC0000409)
- Why does PyQt crashes without information? (exit code 0xC0000409)
- PyQt is thread-safe to the same extent that Qt is thread-safe. The Qt docs will tell you which parts of their API are guaranteed to be so, and under what circumstances.
- Setting std=c99 flag in GCC
- How to pause / sleep thread or process in Android?
- local variables referenced from an inner class must be final or effectively final
- Why doesn’t JavaScript support multithreading?
- What is a good Hash Function?
- Why does cache locality matter for array performance?
- java.lang.IllegalMonitorStateException: object not locked by thread before wait()?
- WSACancelBlockingCall exception
- The application may be doing too much work on its main thread
- Task vs Thread differences
- How can I wait for a thread to finish with .NET?
- OpenMP set_num_threads() is not working
- How to “wait” a Thread in Android
- Inheritance vs. Aggregation [closed]
- What does ‘foo’ really mean? [closed]
- When should you use multithreading? And would multi threading be beneficial if the different threads execute mutually independent tasks?
- Create your own MD5 collisions
- What is the difference between bucket sort and radix sort?
- Difference between volatile and synchronized in Java
- What is the best regular expression to check if a string is a valid URL?
- Finding all possible combinations of numbers to reach a given sum
- Can I get Unix’s pthread.h to compile in Windows?
- Why is Verilog not considered a programming language?
- Converting EBNF to BNF