Skip to content

Refactored Codes

A software engineering website.

  • Interview Questions
  • Functional Programming
  • Concurrency
  • java.util.function
  • Data Structures
  • C Coding
  • Design Patterns
  • Spring Framework
  • Java
  • Operating System

Concurrency

Home ⁄ Concurrency

Thread Creation
Create Thread by extending Thread class in Java
Use anonymous class to extend Thread class in Java.

Implement Runnable Interface
Using a class to implement Runnable interface.
Using Lambda to implement Runnable Interface.
Using anonymous class to implement Runnable interface.

Thread Synchronization
Wait, notify and notifyall. Why notify is unpredictable and other points are cleared in this article.
Use Cyclibarrier In Java Programming Language

Thread Pools
Implement your own threadpool using modern java

Thread Priority
Why thread priority should not be used as base while designing multi-threaded applications

copyright 2018 - 2021