All I need is help....have a look and make me happy

I'm writing a program which uses java.util.Timer. Check this code:
public class SomeTask extends TimerTask
    public void run()
         notifyAll() ;
} // end of class
public class SomeScheduler extends Timer
     public SomeScheduler()
          scheduleAtFixedRate( new SomeTask(), 0, 50 ) ;
} // end of class
public class SomeClass
     SomeClass() {}
     public void someMethod()
          while( true )
               // do some operations, when finished wait for scheduler notify
               try
                   wait() ;
               catch( InterruptedException e ) {}
} // end of classNow I know this does not work (monitor), but does anyone get the idea of what I'm trying to do? How can I make this work? This way I could 'synchronize' a oouple of threads. Or if you have any other suggestions I'll be more than willing to listen.
Cheers

Here's a few hints:
1) wait() and notifyAll() require you to "own the monitor". This means you must synchronize on the object you are waiting or notifying, before calling these methods.
2) In order for notifyAll() to signal a thread which has wait()'ed, these methods must be invoked on the SAME object. For example:
Object o = new Object();
synchronized (o) {
  o.wait();
// in another thread:
synchronized (o) {
  o.notifyAll();
}

Similar Messages

  • HT1414 omg phone frozen during sync, will not turn back on and itunes wants me to restore but unsure if all my precious photos etc have been saved and if so where they are?? I cannot turn phone back on its frozen with itunes icon picture on screen!! help

    omg phone frozen during sync, will not turn back on and itunes wants me to restore but unsure if all my precious photos etc have been saved and if so where they are?? I cannot turn phone back on its frozen with itunes icon picture on screen!! help

    Once the Device is asking to be Restored with iTunes... it is too late to save anything...
    To minimise loss... Connect to iTunes on the computer you Usually Sync with and Restore from the most recent Backup...
    http://support.apple.com/kb/HT1414
    Restore from Backup
    http://support.apple.com/kb/ht1766

  • I have recently updated my macs software then been onto Photo Booth and realised that all of my pictures/videos have been deleted and are not in iPhoto? Im not sure where they have all gone?

    PLEASE HELP
    I have recently updated my macs software then been onto Photo Booth and realised that all of my pictures/videos have been deleted and are not in iPhoto? Im not sure where they have all gone?

    Photobooth and iPhoto are two quite different apps with no connection between them. I'd try the Using Mac OS X forum for whatever version of the OS you have.

  • Java is designed to have a look and feel equivalent to????

    Java is a programming language designed to have a look and feel equivalent to:
    a. VB
    b. C++
    c. Cobol
    d. NotesScript
    Cheers!

    If you mean look and feel from a language perspective, Java was heavily influenced by C++.
    Since this is a multiple choice question quoted verbatim from either a textbook or your homework, I assume that you aren't really interested in any more information than that.

  • Suddenly all of my Office-programs have stopped working and will not launch on my MacBook. Could anyone give an amateur from Norway a hint of what may cause the problem? And I can not find the installation-disc for Office...Super! :)

    Suddenly all of my Office-programs have stopped working and will not launch on my MacBook. They were all already installed when I bought the computer. Could anyone give an amateur from Norway a hint of what may cause the problem? (And I can not find the installation-disc for the Office Programs...Super!)

    Have you contacted Microsoft support - http://www.microsoft.com/mac/support ? 

  • How can I change the insert SWF File, I need to add a few things and make it better?

    How can I change the insert SWF File, I need to add a few things and make it better? Is there an option inside of the dreamweaver menu that I am not looking at. It would make it easier on me if I changed some things around and didn't have to do it all myself each time I used it. Just incase you was needing to remember what swf flash was, It is not a swf video either.
      <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="640" height="480">
        <param name="movie" value="Sonic Kaboom.swf">
        <param name="quality" value="high">
        <param name="wmode" value="opaque">
        <param name="swfversion" value="9.0.115.0">
        <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
        <param name="expressinstall" value="../Scripts/expressInstall.swf">
        <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
        <!--[if !IE]>-->
        <object type="application/x-shockwave-flash" data="Sonic Kaboom.swf" width="640" height="480">
          <!--<![endif]-->
          <param name="quality" value="high">
          <param name="wmode" value="opaque">
          <param name="swfversion" value="9.0.115.0">
          <param name="expressinstall" value="../Scripts/expressInstall.swf">
          <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
          <div>
            <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
            <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
          </div>
          <!--[if !IE]>-->
        </object>
        <!--<![endif]-->
      </object>
    </div>

    If I understand correctly, Sonic Kaboom.swf needs to be edited in a separate Flash authoring program and then reinserted into your HTML document. 
    As Murray said, Flash is dead.  Nobody uses it anymore.   We use HTML5, CSS3 and JavaScript animations which have universal support from Smartphones, Tablets and other web devices that can't support Flash.   Look at Edge Animate.
    HTML animation | Download free Adobe Edge Animate CC trial
    Nancy O.

  • Hello I have a few questions and I need some help with my iTunes and  iPod

    Hello iTunes people.
    I have a little problem with my iTunes. I actually almost know nothing about iTunes really. But I have had a 80 gig ipod .. ummm I think it's a iPod classic maybe. A long time ago I just downloaded iTunes. I think one of my tech friends already had put the program onto my PC so I did not even have to download it. Anyways I put my life's collection of mp3's onto iTunes and then syncs it with my iPod and it worked great. Here is my problem. I just recently bought a MONSTER PC. I have lovingly named it " ED209 " I downloaded iTunes for it and I have the most up to date version.8.1.1 is the most current version correct? Ok well here is my problem. What I want to do is I want to put everything that is currently on my iPod ONTO the iTunes library. I DO NOT want to import anything from the library or playlist or whatever you call it ONTO the iPod because there is nothing in the library. Now this is were its gets weird and possibly silly. A person I was chatting with on Facebook sort of made fun of me because she was like " Dude! Just push " Sync " But the reason I am paranoid is because THIS is the message I get....
    " The iPod " Aaron's iPod " is synced with another iTunes library. Do you want to erase this ipod and sync with this iTunes library? "
    HOLY COW!! That girl on Facebook was making fun of me but READ THAT. That exactly says ERASE the "iPod" and Sync with THIS library " It does not say put what is ON the iPod into THIS Library. It says it the other way around. Clear as day it says it will ERASE the " Ipod " it does not say " Fill the library with whats on your iPod "
    Do I all of a sudden not understand English or something???? I know how to freaking read and from what it says is sounds a 100 percent like " we will ERASE youe iPod and put everything from this playist or library onto your iPiod" But there is NOTHING in my library? Am I mentally challenged or what?
    I hope someone can help me here and I have another request. Could someone just tell me all the cool things I can do with iTunes and my iPod? I am trying to read the help files and the FAQ and whatever else Apple provides you with but it has SO MUCH crap that looks usless. I find myself reading a whole paragraph about some simple little section of s section of a section of a feature! Know what I mean. Someone give me the long and short of the neat things I can do with this stuff. I have windows Vista with a wicked computer that has like 6 gigs of ram and m iPod is a 80 GB Classic
    help !!
    PROTEUS

    *What I want to do is I want to put everything that is currently on my iPod ONTO the iTunes library.*
    1). Connect your iPod to your computer. When you get the message that it is linked to a different library and asking if you want to link to this one and replace all your songs etc, press "Cancel". Pressing "Erase and Sync" will irretrievably remove all the songs from your iPod.
    2). When your iPod appears in the iTunes source list change the update setting to manual, that will let you continue to use your iPod without the risk of accidentally erasing it. Check the "manually manage music and videos" box in Summary then press the Apply button. Also when using most of the utilities listed below your iPod needs to be enabled for disc use, changing to manual update will do this by default: Managing content manually on iPod and iPhone
    3). Once you are connected and your iPod is safely in manual mode there are a few things you can do to restore your iTunes from the iPod. iTunes will only let you copy your purchases directly from an iPod to the computer, you'll find details in this article: Copying iTunes Store purchases from your iPod or iPhone to a computer
    For everything else (music from CDs, other downloads and including iTunes purchases) there are a number of third party utilities that you can use to retrieve the music files and playlists from your iPod. You'll find that they have varying degrees of functionality and some will transfer movies, videos, photos, podcasts and games as well. You can read reviews and comparisons of some of them here:
    Wired News - Rescue Your Stranded Tunes
    Comparison of iPod managers
    A selection of iPod to iTunes utilities:
    TuneJack Windows Only (iPhone and iPod Touch compatible)
    SharePod Windows Only (iPhone and iPod Touch compatible)
    iPod2PC Windows Only
    iDump Windows Only
    YamiPod Mac and Windows
    iPod Music Liberator Mac & Windows
    Floola Mac & Windows
    iPodRip Mac & Windows (iPhone and iPod Touch compatible)
    iPod Music Liberator Mac & Windows (iPhone and iPod Touch compatible)
    Music Rescue Mac & Windows (iPhone and iPod Touch compatible)
    iGadget Mac & Windows (iPhone and iPod Touch compatible)
    iRepo Mac & Windows (iPhone and iPod Touch compatible)
    iPod Access Mac & Windows (iPhone and iPod Touch compatible)
    TouchCopy Mac & Windows (iPhone and iPod Touch compatible)
    There's also a manual method of copying songs from your iPod to a Mac or PC. The procedure is a bit involved and won't recover playlists but if you're interested it's available on page 2 at this link: Copying Content from your iPod to your Computer - The Definitive Guide
    4). Whichever of these retrieval methods you choose, keep your iPod in manual mode until you have reloaded your iTunes and you are happy with your playlists etc then it will be safe to return it auto-sync.
    5). I would also advise that you get yourself an external hard drive and back your stuff up, relying on an iPod as your sole backup is not a good idea and external drives are comparatively inexpensive these days, you can get loads of storage for a reasonable outlay: Back up your iTunes library by copying to an external hard drive

  • Error ITMS-4151 unsupported file type "epub" for publication type texbook at Book : I can't upload my ebook. All I need is help, is help...

    question : I need some help to upload a new ebook; tanks  jean-pierre marson

    It may help others to advise you  ..IF you give more information.
    Is  your eBook made in iBA and do you have a free books or paid books account?
    I am not familiar with Textbooks - which I understand are apps rather ebooks, if so it seems you are trying to submit the wrong media as Tom already advised.

  • Please help have iphone 3gs and apple lap top wont accept new itunes do i need to update my laptop it is a 10.4 and how help

    Please can you help have i phone 3GS and having problems conecting to lap top have an apple laptop 10.4 problems with downloading new itunes

    HI,
    Go here and ask your question about upgrading 10.4 OS.
    https://discussions.apple.com/community/mac_os/mac_os_x_v10.4_tiger?categoryID=1 77
    Include details of which computer you have and the specifications.
    Good luck,
    Alan

  • Need some help using CSS Rules and Positioning Image Place Holders

    Evening all,
    I need to get this done by tomorrow so some speedy help would be very much appreicated!
    I'm doing a website for an IT company, and as you may/may not know, support for XP and Office 2003 is dropped tomorrow - they want a button in the header of their site which basically says 'click here for upgrade advice' and when you click on it you're taken to a page telling you the benefits of upgrading. They want it to look like the mock up below:
    I've had a right old job even getting the button (it's in PNG format) to go above the BrownTech logo. I inserted a placeholder, linked it to the PNG file, and then I made a custom CSS rule/class called '.header_fltrt' to put the image in and position it in that place, directly above the BrownTech logo.
    To get the upgrade button in the desired position, here are the 'Box' CSS properties I used for the .header_fltrt CSS rule.
    It's worth noting that the dimensions for the header itself are 960x235px, and the BrownTech logo is the background image for the header class (and is 960x235 in dimensions).
    The problem I am having is that when I view the page in Design Mode in Dreamweaver, it looks fine, but when I view it in Live View or in a web browser, it looks like this:
    As you can see, the upgrade button is not even visible!
    Furthermore, when I go back into design mode on Dw, when I click on the upgrade button, I don't get any placeholder properties like I do when I click on green logo in the top left (which by the way is just a link back to the index page).
    I'm not sure why this is but I cannot find any way to resolve it. I've even tried putting the BrownTech logo on a transparent background thinking that the block white background may be covering the upgrade button, but that's not the case.
    Sorry if I haven't explained it very clearly. Hopefully you can see my problem.
    Any help in etting the upgrade button to preview in the correct place would be very much appreciated!

    Try this in place of what you have now.
    .header {
        background-color: #FFFFFF;
        min-height: 335px; /**adjust as needed**/
        width: 960px;
        background: url(../assets/banner2.png) no-repeat;
    .header_fltrt {
    /**no floats or positioning required**/
        width: 552px;
    Nancy O.

  • Updated mac to maverick and all my files from pages have greyed out and won't open ?

    I use pages and also save a PDF when ive typed a document I updated to Maverick and all my pages and pdfs from before I updated have greyed out and I cannot open them help please

    thank you Eric, but any of those solutions works because on Maverick the options on itunes: "Tap on the Info pane, then De-select the option to Sync Notes" is not longer available.   Also, I have tried all those steps about de-select sync notes on iphone and mac.  I need a solution that consider working on Maverick.

  • I need your help, I also like to make friends

    In hangzhou, zhejiang province, I come from China, I was able to visit here because of my cell phone was locked.I need a SIM unlocked, I'm not sure I'm youdao translation is correct, but I am a very sincere need your help.
    What happened is that one of my friends in the United States from the United States back to a local on the iphone.After I received very happy, but it has a lock.My mood fell the bottom, after a period of time trying to find the answer I will come to verizon's official website, to look not to understand a foreign language Chinese friends, this is very difficult.
    I want to see this post you the friend can help me, can see the official friends??
    I can't to the United States, my friend is no longer the United States for the time being.So can only rely on you.I don't have your official phone CARDS, even if have also used in China.How could you let me sad!!!!!!!!!!!
    For the Chinese New Year is coming soon, in China is equivalent to you Christmas.I hope my New Year's to receive this gift.
    Private info removed as required by the Terms of Service.
    Message was edited by: Admin Moderator

    Sorry I don't speak or read Chinese but you cannot unlock the iPhone connected to Verizon Wireless unless its active on verizon. After a certain number of months the device can then be unlocked by verizon to use in China.
    Have your friend in the USA activate the iPhone on their account then after awhile it can be unlocked.
    There has recently been an agreement for cell providers to unlock devices easier, and to do it withing a few days. However since it was not made as a rule of law, the providers will skirt around the requirement they agreed to. Very typical of cellular providers.
    Good Luck

  • In need of help to replicate something and then modify it

    I need to recreate an image document that is a bit complex and I need to get some direct feedback regarding how exactly to do this. I'm new to Photoshop. Even though I've watched many of the Photoshop training videos I still need further help for this project. I have a sample of what I need to recreate. Unfortunately what I am trying to replicate has already been grouped or flattened, otherwise it would be easy enough to simply replace and modify each layer as needed. Does this make sense? If a seasoned Photo-shopper is available to assist me briefly I'd be most grateful. I may be contacted at [email protected] Many thanks!

    Thank you dj. I thought I was on the Photoshop forum so thanks for alerting me:)

  • Need a help to create user and assign BP to it

    Hi,
    I have requirement to create Users (like SU01) in CRM and for that users need to create BP with role EMPLOYEE and assign BP to that USER.
    Can anybody please help on which Function Module I need to use to create user and assign BP to it.
    Thanks in advance..
    Sushant

    Hi,
    Many post post are there for your query in SDN search if my below shown link is not helpful.
    Hope the below will help you.
    Users Created ...
    Cheers!!
    VEnk@

  • Make one bitmap have same "look and feel" as another

    Hello community.
    First time I am coming across this problem for a client.
    He wants an old photograph (b/w, scanned) to be the "blueprint" for another one, which he just made with his digicam. The latter is of course quite different in lighting etc., but that's not what I am really worried about as I have the raw file so I can play around.
    But is there a reasonably quick way to have that new digicam image have the same "look and feel" of that old, scanned image? I cannot post the image I am talking about (copyright issue), but if I had to make a new digicam image have the same "look and feel" of, say, such a picutre - what would I have to do?
    Hints to simple techniques will do, because the pay for this job is close to lousy... :-(
    Thanks all.
    - creedless -
    equipped with a MacBook Pro and Photoshop CS4 Extended

    Download a "grunge" or "old photo" pic from stock xchange and put it on top of the photo in overlay or soft light mode. You can adjust the grunge layer with levels to make it a more neutral layer for blending. Use the dodge and burn tools to draw smudges on the photo, particularly lightening or darkening the edges of the photo. You can also use the blur brush to soften the image, except for around the face.
    See tutorials:
    http://www.adobe.com/designcenter/photoshop/articles/phs8kbfilmgrain.html
    http://photoshoptutorials.ws/photoshop-tutorials/photo-effects/natural-film-grain.html
    http://www.photoshoptalent.com/photoshop-tutorials/old-looking-photos.php
    http://www.photoshopessentials.com/photo-effects/old-photo/

Maybe you are looking for

  • Using a DAQ value in a location outside of the While Loop it is placed in

    I am writing a program that records the speed of a car and then is supposed repeat the action through the use of an actuator.  I was able to write the program to the point where I am saving the data into a .txt file and will be able to read it back o

  • SALES INVOICE & PURCHASE ORDER REPORTS

    HOW TO GET THE  SALES INVOICE (VBRK-VBELN) BY USING THE PURCHASE ORDER (EKPO - EBELN) & ALSO HOW DO WE GET THE       RSEG - BELNR & RSEG - XBLNR please dont use CAPS under any circumstances in this forum Edited by: Lakshmipathi on Sep 10, 2009 8:56 P

  • SQL Server 2012 64 bit - reading data from dbf (DBase 3/4/5 or VFoxPro) - solution and examples

    It took me quite a while to find a solution that will enable me to read dbf files from 64 bit SQL server, so i decided to create this guide for all of you guys searching for an answer. Download and install Access Database Engine 64 bit : http://www.m

  • Upgraded To Leopard, lost files & user settings?

    Trying to update from Panther to Leopard on 1.25 Ghz iMac, used the Archive & Install. It looked like a successful install until the very end, whereupon the warning "Installation Failed due to problem migrating user data, try again." Perhaps foolishl

  • Drop down choice to let us know what the email is about?

    If you go to  http://ellenmemorialhcc.businesscatalyst.com/contact-us.html  you will see a email us portion. What we are looking for is basically a heading that titles "I am interested in recieving information on:" and then we would like tohave a dro