From the course: Java EE: Concurrency and Multithreading

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Limitations of using basic APIs

Limitations of using basic APIs

From the course: Java EE: Concurrency and Multithreading

Start my 1-month free trial

Limitations of using basic APIs

- [Narrator] Now that we have understood the thread and the runnable APIs let us understand the limitations that come along with it. The thread or runnable APIs are sufficient for low-level and basic tasks. And don't forget, as a developer, you have to create the instances of the threads and start them off. So as a developer you are responsible for creating and managing the threads in the system or the application. All of this logic of creation and management of threads is in addition to the business logic of the application that you anyway are supposed to code. Now, the multi-threading capability offers you a chance to utilize the cores of the CPU effectively. However, in order to support this completely we also need to write an application with solid parallelism logic. And there are a lot of factors that you need to take into consideration when you actually write out such logic. For example, what are the jobs that should be executed by threads? When is a thread supposed to start its…

Contents