CONCLUSION (Multi-Threading)
CONCLUSION (Multi-Threading)
During making of the project we came across many Pros and Cons that we’ll be
discussing in this section of our report. Also, we’ll suggest some possible
improvements that can be further implemented. At the end we’ll put up some
Review Questions that would help in proper analysis of the Project.
Major points that needs to be concluded at the end of our project making process:
Disadvantages:
Multithreading does not only provide you with benefits, it has its disadvantages
too. Here we some common disadvantages:
There are many cases which make your source code not thread-safe,
including static variables, static function, and singleton class, to name a few.
If all threads run same time, they will use the same static variables or
function, and this thread will get the data of another thread.
Three ways to make an object thread-safe are:
The deadlock happens when one thread is waiting for the resource of
other thread, but the other thread still waiting for the resource which
keep by the first thread.
To ignore the deadlock, we have to ensure that: