Wait()/notify()/notifyAll() methods.?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 11 of 11

Thread: Wait()/notify()/notifyAll() methods.?

  1. #1
    Join Date
    Dec 2006
    Posts
    30

    Wait()/notify()/notifyAll() methods.?

    Q.) Why do we have wait()/notify()/notifyAll() methods in Objects class?













    Please answer the question.It will sharpen your skills and those solutions will help others too.

  2. #2
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    255
    Quote Originally Posted by radhika743
    Please answer the question.It will sharpen your skills and those solutions will help others too.
    Please find your own answers instead of making such dopey comments. Such questions are not going to help anyone and knowing the answer would not help you because you are not learning anything. Stop expecting spoon-feeding.
    Happiness is good health and a bad memory.

  3. #3
    Join Date
    Dec 2006
    Posts
    30
    Hello Mr.....don't discourage anybody.

    What wrong I have posted in this forum? tell me.

    if you know the answer,Post it. otherwise keep quite.

    This forum is for everybody.This is not your father forum.Mind It.

    I brought a question why? what ? when?

    If u know the answer participate in it .It will sharpen your skills and those solutions will help others too.

    Otherwise simple sit at Home.

    Mind it.Once again i warn you. Don't discourage anybody...anyday..anytime....

  4. #4
    Join Date
    Dec 2005
    Posts
    97
    um, quit being so disrespectful.
    what wrong have you done? you obviously have not tried to answer any of the questions you have posted yourself. if you simply used www.google.com many of your questions would be answered. for example the question in this thread
    http://www.google.com/search?hl=en&q...va&btnG=Search

  5. #5
    Join Date
    Dec 2006
    Posts
    30
    Hello Mr. u people are really disrespectful .

    And blaming me .

    this is not correct.

    did i asked u what is java? did i ask u what is "int"?

    I know how to serch on google.com.

    don't give useless ideas.

    if u know answer post it.

    if not keep quite.

    it's not your father forum.

  6. #6
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    255
    Quote Originally Posted by radhika743
    Hello Mr.....don't discourage anybody.

    What wrong I have posted in this forum? tell me.

    if you know the answer,Post it. otherwise keep quite.

    This forum is for everybody.This is not your father forum.Mind It.

    I brought a question why? what ? when?

    If u know the answer participate in it .It will sharpen your skills and those solutions will help others too.

    Otherwise simple sit at Home.

    Mind it.Once again i warn you. Don't discourage anybody...anyday..anytime....
    Radhika,

    You obviously have the incorrect attitude about posting questions. You are the one who feels it necessary to improve skills and hence you are posting here. We, on the other hand, know how to sharpen our skills without needing to post a one-liner question anywhere.

    I did not discourage anybody and neither did the other person. Your comments are silly if not offensive. You are merely trying to provoke others to reply your simple questions because you don't know the answer. If you want a real challenge, please post your answer of the question and get it verified from someone who knows better on the subject.

    Finally, you are nobody to comment on what others should do... whether they should sit at home or post anything here. Everyone has their independence and they are free to comment in any manner that they feel is appropriate. If you don't like, you are free to fight or shut up. But obviously, this kind of posting is not going to help you any further. If you can't take a simple suggestion about a line which you probably consider a highly intelligent way of tricking others into replying your lame questions, you should look elsewhere and Google is your friend because it wouldn't care for your comments or quality of questions.
    Happiness is good health and a bad memory.

  7. #7
    Join Date
    Dec 2006
    Posts
    30
    this is what i am aslo saying to you:

    If you don't like, you are free to shut up.

    If you don't like, you are free to shut up.

    If you don't like, you are free to shut up.

    If you don't like, you are free to shut up.

    If you don't like, you are free to shut up.

    It's not your father forum to give useless suggestions to me.....

    please shut up u r mouth....

  8. #8
    Join Date
    Feb 2007
    Posts
    4

    reply by arun

    hi radika , see why v are using thread in java just to control the execution of a program thats all and using multi threading v better do the controllation very effecitvely.


    if 2 threads are going to access a variable means they dont no who will go first to access that variable, in this place a conflict will occur (nothing a dead lock). the solution s wait notify ,notifyAll (Inter thread communications)
    or v can use sycnhronization concept to avoid dead lock


    by

    Arun
    Chennai
    MailId :eeearun@gmail.com

  9. #9
    Join Date
    Feb 2007
    Posts
    4
    wait() - to put a thread in sleep state
    notify() - to wake up single thread form sleep state
    notifyAll-to wake up all the sleeping threads

  10. #10
    Join Date
    Feb 2007
    Posts
    4
    hi friends i want to read a RTF FILe and store in it on a variable and i want to dislplay that file in a RICH TEXT EDITOR.

    i am doing this in java and jspso any one could reply me

    by
    arun

  11. #11
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    255
    Quote Originally Posted by radhika743
    this is what i am aslo saying to you:

    If you don't like, you are free to shut up.

    If you don't like, you are free to shut up.

    If you don't like, you are free to shut up.

    If you don't like, you are free to shut up.

    If you don't like, you are free to shut up.

    It's not your father forum to give useless suggestions to me.....

    please shut up u r mouth....
    If you can't read the documentation, you are free to post your stupidity and I am free to reply in any way I like. You are stupid, stupid and plain stupid if you think you can tell me or anyone to shut up. You are free to shut up yourself. This is not your home or playground to behave like an insolent kid or use some funny phrases like "father forum". That's another stupid line I hear from you and you are quite funny in my opinion. I shouldn't really stop you from posting. Go ahead and more more questions, seriously.
    Last edited by aniseed; 02-07-2007 at 01:52 PM.
    Happiness is good health and a bad memory.

Similar Threads

  1. Replies: 2
    Last Post: 10-13-2005, 12:16 PM
  2. Comparison methods
    By ericelysia1 in forum Java
    Replies: 34
    Last Post: 05-15-2005, 07:39 PM
  3. Too many methods problem
    By blp in forum Java
    Replies: 2
    Last Post: 05-03-2005, 06:52 AM
  4. How to model "virtual" attributes and methods in UML
    By Larry Hayashi in forum Architecture and Design
    Replies: 2
    Last Post: 05-01-2003, 12:33 PM
  5. Hiding methods from COM
    By Frank Oquendo in forum .NET
    Replies: 0
    Last Post: 07-24-2002, 02:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center