New course!
Every coder should learn
Generative AI!
Try a free lesson
Courses
Courses
Code Compiler
Code Compiler
Discuss
Get Pro
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
can we use two threads so that thread 1 prints a and thread 2 prints 2 alternately? output should be like this thread 1 a thread 2 b thread 1 a thread 2 b can we use wait() for this purpose?
java
threads
3 Votes
6 Answers
20th Jul 2016, 4:58 PM
sreeraj g
why C++ is not capable of threads ?
c++
4 Votes
4 Answers
14th Jul 2016, 9:50 AM
విఠల్ N
if our run() method is in the same class as our thread instance ....so.instead of writing something like Thread thread=new Thread(new myclass); ......would Thread thread =new Thread(this); suffice?
java
threads
0 Votes
2 Answers
2nd Jul 2016, 11:24 PM
Arsal Azam
never had a deal with threads so can't get the whole conception of it. Can any one provide some examples with comments?
java
threads
0 Votes
2 Answers
1st Jul 2016, 7:31 AM
Андрей Рощин
how to do a simple task in parallel
java
threads
0 Votes
3 Answers
24th Jun 2016, 11:03 PM
Rogério de Jesus
How to run runnable class every 1 sec?
java
threads
1 Vote
2 Answers
10th Apr 2016, 11:37 AM
Hemanth S
Can someone give a good example of the use of Threaded classes?
java
threads
2 Votes
2 Answers
16th Mar 2016, 7:20 PM
Vitaly Yudin
How to start new thread?
java
threads
0 Votes
3 Answers
9th Mar 2016, 4:45 PM
Ranveer mourya
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
...
6
7
Next >
Hot today
Invitation to join open-source project.
15 Votes
Does casting not adjust the pointer in c++
3 Votes
How to cast in python : 2
2 Votes
Bits
4 Votes
Why does my image tagname not work.
0 Votes
Want to know how to handle VISUAL STUDIO?
0 Votes
How can I make an hyperlink with a Sololearn project
2 Votes
Polyalphabetic Cipher
0 Votes
Why didn't I get it?
1 Votes
No connection message
0 Votes