what is Thread?
Answers were Sorted based on User's Feedback
Answer / surya simhadri
Thread is an independent flow of execution with in a
process. A process can have any number of threads.
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / harika
Thread is a block of code which is executed concurrently
independent of other threads with in a process.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / tulasi prasad
Thread is a sequential flow execution, that it has one
entry point,one exit point, some sequence of steps in
betwwen start nd stop. Other wise u can say like this :
Thread is alight weight process, y because its havening
less over heads
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / ruchi
single process running at a time or current process is
thread.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / preeti halapnavar
Itz a small unit of execution or a light weight process.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / venkatachalapathy
Interrupts are necessary for handling time-critical
tasks, but there’s a large class of problems in
which you’re simply trying to partition the problem
into separately-running pieces so that the whole
program can be more responsive. Within a program,
these separately-running pieces are called threads
and the general concept is called multithreading. A
common example of multithreading is the user
interface. By using threads, a user can press a
button and get a quick response rather than being
forced to wait until the program finishes its
current task.
Ordinarily, threads are just a way to allocate the
time of a single processor.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the differences between c++ and java? Explain
Why are the objects immutable in java?
State one difference between a template class and class template.
What is percentage in java?
How many bits is a float?
Can long be null in java?
how can you take care of mutual exclusion using java threads? : Java thread
whether java is fully object oriented language or partially object oriented language
What is api in java?
What are the 4 versions of java?
explain the life cycle of thread?
10 Answers CTS, NIIT, TCS,
2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?