Can i make Thread safe without using synchronised keyword in java

Hi all,
please tell me code and concept that we can make Thread safe without using synchronised keyword in java programming.
regards
Mohan kumar

There's a series of new features in Java 5.0 (JDK 1.5.0) to address things like concurrency.
See: http://java.sun.com/j2se/1.5.0/docs/guide/concurrency/overview.html
-Alexis

Similar Messages

  • How can I make local calls without using a country code when it's in my Contacts?

    The phone numbers in my Contacts all contain country codes because I do a lot of travelling.
    An example of this might be:
    +1 (229) 123-4567
    +44 (0)12 345 6789
    +31 (0)10 2345 6789
    I have an unlocked phone so when I travel, I usually pick up a local SIM and use that to make calls.
    The problem I have is that when I am abroad and select a phone number from my contact list it doesn' work. For example, if I select a contact with the number:
    +31 (0)10 2345 6789
    A voice-recording comes on saying that the number I had dialed was incorrect.
    But when I dial the number manually:
    010 2345 6789
    It works.
    In the US I do not have this problem because for some reason, the phone knows whether the +1 is needed or not. I'm sure if it uses it at all when you're in the US. When I dial internationally from within the US, the number dialing works fine.
    So this problem only occurs when I'm dialing locally in the country I'm in while travelling outside the US.
    Anyone have any idea of why this is happening and more importantly, what I need to do to fix this? I would hate to have go and change all my contact numbers and get rid of the country codes. If I ever have to call those numbers internationally, I'll need to manually add the country code back in.
    Very annoying!
    Advice anyone?

    If you include a country number, you have to drop the initial 0 from the area code. eg +31 10 2345 6789 instead of +31 (0)10 2345 6789

  • HT5085 so one song can be only up to 200mb , most of my music consists of continuous mixes that are up to 2 hrs long  I'm assuming none of those would be available on cloud  how can I make them available without using phone memory

    does a two hr continuous mix count as one song and will it even be uploaded to icloud?

    does a two hr continuous mix count as one song and will it even be uploaded to icloud?

  • How can I start windows 8 without useing my password

    how can I start windows 8 without useing my password

    Hi,
    Review the information posted in this thread.
    HP DV9700, t9300, Nvidia 8600, 4GB, Crucial C300 128GB SSD
    HP Photosmart Premium C309G, HP Photosmart 6520
    HP Touchpad, HP Chromebook 11
    Custom i7-4770k,Z-87, 8GB, Vertex 3 SSD, Samsung EVO SSD, Corsair HX650,GTX 760
    Custom i7-4790k,Z-97, 16GB, Vertex 3 SSD, Plextor M.2 SSD, Samsung EVO SSD, Corsair HX650, GTX 660TI
    Windows 7/8 UEFI/Legacy mode, MBR/GPT

  • I am about to buy spice fire one that runs through firefox operating system. So my question is that can I make a voice call using skype through this device ?

    hie myself Paras from India
    I am about to buy spice fire one that runs through firefox operating system. So my question is that can I make a voice call using skype through this device ?
    please mail me your answer at [email protected]
    edited email address as per the [https://support.mozilla.org/en-US/kb/forum-rules-and-guidelines Forum rules and guidelines]. You should get email notifications of replies to this thread.

    With firefox OS 2.0 and above you can use appear.in to make video and audio calls via webrtc

  • HT204053 can i make two apple id using same credit card?

    can i make two apple id using same credit card?

    You can create an iTune and App Store account without credit card details
    1. Sign out of current Apple ID if you are sign-in to one (important)
    2. Go to App Store and select a free app
    3. Tap INSTALL APP
    4. Create New Apple ID
    5. Confirm Your Country
    6. Agree with Terms and Conditions
    7. Fill in your Apple ID and Password (you must create a new Apple ID; don't use your old Apple ID)
    8. Create and answer your secret question
    9. Select NONE for Payment Method
    10. Fill in Billing Address
    11. Submit application for new Apple ID
    12. Wait for verification email
    13. When email arrive, verify your account
    14. Start downloading your free apps

  • I want to download an audiobook, but my daughter has a giftcard credit on the account. How can I download my audiobook without using the money from her giftcard?

    I want to download an audiobook, but my daughter has a gift card on the account.  How can I download my audiobook without using the money from her gift card?

    go directly to your ibook app. and you're going to find it. it's only with ibooks app.
    best
    Olivier
    <Edited by Host>

  • How can I reference the parent, without using _parent or _root?

    I cannot use the following in my ActionScript due to conflicts with the host application:
    _level0
    _root
    _parent references
    On a pop-up box I have a close button with an absolute reference:
    closeBtn.onRelease = function  () {
    unloadMovie("_level0.Page_1.holderBox");
    Is there another way to make this work without using _level0 or _parent?
    I've read that it is possible to use a global variable on the main timeline and ref that, but cannot get that to work.

    You may need to try a few different approaches (that's what I would be doing), but you may be able to just target the holder directly using the global variable, and not have to include the Page_1 reference with it....
    //frame 1:
    _global.mcVar = null;
    // later on...
    _level0.Page_1.imgholder.image0_0.boxS.onRelease = function() {
    createEmptyMovieClip("holderBox",getNextHighestDepth());
    holderBox.attachMovie("boxSound", "boxSound_mc", 0);
    _global.mcVar = holderBox;
    If that doesn't work, try moving it to after wherever holderBox gets added into Page_1 and include Page_1 in the assignment like I showed earlier.

  • Bought an ipad3 and I have no credit card..how can I make an application without credit card?

    I bought an ipad3 here in the Phil's and don't have credit card...how can I create an account without using credit card?

    How to Get Apps From the App Store Without a Credit Card
    http://ipadhelp.com/ipad-help/how-to-get-free-apps-from-the-app-store-without-a- credit-card/
     Cheers, Tom

  • How can i make a signature by using lightroom? , is it possible?

    how can i make a signature by using lightroom? , is it possible?

    To can create a text identity plate in LR but to create a graphical version
    requires Photoshop

  • Can i make a video and use an external mixer for the sound?

    can i make a video and use an external mixer for the sound with my ipod touch?

    You need a special plug to use the iPod's mic in for the headphone jack. If you compare a headphone plug for a set that includes a mic and one that does not you can see that there is a difference.

  • Can we make a data connection using a WADL file?

    Can we make a data connection using a WADL file for REST web services?

    Can we make a data connection using a WADL file for REST web services?

  • Everything on all the webpages are so small, and only take up half the screen. How can I make it bigger, without changing the settings on my computer and by that change the size of everything on my computer.

    Everything on all the webpages are so small, and only take up half the screen. How can I make it bigger, without changing the settings on my computer and by that change the size of everything on my computer.

    The Firefox [https://support.mozilla.com/en-US/kb/Page+Zoom Page Zoom] feature does a domain by domain level of saving the users preferred zoom level settings, there is no default Page Zoom level setting in Firefox, as with some other browsers.
    Try the Default FullZoom Level extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/6965
    Or the NoSquint extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/2592/

  • HT4623 I have tried resetting an iPhone 3 and I am unable to activate and sync it. How can I reset the device without using a computer?

    I have tried resetting an iPhone 3 and I am unable to activate and sync it. How can I reset the device without using a computer?

    Hello anacc,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iOS: Unable to update or restore
    http://support.apple.com/kb/HT1808
    Connect your USB cable to your computer but not to the iPhone, iPad, or iPod touch until step 3.
    Turn off the device: Press and hold the Sleep/Wake button for a few seconds until the red slider appears, then slide the slider. Wait for the device to turn off.If you cannot turn off the device using the slider, press and hold the Sleep/Wake and Home buttons at the same time. When the device turns off, release the Sleep/Wake and Home buttons.
    While pressing and holding the Home button down, connect the USB cable to the iPhone, iPad, or iPod touch. The device should turn on.
    Continue holding the Home button until you see the Connect to iTunes screen. When this screen appears, you can release the Home button:
    Note: If the image of a battery appears, let the device charge for at least ten minutes to ensure that the battery has some charge, and then start with step 2 again. If you don't see the Connect to iTunes screen, try these steps 1 through 4 again.
    iTunes should automatically open and display the following message:
    "iTunes has detected an iPhone in recovery mode. You must restore this iPhone before it can be used with iTunes."Note: If iTunes not open after two minutes, please open iTunes yourself.
    Use iTunes to restore the device.
    Best of luck,
    Mario

  • Can i create apple id without use the credit card?

    can i create apple id without use the credit card?

    I'm getting the same thing. I created a new Apple ID via the Internet (appleid.apple.com) When I go to my device to try to use it, I have to review it first and in that process, I'm asked for a credit card or iTunes gift card. There is NO 'none' option.
    I work in a school district and we'd like employees to use their own apple ID for free apps which will allow them the freedom to explore apps without weighing down our tech dept with myriad requests for random apps. I deal with a broad demographic and many users are suspicious of putting personal credit card info on an Internet-based account.
    However, it appears they are locked out of the store unless they have some form of payment on file. Even if they enter a gift card, what happens when it's used up? Will they get locked out of the store if they don't have a balance?
    Anyone have a work around? If not ... APPLE Please update your support materials to explain this, or fix the bug.
    Thanks!

Maybe you are looking for

  • After installing Acrobat 9.4 I lost the choice to save or open a pdf file. How do I fix it?

    When using Acrobat 4.05 or 5.0 I was given a choice to open a pdf file or save the file. When I updated to Acrobat 9.4 I lost that option. It always opens the file with some different file name. If I disable the plug in Firefox does nothing. No save

  • Cannot initialize OpenDirectory server

    I have a Lion 10.7.5 server whose hard drive died.  When I revived the machine, I installed Lion on a new hard drive, restored from Time Machine.  Then I downloaded Lion Server again from the App Store, and reinstalled it.  I ran the Server Admin app

  • Add more Recipients to Email Notification.

    Hi All, Could you help me to add 2 Recipient in Email Notification in WSUS?

  • JAXM in JWSDP 1.2

    I can't find JAXM in JWSDP 1.2, yet it was there in 1.1. Is there a reason why it is no longer included in the JWSDP? There is no information about this on the website, and yet nowhere does it say that you even need JAXM anymore. What's the deal?

  • How to Force LWAPS to Join Secondary Controller

    I have an assortment of 1230, 1240, and 1250 AP's converted from autonomous to LWAP mode.  The switch that my primary 5508 WLC is connected to is being retired and I need to move the WLC to a different switch.  What is the best way to force all of th