This post continues the Threads series. This time I will introduce the condition variable synchronization primitive. If you haven’t read the previous Thread posts I recommend you to start here before reading on. Condition variables allow defining dependencies between threads in a thread-safe manner without having to resort to polling. Polling is the practice of […]
Tag Archives: multi-threading
I was recently given a copy of the script used on our Jenkins server to deploy our Java code base. My boss wanted to get it working so devs could have a script to compile code on their local sandboxes, rather than wait for the next Jenkins run. Honestly, I think I spent more time […]
Thread is a light weight process. Threads are introduced to avoid the heavy context switch of processes. The way we have process schedulers there must be some mechanism for thread scheduler. Again based on whether the thread supported is user level thread (i.e. posix pthread lib in linux, used via a C program) or kernel […]
Interview preparation: Cheat sheet, and my first multi-threaded application (with timing of how long each version took)
Cheat sheet! Front: Back: My first multi-threaded application: Original single-threaded version This duplicates a directory structure, where the tab indentation in every text file is replaced with spaces. First, the single-threaded version (this is the same function as in my XBN-Java library, extracted so it has no dependencies on any other part of the library…aside […]
When the applications are becoming more and more complex as user expectations rise. We need to create a high speed responsive applications that use multiple threads.
If you have worked with WPF and used DataBinding you would know that if you want to update the UI when an object changes other than from the binding, you have to implement INotifyPropertyChanged Interface (Or use Dependency properties) and if you are working with a collection, then the best bet is to use an Observable collection […]