I have a little problem. I have 2 threads and each of them gets

a pointer to class A.
I mean:
class q1 extends Thread
class q2 extends Thread
class A
q1(this);
q2(this);
each of them gets a pointer to the same object.
The problem is somehow when q1 update one variable in A , q2 doesn't get the update.
Thanks,
Amir

The code you provided won't even compile. I know you were just trying to simpify it to show the heart of what's going on, but you went to far.
Trumpetinc is right--you're probably passing two different thises to q1 and q1.
Post more code, or just take that suggestion and see where it's ocurring.

Similar Messages

  • Apple come on added Russian Siri.. so much people have yours iphone and all of them want Russian SIRI ! it`s so big problem learn Siri Russian !?

    Apple come on added Russian Siri.. so much people have yours iphone and all of them want Russian SIRI ! it`s so big problem learn Siri Russian !?

    http://www.apple.com/feedback/iphone.html

  • I am unable to open a project that I have worked on and saved.  I get an error message that the file is damaged and cannot be opened.

    I am unable to open a project that I have worked on and saved.  I get an error message that the file is damaged and cannot be opened.

    Leslie Tanaka
    Travel and detours have kept me from following up sooner. If the problem that you wrote about still persists.....
    Let us go back over that Adobe document regarding troubleshooting damaged projects.
    3. Delete the Application Preferences
    Where you able to follow that path and delete the Adobe Premiere Elements Prefs file at the end of the path? And, after you did, did the saved/closed programs still refuse to open? If you could not carry out this procedure, what were the limiting factors that kept you from do
    7. Test to see if individual media files are causing the problem.
    That is an important one. How far did you get into following the instructions given in the document? If you could not complete the test, what was the major block that prevented you from doing so?
    I want to make sure that we have gone through everything in that document and ruled all factors there in or out. If it was a matter of you not understanding the instructions, I am hoping that the above will channel you questions to me so that I can clarify anything that you did not understand in the Adobe document instructions.
    I do not recall if I asked previously. Even if you cannot open all your saved/closed projects, can you still open a new project and save/close it? Maybe even reopen it?
    Please review and consider.
    Thank you.
    ATR

  • My computer keeps freezing on me every 15 min do i have a virus I was told when you have mozilla firefox you don't need virus protection is that true and how can I scan if I have a virus and now do i get rid of it?

    # Question
    My computer keeps freezing on me every 15 min do i have a virus I was told when you have mozilla firefox you don't need virus protection is that true and how can I scan if I have a virus and now do i get rid of it? edit

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    There are other things that need attention:
    Your above posted system details show outdated plugin(s) with known security and stability risks that you should update.
    # Shockwave Flash 10.0 r32
    # Next Generation Java Plug-in 1.6.0_21 for Mozilla browsers
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/
    Update the [[Java]] plugin to the latest version.
    *http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE)

  • I have windows xp and I can't get new version of itunes to install, help???

    I have Windows XP and I can't get new version of itunes to install on my computer, please help??????

    I keep getting the same error message about a program in the installer not finishing as expected.
    Let's try the following user tip with that one:
    "There is a problem with this Windows Installer package ..." error messages when installing iTunes for Windows

  • HT201209 I have itunes vouchers and each time i click redeem , I get error "we could not complete your itunes store request,  an unknown error occured 1202, try again later. I have tried this for 4 days running and get same error.

    have itunes vouchers and each time i click redeem , I get error "we could not complete your itunes store request,  an unknown error occured 1202, try again later. I have tried this for 4 days running and get same error.

    I have this same problem. It's like it is not Authorizing this Mac.
    What happens when you try to listen to a preview on the Music Store?
    Mine asks me to authorize again and gives me the error exactly as you said above.
    What happens when you try to view your account information (in Music Store, click on your account name in the top right corner)?
    Mine lets me authorize sucessfully and shows me my account information.
    I have emailed iTunes support about this and they replied with a generic answer about Deauthorizing and re-authorizing the computer.
    I even tried, to no avail, the tips here...
    http://discussions.apple.com/thread.jspa?threadID=471237&tstart=30
    If anybody reads all this and has any new info for us, please take the time to post it here!
    PowerMac G4   Mac OS X (10.4.6)  

  • When you delete an app from your homescreen it is still in the cloud, does that mean you still have the app, and how do you get it back on to the home screen

    When you delete an app from your homescreen it is still in the cloud, does that mean you still have the app, and how do you get it back on to the home screen. new to ipad so do not know much. Anybody know.p

    As long as the app remains in the store then you can re-download it via the Purchased tab in the App Store app, or via the Purchased Link under Quick Links on the right-hand side of the iTunes store home page on your computer's iTunes : re-downloading.
    Similarly ibooks can be re-downloaded, and depending upon what country that you are in then music, films and tv shows may also be re-downloadable (if they remain available in the store).

  • HT3951 how do you stop a download of a movie if you dont have enough space and how do you get the money refunded to your account

    how do you stop a download of a movie if you dont have enough space and how do you get the money refunded to your account

    All sales are final the moment you click buy.
    Make space and download it

  • How do i reset my mac completely? I have parental controls and cant seem to get to time machine cause i bought the computer with parental controls on it and they did not have the password. How do i completely reset my macbook pro?

    how do i reset my mac completely? I have parental controls and cant seem to get to time machine cause i bought the computer with parental controls on it and they did not have the password. How do i completely reset my macbook pro?

    If you have a rescue email address (which is not the same thing as an alternate email address) on your account then the steps on this page will give you a reset link on your account : http://support.apple.com/kb/HT6170
    If you don't have a rescue email address (you won't be able to add one until you can answer your questions) then you will need to contact Support in your country to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps on this page to add a rescue email address for potential future use : http://support.apple.com/kb/HT5620
    Or, if it's available in your country, you could change to 2-step verification : http://support.apple.com/kb/HT5570

  • I have adobe cs6 and I can't get bridge or mini bridge open. All I get is "waiting for bridge." can anyone help?

    I have adobe cs6 and I can't get bridge or mini bridge open. All I get is "waiting for bridge." can anyone help?

    This tech doc should help. Simply try out each step one at a time until it works.
    Error: Waiting for Bridge | Mini Bridge panel
    Gene

  • I have an iphone5c and I want to get a ringtone without having to purchase one on itunes how do i do that??

    I have an Iphone5c and I want to get ringtones without having to purchase them on itunes because I dont have a credit/debit card. I was told to download music on my computer and put it in itunes and then connect my iphone. I did that and I got the music in my phone but it's just under music and I'm still not able to use it as a ringtone. I was then told to download a ringtone make app and then I can do it that way. So I did that but on the instructions on how to load the ringtone to my computer and then back on to my phone the option that it says I should have itsn't there. Does anyone have anymore ideas??

    Try this site - they are free
    http://www.zedge.net/

  • I recently changed my phone. Before I did the guy at the Verizon store said my photos were backed up in my photo stream. I have logged on and cannot locate them. Is their something I can do to recover them?

    I recently changed my phone. Before I did the guy at the Verizon store said my photos were backed up in my photo stream. I have logged on and cannot locate them. Is their something I can do to recover them?

    Photo Stream does not "backup" your photos, you have to do that yourself on iTunes, BUT if you have the iCloud app for your PC/Mac installed, your photos will be on there

  • I have an apple I phone and each time I get an email it notifies me how do I silence this?

    I have an Apple I phone and each time I get an email I get a notification how do I silence this?

    I think AnaMusic meant
    Settings > Notifications > Mail > Alert Sound > None

  • I have itunes allready and how do i get the 11.1

    I have itunes allready and how do i get the 11.1

    Hello Edgardo_Flores
    You may still have iTunes on your computer, but download the latest version and install it to get up to date.
    iTunes 11.1.2
    http://support.apple.com/kb/dl1614
    Regards,
    -Norm G.

  • How many symbolic accounts, I have to create and then assign them to res...

    Hi friends,
    I am in the BBP creation phase, I have created the list of wage types for my client, there are 41 wage types, now as far as posting to accounts is concerned, how many symbolic accounts, I have to create and then assign them to respective G/L accounts ?
    Please throw some practical light on this, I know all theory 
    Thanks
    Jay

    Hi Jay
    We wouldnt be able to tell you exactly how many symbolic accounts you may need to create for the 41 Wage Types as it is specific to your requirement.
    Check these links out: Symbolic Accounts..
    http://sappeers.wordpress.com/category/sap-fi-hr-integration/
    It might help you with a fair understanding of what you need to do.
    Example for linking wage types to symbolic accounts: basic pay wage type u20181000u2019 is linked to symbolic account u20188888u2019 (Salaries & wages)
    Hope this helped!

Maybe you are looking for

  • "Cannot be read from or written to"

    HELP!!!! My iPod can charge and everything, it plays fine. I have had it since Nov. 2006, and recently when i connect my ipod to my computer and try to sync it, it says "attempt to copy to Emily's ipo failed. Disk could not be read from or written to

  • Import and trust a self-signed CA certificate from the Terminal

    Hello there, i have a problem: I would like to import and trust a self-signed CA(root) certificate from the Terminal to the System.keychain. My request is to create a installation script to install the Cisco AnyConnect VPN Client and the needed certi

  • White flare/stripe on photos from direct light source

    I have a problem very similar to this https://talk.sonymobile.com/t5/Xperia-Z3-Z3-Dual/White-stripe-on-photos/td-p/909906 but i am not using flash. White stripe only shows when light is coming direct to camera from a light source like fluorecent lamp

  • Entering numbers on captivate 3

    When I run the project in assessment mode Captivate allows me to enter text and it will then move on to the next slide (using mouse clicks or shortcuts). However, when I do this with numbers it sticks and will not move forward. When i click back into

  • Disabled button fires an event ?!   :-O

    Hi, friends! I've never thought about the next issue: why desabled button can fire an et_Click event? I havn't no idea to check that! I thought before that enabled=false is the method to prevent et_Click event for that item, but... <b>Is it a bug or