This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

control over main thread

 
Pawar Santoshkumar
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we get control over main thread in Java Program.
If i want to control the execution of main thread.
How i can achieve it.
Please tell me with some sort of code.
 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This question makes no sense.

You already have very similar control over the main thread as any other thread. You can't make the main thread a daemon, because that only works before a thread is started, and the main thread is already running when you get your first chance to work with it.

What are you actually wanting to do to the main thread?
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't understand the question - please elaborate.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!