Win a copy of Programming with Types this week in the Angular and TypeScript forum
or The Design of Web APIs in the Web Services forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Joe Ess
  • salvin francis

Main Thread + privacy stmt.

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

hi,,
how can one set the priority of the main thread,if it is possible 2 do so.
Another thing I'd like 2 ask is ,what are the privacy statemnt qustions.Do I need 2 prepare for it?If so ,how?
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I think we can set the priority of main thread using the currentThread() method.
i think the usage will be like this
Thread.currentThread().setPriority(4);
Hope that helps.
About ur second question i don;t have the lisghtest idea wat u are asking about.wat r privacy statements??

Take Care
Amit
------------------
 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey
ya there is somethin abt 2 privacy questions to be asked
in scjp exam .
even i want to know abt it .
can anyone whos given scjp throw some light on this???
regards
Kamal
 
Vikram Nm
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx Amit. U were right.
The funny thing is ,I had already used this same command elsewhere in the same program, it just didn't strike me ,that it could be used in main.
2 many late nights the past few days studying does this ,I guess.
Bout privacy stmts. there r 2 questions in SCJP bout privacy stmts ,I heard.
I guess it's something like "these questions should not be told 2 others" etc.etc.
Wud definitely like 2 know more from someone.
VIKRAM
 
Amitabh Yadav
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vikram ,
If u come to know more about something on this privacy statement do let me know or just put it on the forum or else mail me.
Its ok yaar for me night is when i can do everything smile no one to disturb.
Have a nice time
Amit
------------------
 
Ranch Hand
Posts: 1874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can do setPiority. That is o.k. but , the o.s is having their priorities. Thus , it is totally O.S. Dependent. Java's threading model has got 10 priorities. if o.s. has got 5 prorities. then 2 priorities of java threading model will mapped to one priority of o.s. so , behavoiur of setPriority() can not be gauranteed. for NT , you have diff. priority levels , solaris , you have diff. priority levels.
Correct me if I am wrong.
more infomation about this you can get in " Threading " Discussion Forum.
 
Ranch Hand
Posts: 3141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
There are two 'questions' at the beginning of the Sun Exam (the privacy questions you're hearing about). One of them asks you to agree not to reveal the questions to others. If you give a negative response to this question you cannot continue the exam ... the exam session will end and you will need to re-schedule.

Hope that helps.
------------------
Jane Griscti
Sun Certified Programmer for the Java� 2 Platform
 
You get good luck from rubbing the belly of a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!