Results 1 to 3 of 3

Thread: Besil

  1. #1
    besil is offline Member
    Join Date
    Feb 2011
    Posts
    6
    Rep Power
    0

    Default Besil

    Hi there,
    Can I use a method (which is not run()) located at Thread class while Run method of this class is running ?
    to clearify my question if my run method is running in an endless loop, can I call other methods (of this thread object) in parallel from another object?
    Thanks
    Besil

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    14,050
    Blog Entries
    7
    Rep Power
    23

    Default Re: Besil

    Sure you can; the run() method doesn't block anything else in the class (but maybe other methods are synchronized, effectively blocking other synchronized methods called from another Thread).

    kind regards,

    Jos
    The only person who got everything done by Friday was Robinson Crusoe.

  3. #3
    besil is offline Member
    Join Date
    Feb 2011
    Posts
    6
    Rep Power
    0

    Default Re: Besil

    Hi JosAH,
    Thanks a lot for the question I implemented it already :-)
    Besil

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •