Abstract
The motive behind the selection of this topic is the wide range of application and usage of threads in today’s technology. It’s become essential to cut back the time for execution of various processes. So, developing solutions to problems using threads helps us solve multiple tasks in a very time economical manner. To accomplish this, a deep understanding of the concept of multi-threading is crucial. Our motive is to get thorough knowledge concerning this concept to enable us to use this concept ourselves towards a real-life problem. We will be using this concept to solve the subsequent problem: A man needs to cross a river. He possesses a tiger, a goat and a basket containing grass. There is a ship on the river. The utmost capacity of the boat is to hold two entities at a time. The man has to cross the river with his tiger, goat and basket of grass. If he goes with the basket at the opposite side of the river the tiger can eat the goat, if he takes the tiger with him to the opposite side then the goat can eat the grass from the basket. Here processes require resources which can be made available once the other process gets completed, these condition results in deadlock. The problem is how to design a discipline of behaviour (a concurrent algorithm) to seek out the sequence of the four will cross the stream safely.
Cited by
1 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Producer-Consumer problem using Thread pool;2022 3rd International Conference for Emerging Technology (INCET);2022-05-27