Dear All,
I am a new comer to threading so please bear with my potentially dumb question.
From what I have read in books the main use of threading is that tasks can be run in parallel and slow tasks won't hog the cpu.
But I can't think of practical scenarios in business applications when tasks need to run in parallel.
Most of these books give examples like
word processor or printing which are really system applications.
When we talk about business application can somebody give examples of where they have used multithreading to do parallel tasking and how was this justified?
Few things I can imagine
1. Do multi tasking when there are multiple large running queries in your code that are not necessarily related and can be run in parallel
2. Do multi tasking when interfacing with external systems
But if you are not going outside the "boundaries of a
java program" are there valid reasons to do multitasking?
THanks