What is thread in simple meaning? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

What is thread in simple meaning?

1st Oct 2016, 7:23 PM
Muhammad Umar
Muhammad Umar - avatar
7 Answers
+ 8
when you run your program, it executes your code sequentially on one thread. lets say you want to add another thread to execute a seperate code block while your main thread is running. that way you can run two seperate code blocks at the same time. This is especially useful in chat applications. you need to be able to receive chat messages from other users, but you also need to be able to send a message without interruption.
1st Oct 2016, 7:50 PM
Mythos
+ 6
English is not my native language. Please excuse me regarding it. hypothesis 1) You are process (in simple language... CPU). hypothesis 2) Thread 1 is 'reading book'. Thread 2 is 'writing down some words'. You must do 'reading book' and 'writing down some words' simultaneously. How can you it? You read book short time. Then you write some words for a second. This is thread.
8th Nov 2016, 3:13 PM
Junsu Seo
Junsu Seo - avatar
+ 5
a program divided in to many part , each part called thread and program contain multiple threads..one by one thread are executed... thread concept use in networking..
12th Nov 2016, 2:19 AM
balram sao
balram sao - avatar
+ 3
A single sequence of execution within a program is thread. eg. multimple tabs on google chrome where each tab is akin to a thread and browser is a program.
4th Nov 2016, 4:14 PM
Viraj Singh
Viraj Singh - avatar
+ 2
Instead of excuting whole program at once , Theards are used. They split your program into different functions/parts for execution of program. Because of this you can do multi tasking or using 2 or more applications together.
1st Oct 2016, 8:27 PM
Vipra Chudasama
Vipra Chudasama - avatar
1st Oct 2016, 8:17 PM
Oliver Brown
Oliver Brown - avatar
+ 1
Thread is runable the simple interface.
19th Oct 2016, 9:07 AM
sandhyarani
sandhyarani - avatar