Tag Archives: Multi-Thread

Web Basics

1. authentication: who you are authorization: what you can do cookie: more physical session: context (teaching – learning, lecturing) session cookie (bank login) persistent cookie (remember me option) token – certificate 2. multi-thread context thread thread pool blocking I/O single thread … Continue reading

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

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