Answer Posted / rahul
Feb 01, 1997 By Martin McCarthy
inSysAdmin
With the 2.0 kernel, most Linux users now have the
capability of using multi-threaded processes—well, what
does that mean?
Perhaps one of the reasons you use Linux is because it is a
multi-tasking operating system. In which case you are
probably well aware of the utility of being able to do more
than one thing at a time—perhaps compiling the utility
which will bring you fame and fortune whilst editing a
letter of resignation to your boss. So you might recognise
the utility of an individual process that can do more than
one thing at once.
When might this be a good idea? One application for multi-
threading is a program which relies on a large number of
very similar and independent mathematical operations—the
oft-quoted example of this is matrix multiplication. We
look at a simple example of a multi-threaded matrix
multiplier later in this article.
Another type of application which can benefit from multi-
threading is a server application. Whenever a client
attempts to connect to the server, a new thread can be
created to look after that client whilst the “watcher”
thread continues to wait for more clients to connect.
“But wait!” I hear you cry. “Lots of server applications
already work like that, but they simply fork another
process rather than starting another thread.”
“You're right...” I reply.
“Don't interrupt,” you continue. “This sounds like another
way of doing the same thing, but for no good reason other
than to say it's a `multi-threaded application' and so you
can bump up the price to those who like to be blinded by
science.”
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is the use of inner class?
hi am an engineering student and my next plan is for ms in either in us or australia i got my passport but i dont know anything bout visa can u give brief idea 1)How to get prepared for visa and 2)How to apply for top universities and 3)How to pay the fee and so on These all are basic questions plz give me a clear idea
Describe string intern() methodology
Does string isempty check for null?
Explain the polymorphism principle?
What is null data type?
What is parsing a string?
If an object reference is set to null, will the garbage collector immediately free the memory held by that object?
Name few java util classes introduced with java 8 ?
Can you extend singleton class?
Is null == null in java?
Explain creating threads by extending thread class ?
Is it possible for yielded thread to get chance for its execution again ?
Why we used break and continue statement in java?
What is the synonym of framework?