Tag Archives: Multi-Thread

Java Multi Thread Basics 2

1. Singleton Design Pattern check null after get lock to avoid instantiate multiple times (other thread passed first null check and are waiting for the lock) 2. Producer and Consumer problem is not like Read and Write, it doesn’t allow … Continue reading

Posted in CS Research&Application, Uncategorized | Tagged , , | Leave a comment

Java Multi Thread Basics

1. Textbook questions (Summary – Divide – Summary) Process (application, program) vs Thread (share memory) Concurrency(progress at same time, some fast and others slow, single core) vs Parallelism (execute at same time, multi-core) Runnable (interface) vs Threads (class)   2. … Continue reading

Posted in CS Research&Application, Uncategorized | Tagged , | Leave a comment