Reading about threads. Where?

Hi!
I need to read up a bit about threads. I know the ideas behind them, but I need to know how to handle threads and write code for them in java. Does anyone have any tips about good tutorials or something?
Thanks.

Look out at
1. Java Tutorial (http://java.sun.com/docs/books/tutorial/essential/threads/definition.html)
(A must to begin with !! )
2. www.javaworld.com Articles (search on "Java Thread")
(Really nice !)
3. http://directory.google.com/Top/Computers/Programming/Threads/Java/
(Lots of stuffs!!)
4. There are many books available on Java Thread. Even Core Java Programming from Sun Press has chapter in Multithreading. Dedicated book on Java Thread Programming is also available for serious programmers. :)
Hope this helps.
Regards,
Rahul

Similar Messages

  • I need to transfer playlists from my old iphone into itunes so that I can then add them to my new iphone 6.  However, none of the playlists on my iphone appear when I connect to my macbook.  I have read other threads but have not found answer.  help!

    I am a group exercise instructor and rely heavily on my playlists.  My old phone is an iphone 4s and I just bought an Iphone 6.  I also have a macbook where I keep my itunes account, but I create all my playlists on my phone.  I need to transfer those playlists from my old iphone into itunes in my computer so that I can then add them to my new iphone 6.  However, none of the playlists on my iphone appear when I connect to my macbook.  I have read other threads where the suggestion was to attach the old phone to itunes, find the phone in itunes and click the little arrow to the left to show the playlists.  Then right click on the playlist and export it, saving it to the desktop, to then import it into itunes.  However, in my case, the playlists do not show up when the phone is connected to itunes.  I have clicked on the little arrow and all I get is "music", "purchased", etc., but none of my playlists.   I'm sure some years back I probably deleted something in my itunes library and now none of my playlists show.  Please help me.  I would hate to have to recreate all of my playlists.  Thank you!

    I know it sounds weird, and that is the reason I posted my question.  Because my case is not like all the ones I've found online and it's confusing.  I added a screen capture of my itunes with my old iphone (the one that houses my playlists) connected to it.
    My playlists "ARE"  in my iphone 4s.  They are still there even though they do not show up when I plug in to itunes in my computer. 
    When connecting my phone to itunes on my macbook, the playlists do not appear anywhere in itunes.  I have found my connected iphone icon, I have clicked on the arrow next to it and it does pull up the standard lists that come with the iphone/itunes:  Music, Movies, TV shows, books.  That's it! below that is "Genius" and below "Geniuns" is "PLAYLISTS"  but the only playlist of mine that shows there is one that I created several years back titled "90's music" and that one I created it on my computer, not my phone.  Under "90's music" there are also other standard playlists that itunes automatically adds.
    Does anyone else have this issue or know how to get around this.  I am starting to think that I am going to have to recreate these lists on my computer

  • Can Photoshop Elements version 13 handle raw files from Canon camera 7D mark 2? Where can I read about it on Adobe web site?

    Can Photoshop Elements version 13 handle raw files from Canon camera 7D mark 2?
    Where can I read about it on Adobe web site?
    I found an Adobe web site note that raw plug-in version 8.7 will support Canon 7D mark 2, but is not included in Elements version 11.

    Camera Raw plug-in | Supported cameras
    Camera Raw-compatible Adobe applications

  • Where can I go to read about the concept of set-up and use of Key Chain to automatically insert required passwords at internet sites?

    Where can I go to read about the concept and use of Key Chain to automatically insert required passwords at internet websites? I may or may not want to use Key Chain after I understand it.

    Key Chain basics

  • Where i can read about make extended panel for Photoshop cc 2014?

    where i can read about make extended panel for Photoshop cc 2014?

    It was experimental in CC first release its now supported in CC 2014 not experimental.
    Support for Windows touch devices
    New in this release of Photoshop CC
    Photoshop CC now supports Windows 8.1 touch devices like the Microsoft Surface Pro, so you can use pinch, zoom, pan, and rotate. 
    In Photoshop, two-finger touch gestures are used to control the location, rotation, and scaling of the Image > Canvas view. Users may alternate between touch view control and other interactions using the mouse or stylus, but touch may not be used simultaneously with other input. Touch control is convenient when painting on large touchscreen monitors, which are difficult to rotate physically, and on tablets to avoid constantly shifting the device.
    For more information, see Touch gestures.

  • I have read the thread about turning off dialpad sounds when calling a number. I used to always be able to do this on my 4S but not so since the latest software on the 5. Keyboard clicks are turned off and still have dialpad sound. I've NEVER had to mute.

    I have read the thread about turning off dialpad sounds when calling a number. I used to always be able to do this on my 4S but not so since the latest software on the 5. Keyboard clicks are turned off and still have dialpad sound. I've NEVER had to mute to dial before.

    I really do not think it is the iPad or your network connection. Other users have reported this very same issue. Try this and see if it works for you - it may not work - but it's easy to try - harmless - and it has worked in the past for others.
    Try signing out of your account and restart your iPad.
    Go to Settings>Store>Apple ID and tap the ID and sign out. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button. Go back to Settings>Store> Apple ID and sign in again.

  • I am running OS X version 10.7.5 on a Macbook Air.  I read in one thread where someone had an update that was higher than 10.7.5 but when I ask for updates, none are available. Is this the last update for OS X?

    I am running OS X version 10.7.5 on a Macbook Air.  I read in one thread where someone had an update that was higher than 10.7.5 but when I ask for updates, none are available. Is this the last update for OS X?

    Niel, thanks for your response.  I have been very wary of downloading Mavericks on this machine.  I don't feel it has the power to run it and I'm afraid it was slow it down terribly.  It was bought in late 2008.  It's fine for my purposes at this time…just holding on until I buy a new one.  I have the same problem others have with autofill not working, so I was trying to see if an update would help that situation.  Grace

  • 2.0 Issue that I haven't read about yet

    This is the lenghty email I just sent Apple:
    I like many others have been experiencing issues with the new 2.0 update for my ipod touch. the first issue is that my battery life has dropped signifigantly. if i use the touch for an hour it will be half way down, just reading articles, not using wifi at all. the other issue is that when i try to sync apps from itunes, some will fail but then when it is resynced they load fine. (i have a design issue with everytime you update apps the reorder them on your screen) the wifi is screwy, it will say "server not found" then when safari is rebooted it is fine. also it will randomly restart.
    Now all of these issues are HEAVILY DOCUMENTED on your support forums, one however I can't seem to find anything on, and i hope it is also just a flaw with 2.0 that will be resolved very soon....anyway, i like to charge my touch while it is off. in the past i would turn it off, plug it in and see the battery pop up on the screen. now with 2.0 when it is off and i plug it in (at the wall or pc) it will turn itself on. when i try to manually turn it off, i get zero indication of it still being charged. it is just a black screen.
    The point is which i hope you are well aware of by now is that hundreds of thousands of LOYAL apple fans that have apple tatoos and put apple stickers over the kenmore badge of their fridge and name all 3 of their kids Steve Jobs all because apple is known to be very realible and friendly for anything they touch (no pun intended) spent several hundred dollars on their equipment and money to update their touch to 2.0 all to not only have issues with the software, but even larger issues with support.
    I, being an executive for a fortune 500 company am the first to understand keeping issues as quite as possible, and i further understand software glitches with any large update. HOWEVER, i do see a big problem when A) apple has done nothing to address this issue, even on their owned and opperated forums and B)have all of you employees treating this issue as if it doesn't exsist and that it is the users fault. the worst part is when the company knows of the issue and all of the employees deny it. i recall when microsoft had xbox360 issues they did everything they could to fix them and lost millions in the process, meanwhile apple wants a customer on you very own forum to pay $30 to mail his or her touch in to you.
    This is just not what myself or anyone else expected from a company held in such high regard. please, address the problem, let your employees (especially the ones in the stores) know that this is an issue, and get a fixout immediatley.
    thank you for reading,
    regards,
    Mike
    so like the topic title states, i am having most of the issues that others are having (not as bad though) however i went to charge my touch tonight (because after an hour it was half dead). so i turned it off and when i plugged it in, it turned itself on! when i turn it back off while leaving it plugged in the batter picture that used to show up on the screen is not there, so i have no way of knowing if it is taking a charge.
    i haven't read about this issue yet and it worries me. it always used to show the battery meter on the screen when it was off and plugged in (and it never would turn on when plugged in)
    someone test and help, please.
    Message was edited by: knightriders3

    I use a Macbook with Windows XP in Bootcamp & Outlook. Since I upgraded Itunes and Ipod, my calendar and contacts will NOT sync. I have tried everything many times.
    My daughter uses a Macbook with Leopard and since she upgraded Itunes and Ipod, all of her music purchased from Itunes won't play. You can see it, you just can't play it. Her other music works fine.
    I am a software programmer. This is definitely a major software issue.
    I understand that it takes time to find and repair these software issues, BUT
    Apple needs to at least let us know that they are working on it.
    I'm sorry, without contacts and calendar functions that work, what is the point of trying to sell Mobile Me. From the threads, it sounds like it doesn't work either. What a sad joke.
    Apple - get your act together.

  • I bought my mac book pro 4 years ago and it is really slow now. I have downloaded Etrecheck after reading some threads on here and here are the results

    I got my MacBook Pro 4 years ago and its getting really slow.
    After reading dome threads on this site i downloaded Etrecheck and here are the results.
    Any help would be greatly appreciated.
    EtreCheck version: 2.1.8 (121)
    Report generated 21 March 2015 9:41:28 PM AEDT
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Click for support] links for help with non-Apple products.
    Click the [Click for details] links for more information about that line.
    Hardware Information: ℹ️
        MacBook Pro (15-inch, Mid 2010) (Technical Specifications)
        MacBook Pro - model: MacBookPro6,2
        1 2.4 GHz Intel Core i5 CPU: 2-core
        4 GB RAM
            BANK 0/DIMM0
                2 GB DDR3 1067 MHz ok
            BANK 1/DIMM0
                2 GB DDR3 1067 MHz ok
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
        Battery Health: Normal - Cycle count 814
    Video Information: ℹ️
        NVIDIA GeForce GT 330M - VRAM: 256 MB
            Color LCD 1440 x 900
            spdisplays_display_connector
        Intel HD Graphics - VRAM: 288 MB
            spdisplays_display_connector
    System Software: ℹ️
        Mac OS X 10.6.8 (10K549) - Time since boot: one day 2:7:40
    Disk Information: ℹ️
        TOSHIBA MK3255GSXF disk0 : (298.09 GB)
            - (disk0s1) <not mounted> : 210 MB
            Macintosh HD (disk0s2) / : 319.73 GB (150.44 GB free)
        MATSHITADVD-R   UJ-898
    USB Information: ℹ️
        Apple Inc. BRCM2070 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Internal Memory Card Reader
        Apple Inc. Apple Internal Keyboard / Trackpad
        Apple Computer, Inc. IR Receiver
        Apple Inc. Built-in iSight
    Configuration files: ℹ️
        /etc/hosts - Count: 31
    Kernel Extensions: ℹ️
            /Library/Application Support/MacKeeper/AntiVirus.app
        [not loaded]    com.zeobit.kext.AVKauth (2.3.3 - SDK 10.8) [Click for support]
        [not loaded]    com.zeobit.kext.Firewall (2.3.3 - SDK 10.8) [Click for support]
            /System/Library/Extensions
        [not loaded]    com.devguru.driver.SamsungComposite (1.2.63 - SDK 10.6) [Click for support]
        [not loaded]    com.leapfrog.codeless.kext (2) [Click for support]
        [not loaded]    com.leapfrog.driver.LfConnectDriver (1.11.1 - SDK 10.10) [Click for support]
        [not loaded]    com.wibu.codemeter.CmUSBMassStorage (1.0.7) [Click for support]
            /System/Library/Extensions/ssuddrv.kext/Contents/PlugIns
        [not loaded]    com.devguru.driver.SamsungACMControl (1.2.63 - SDK 10.6) [Click for support]
        [not loaded]    com.devguru.driver.SamsungACMData (1.2.63 - SDK 10.6) [Click for support]
        [not loaded]    com.devguru.driver.SamsungMTP (1.2.63 - SDK 10.5) [Click for support]
        [not loaded]    com.devguru.driver.SamsungSerial (1.2.63 - SDK 10.6) [Click for support]
    Problem System Launch Daemons: ℹ️
        [running]    com.wibu.CodeMeter.Server.plist [Click for support]
        [not loaded]    org.samba.winbindd.plist [Click for support]
    Launch Agents: ℹ️
        [not loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [loaded]    com.adobe.CS5ServiceManager.plist [Click for support]
        [loaded]    com.google.keystone.agent.plist [Click for support]
        [running]    com.hp.devicemonitor.plist [Click for support]
        [loaded]    com.hp.messagecenter.launcher.plist [Click for support]
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Click for support]
        [loaded]    com.adobe.SwitchBoard.plist [Click for support]
        [loaded]    com.google.keystone.daemon.plist [Click for support]
        [loaded]    com.leapfrog.connect.authdaemon.plist [Click for support]
        [loaded]    com.microsoft.office.licensing.helper.plist [Click for support]
        [loaded]    com.skype.skypeinstaller.plist [Click for support]
        [running]    com.zeobit.MacKeeper.AntiVirus.plist [Click for support]
    User Launch Agents: ℹ️
        [loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [loaded]    com.adobe.ARM.[...].plist [Click for support]
        [loaded]    com.adobe.ARM.[...].plist [Click for support]
        [running]    com.akamai.single-user-client.plist [Click for support]
        [failed]    com.apple.CSConfigDotMacCert-[...]@me.com-SharedServices.Agent.plist [Click for details]
        [running]    com.leapfrog.connect.monitor.plist [Click for support]
        [running]    com.spotify.webhelper.plist [Click for support]
        [failed]    com.zeobit.MacKeeper.Helper.plist [Click for support] [Click for details]
    User Login Items: ℹ️
        LOGINserver    Application  (/Library/Printers/Brother/Utilities/Server/LOGINserver.app)
        InstUtilLaunch    Application  (/Library/Printers/Brother/Utilities/InstallUtility.app/Contents/Resources/Inst UtilLaunch.app)
    Internet Plug-ins: ℹ️
        o1dbrowserplugin: Version: 5.38.6.0 - SDK 10.8 [Click for support]
        OVSHelper: Version: 1.1 [Click for support]
        OfficeLiveBrowserPlugin: Version: 12.2.9 [Click for support]
        net.juniper.DSSafariExtensions: Version: Unknown [Click for support]
        Silverlight: Version: 4.0.60129.0 [Click for support]
        FlashPlayer-10.6: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        DivXBrowserPlugin: Version: 2.1 [Click for support]
        Flash Player: Version: 16.0.0.305 - SDK 10.6 Outdated! Update
        iPhotoPhotocast: Version: 7.0 - SDK 10.7
        googletalkbrowserplugin: Version: 5.38.6.0 - SDK 10.8 [Click for support]
        QuickTime Plugin: Version: 7.6.6
        AdobePDFViewer: Version: 10.0.3 [Click for support]
        SharePointBrowserPlugin: Version: 14.0.0 [Click for support]
        JavaAppletPlugin: Version: 13.9.8 - SDK 10.6 Check version
    Safari Extensions: ℹ️
        Searchme  [Adware! - Remove]
        DivX Plus Web Player HTML5 <video>
    Audio Plug-ins: ℹ️
        iSightAudio: Version: 7.6.6
    3rd Party Preference Panes: ℹ️
        Akamai NetSession Preferences  [Click for support]
        CodeMeter  [Click for support]
        DivX  [Click for support]
        Flash Player  [Click for support]
        Growl  [Click for support]
    Time Machine: ℹ️
        Time Machine information requires OS X 10.7 "Lion" or later.
    Top Processes by CPU: ℹ️
            14%    firefox
             5%    WindowServer
             0%    ps
             0%    fontd
             0%    DirectoryService
    Top Processes by Memory: ℹ️
        528 MB    firefox
        176 MB    Finder
        159 MB    AntiVirus
        112 MB    WindowServer
        82 MB    mds
    Virtual Memory Information: ℹ️
        1.07 GB    Free RAM
        1.29 GB    Active RAM
        1.01 GB    Inactive RAM
        784 MB    Wired RAM
        962 MB    Page-ins
        3 MB    Page-outs
    Diagnostics Information: ℹ️
        Mar 20, 2015, 07:32:46 PM    Self test - passed

    Hardware Information: ℹ️
        MacBook Pro (15-inch, Mid 2010) (Technical Specifications)
        MacBook Pro - model: MacBookPro6,2
        1 2.4 GHz Intel Core i5 CPU: 2-core
        4 GB RAM
            BANK 0/DIMM0
                2 GB DDR3 1067 MHz ok
            BANK 1/DIMM0
                2 GB DDR3 1067 MHz ok
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
        Battery Health: Normal - Cycle count 814
    ***Hardware looks fine
    ***Increasing the RAM can always help with slowness issues
    Video Information: ℹ️
        NVIDIA GeForce GT 330M - VRAM: 256 MB
            Color LCD 1440 x 900
            spdisplays_display_connector
        Intel HD Graphics - VRAM: 288 MB
            spdisplays_display_connector
    ***Looks fine
    System Software: ℹ️
        Mac OS X 10.6.8 (10K549) - Time since boot: one day 2:7:40
    ***You are running an Operating system over 4 years old but it shouldn't effect the speed of your computer
    Disk Information: ℹ️
        TOSHIBA MK3255GSXF disk0 : (298.09 GB)
            - (disk0s1) <not mounted> : 210 MB
            Macintosh HD (disk0s2) / : 319.73 GB (150.44 GB free)
        MATSHITADVD-R   UJ-898
    ***Looks fine
    USB Information: ℹ️
        Apple Inc. BRCM2070 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Internal Memory Card Reader
        Apple Inc. Apple Internal Keyboard / Trackpad
        Apple Computer, Inc. IR Receiver
        Apple Inc. Built-in iSight
    Configuration files: ℹ️
        /etc/hosts - Count: 31
    ***Looks fine
    Kernel Extensions: ℹ️
            /Library/Application Support/MacKeeper/AntiVirus.app
        [not loaded]    com.zeobit.kext.AVKauth (2.3.3 - SDK 10.8) [Click for support]
        [not loaded]    com.zeobit.kext.Firewall (2.3.3 - SDK 10.8) [Click for support]
            /System/Library/Extensions
        [not loaded]    com.devguru.driver.SamsungComposite (1.2.63 - SDK 10.6) [Click for support]
        [not loaded]    com.leapfrog.codeless.kext (2) [Click for support]
        [not loaded]    com.leapfrog.driver.LfConnectDriver (1.11.1 - SDK 10.10) [Click for support]
        [not loaded]    com.wibu.codemeter.CmUSBMassStorage (1.0.7) [Click for support]
            /System/Library/Extensions/ssuddrv.kext/Contents/PlugIns
        [not loaded]    com.devguru.driver.SamsungACMControl (1.2.63 - SDK 10.6) [Click for support]
        [not loaded]    com.devguru.driver.SamsungACMData (1.2.63 - SDK 10.6) [Click for support]
        [not loaded]    com.devguru.driver.SamsungMTP (1.2.63 - SDK 10.5) [Click for support]
        [not loaded]    com.devguru.driver.SamsungSerial (1.2.63 - SDK 10.6) [Click for support]
    ***I'm honestly not super familiar with most kernal extensions but I do see you have MacKeeper running which can slow the computer down
    ****** This next section talks about Launch agents and Launch Daemons.
    ****Something to keep in mind is that when you first get the computer that all of these folders are empty and the files in them are all third party.
    ****If you want to see if the system runs better without them Shut the computer down and turn it on while holding the shift key
    ****This will put the computer into safemode which turns off third party files and extensions and does not let any launch agent/daemons files run.
    Problem System Launch Daemons: ℹ️
        [running]    com.wibu.CodeMeter.Server.plist [Click for support]
        [not loaded]    org.samba.winbindd.plist [Click for support]
    Launch Agents: ℹ️
        [not loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [loaded]    com.adobe.CS5ServiceManager.plist [Click for support]
        [loaded]    com.google.keystone.agent.plist [Click for support]
        [running]    com.hp.devicemonitor.plist [Click for support]
        [loaded]    com.hp.messagecenter.launcher.plist [Click for support]
    ***This is the root launch agent folder
    ***I'd remove all but the first three
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Click for support]
        [loaded]    com.adobe.SwitchBoard.plist [Click for support]
        [loaded]    com.google.keystone.daemon.plist [Click for support]
        [loaded]    com.leapfrog.connect.authdaemon.plist [Click for support]
        [loaded]    com.microsoft.office.licensing.helper.plist [Click for support]
        [loaded]    com.skype.skypeinstaller.plist [Click for support]
        [running]    com.zeobit.MacKeeper.AntiVirus.plist [Click for support]
    ***This is the root Launch Daemons folder
    ***I'd only keep com.adobe.fpsaud.plist and com.microsfot.office.licensing.helper.plist all the others will reinstall them selves if needed.
    User Launch Agents: ℹ️
        [loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [loaded]    com.adobe.ARM.[...].plist [Click for support]
        [loaded]    com.adobe.ARM.[...].plist [Click for support]
        [running]    com.akamai.single-user-client.plist [Click for support]
        [failed]    com.apple.CSConfigDotMacCert-[...]@me.com-SharedServices.Agent.plist [Click for details]
        [running]    com.leapfrog.connect.monitor.plist [Click for support]
        [running]    com.spotify.webhelper.plist [Click for support]
        [failed]    com.zeobit.MacKeeper.Helper.plist [Click for support] [Click for details]
    ***This is your users Launch Agent folder
    ***I'd remove everything here
    User Login Items: ℹ️
        LOGINserver    Application  (/Library/Printers/Brother/Utilities/Server/LOGINserver.app)
        InstUtilLaunch    Application  (/Library/Printers/Brother/Utilities/InstallUtility.app/Contents/Resources/Inst UtilLaunch.app)
    Internet Plug-ins: ℹ️
        o1dbrowserplugin: Version: 5.38.6.0 - SDK 10.8 [Click for support]
        OVSHelper: Version: 1.1 [Click for support]
        OfficeLiveBrowserPlugin: Version: 12.2.9 [Click for support]
        net.juniper.DSSafariExtensions: Version: Unknown [Click for support]
        Silverlight: Version: 4.0.60129.0 [Click for support]
        FlashPlayer-10.6: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        DivXBrowserPlugin: Version: 2.1 [Click for support]
        Flash Player: Version: 16.0.0.305 - SDK 10.6 Outdated! Update
        iPhotoPhotocast: Version: 7.0 - SDK 10.7
        googletalkbrowserplugin: Version: 5.38.6.0 - SDK 10.8 [Click for support]
        QuickTime Plugin: Version: 7.6.6
        AdobePDFViewer: Version: 10.0.3 [Click for support]
        SharePointBrowserPlugin: Version: 14.0.0 [Click for support]
        JavaAppletPlugin: Version: 13.9.8 - SDK 10.6 Check version
    Safari Extensions: ℹ️
        Searchme  [Adware! - Remove]
        DivX Plus Web Player HTML5 <video>
    ***The first extension in safari is adware and can be uninstalled
    ***The second one is a video web player and you could probably remove that as well but it wont effect your speed
    Audio Plug-ins: ℹ️
        iSightAudio: Version: 7.6.6
    3rd Party Preference Panes: ℹ️
        Akamai NetSession Preferences  [Click for support]
        CodeMeter  [Click for support]
        DivX  [Click for support]
        Flash Player  [Click for support]
        Growl  [Click for support]
    Time Machine: ℹ️
        Time Machine information requires OS X 10.7 "Lion" or later.
    Top Processes by CPU: ℹ️
            14%    firefox
             5%    WindowServer
             0%    ps
             0%    fontd
             0%    DirectoryService
    Top Processes by Memory: ℹ️
        528 MB    firefox
        176 MB    Finder
        159 MB    AntiVirus
        112 MB    WindowServer
        82 MB    mds
    Virtual Memory Information: ℹ️
        1.07 GB    Free RAM
        1.29 GB    Active RAM
        1.01 GB    Inactive RAM
        784 MB    Wired RAM
        962 MB    Page-ins
        3 MB    Page-outs
    Diagnostics Information: ℹ️
        Mar 20, 2015, 07:32:46 PM    Self test - passed
    ***Everything else seems fine

  • I have read various threads on installing Win XP on my iMac

    Hi All
    I have read various threads on installing Win XP on my iMac, i have tried on 2 seperate ocations to install win XP Pro on the partition created by bootcamp but in each instance the install failed. I get to the part of the installation where you select the partition to install win xp and when i select that partition i get partition not recognised please click enter to go back and choose a different partition.
    To get the install to accept the partition i need to reformat it, and after doing this when the computer reboots it says please choose any key to boot from cd but in doing so the install starts all over again, or if i don't press a key and let the installation continue as i would on a normal pc the computer just freezes and the installation fails.
    The couple of times i have tried this i have ended up reinstalling my mac os again, i don't want to go through all this again so if anyone can point me in the right direction it would be much appreciated.
    Cheers
    Dave

    Mr.Lobotomy wrote:
    Does your Win XP CD have Service Pack 2 on it? You cannot install the original Windows XP or Service Pack 1. You must install Service Pack 2 (or later). See http://docs.info.apple.com/article.html?artnum=306580
    If this is your issue, search these forums (all dates) for "Slipstreaming" to learn how to convert your CD plus a blank CD into a Win XP SP2 disk.
    I tried slipstreaming following the instructions I found on this forum, with no luck. It didn't recognize it as any kind of Windows install disk.

  • Reader writer thread

    I don't know how to start to implement a reader writer thread. I have a vector, and multiple threads. I would like to allow mulitple threads to read and one to modify. Does anyone where I should start? I know that I can't use
    synchronize(object) {
    since this will only allow one thread to acess the code.
    Thanks.

    It doesn't sound like you have a good background in concurrency yet. Take a look at this book.
    http://java.sun.com/docs/books/cp/
    Great book, great guy. Let me know if you need any help after you start.

  • Read Only Threads

    I find it quite annoying the large number of read only threads in this forum particularly as, to my mind, very few of them are of any use. I've suggested over in the Idea's Bank that they could at least be reorganised into fewer threads without the loss of any information.
    It would be nice to have more of our FAQs as read only topics too wouldn't it? Questions that frequently pop up at the moment that I think could use an official response are:
    iPlayer rollout - if we haven't yet got it, when can we expect to have it by?
    Multi-room / multiple vboxes - will it ever be supported, if so when?
    Freeview HD - will we get it, if so when?
    I'm a new customer getting a C03 error - why? how do I get it resolved?
    I'm getting V04 errors - why? how do I get it resolved?
    I've heard about YouView - when's it coming and how does this effect Vision customers?
    Solved!
    Go to Solution.

    Thanks for the suggestions and feedback guys. 
    I've combined some of the sticky threads so there aren't so many at the top, and i'll take a look at your suggestions for the common FAQs around iPlayer, Freeview HD etc with the Vision team.  Agree these will be useful updates for most of you, and i'ill look to get some info posted on these too.
    Thx
    Kerry
    Retired BTCare Community Manager - StephanieG and SeanD are your new Community Managers
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • Question while Learning about Thread

    I am learning about thread.
    I ran the sample producer/consumer programe in Java Thread Tutorial in which I added two lines of printing out codes in class CubbyHole to observe the runing sequence better.
    The result made me a bit confused. I imagine that the result "Producer #1 put: 1" should be printed out right after "put 1", why it appeared after "get 1" and "Consumer #1 got: 1"?
    Codes are listed below:
    public class ProducerConsumerTest {
    public static void main(String[] args) {
    CubbyHole c = new CubbyHole();
    Producer p1 = new Producer(c, 1);
    Consumer c1 = new Consumer(c, 1);
    p1.start();
    c1.start();
    public class Producer extends Thread {
    private CubbyHole cubbyhole;
    private int number;
    public Producer(CubbyHole c, int number) {
    cubbyhole = c;
    this.number = number;
    public void run() {
    for (int i = 0; i < 10; i++) {
    cubbyhole.put(i);
    System.out.println("Producer #" + this.number
    + " put: " + i);
    try {
    sleep((int)(Math.random() * 100));
    } catch (InterruptedException e) { }
    public class Consumer extends Thread {
    private CubbyHole cubbyhole;
    private int number;
    public Consumer(CubbyHole c, int number) {
    cubbyhole = c;
    this.number = number;
    public void run() {
    int value = 0;
    for (int i = 0; i < 10; i++) {
    value = cubbyhole.get();
    System.out.println("Consumer #" + this.number
    + " got: " + value);
    public class CubbyHole {
    private int contents;
    private boolean available = false;
    public synchronized int get() {
    while (available == false) {
    try {
    wait();
    } catch (InterruptedException e) { }
    available = false;
    System.out.println("get " + contents);
    notifyAll();
    return contents;
    public synchronized void put(int value) {
    while (available == true) {
    try {
    wait();
    } catch (InterruptedException e) { }
    contents = value;
    System.out.println("put " + contents);
    available = true;
    notifyAll();
    The result is as below:
    put 0
    Producer #1 put: 0
    get 0
    Consumer #1 got: 0
    put 1
    get 1
    Consumer #1 got: 1
    Producer #1 put: 1
    put 2
    get 2
    Consumer #1 got: 2
    Producer #1 put: 2
    put 3
    get 3
    Consumer #1 got: 3
    Producer #1 put: 3
    put 4
    get 4
    Consumer #1 got: 4
    Producer #1 put: 4
    put 5
    get 5
    Consumer #1 got: 5
    Producer #1 put: 5
    put 6
    get 6
    Consumer #1 got: 6
    Producer #1 put: 6
    put 7
    get 7
    Consumer #1 got: 7
    Producer #1 put: 7
    put 8
    get 8
    Consumer #1 got: 8
    Producer #1 put: 8
    put 9
    Producer #1 put: 9
    get 9
    Consumer #1 got: 9

    Hi alaska,
    The reason you got those results are because these are
    threads. The execution of the order of thread is
    always random (unless some explicit logic is applied)
    and CPU can execute any thread at any time within the
    process. So the results you got are perfectly right.
    Even the order of the output may change everytime you
    run the same program.
    -- manishI think you can change the predictability by setting the Producer's thread priority has higher than the Consumer's...

  • Looking for a good book about threads

    Hello all,
    I am looking for a good book about threads.
    I would like something which is both practical, but also provides some theoretical basis.
    I am an experienced programmer, with some, but not much, experience with concurrent design.
    I would greatly appreciate any suggestions.

    I found the "Java Threads" book by Oaks and Wong to be fantastic:
    http://www.oreilly.com/catalog/jthreads2/
    - K
    Hello all,
    I am looking for a good book about threads.
    I would like something which is both practical, but
    also provides some theoretical basis.
    I am an experienced programmer, with some, but not
    much, experience with concurrent design.
    I would greatly appreciate any suggestions.

  • Question about Threads

    Hi,
    imagine that I have a class as below:
    public class MyVector
    private IntegerVector vect;
    public Synchronized void write(){
    vect.f();
    public Synchronized void read(){
    vect.g();
    Where f and g are non Synchronized and non-static public methods of IntegerVector .
    Imagine that two threads as below:
    thread one :
    class ThreadOne extends Thread
    public ThreadOne(MyVector v)
    this.v=v;
    public void run()
    v.write();
    class ThreadTwo extends Thread
    public ThreadTwo(MyVector v)
    this.v=v;
    public void run()
    v.read();
    My question is that if there will be any conflict between thread1 and thread2 for having the lock on
    object MyVector v ?the methods read and write are Synchronized but they call non-Synchronized methods f() and g()
    of field "IntegerVector vect" of "MyVector v "!
    Thanks,
    Behnaz

    bandarurm wrote:
    jverd wrote:
    bandarurm wrote:
    @OP - Also, remember that there are only two types of locks (aka monitors), which are Object level lock and Class level lock. No. All locks are identical.Could you explain this further? As I thought there is a class level lock (java.lang.Class) for a class with static synchronized methods. And, there is an object level lock, which is a built-in lock that every object has in java, by default.Whenever you synchronize a block of code or a method, you're just obtaining some object's lock. Synchronized methods are just shorthand for obtaining particular objects' locks.
    Synchronization is always the same. Declaring a method synchronized is just shorthand for what you could do by explicitly syncing a block of code on a particular object.
    class Foo {
      synchronized void bar() {
        // body
      // is the same as
      void bar() {
        synchronized (this) {
          // body
      // and
      static synchronized qux() {
        // body
      // is the same as
      static qux() {
        synchronized (Foo.class) {
          // body
    }In all cases, you're just syncing on an object, and which object doesn't matter, except to other methods or blocks that sync on the same object. Everything else is identical.
    The fact that synchronized static methods obtain one particular lock and non-static ones obtain a different one is not indicative of different kinds of locks. It's always just some object's lock, and no lock behaves differently from any other.
    Edited by: jverd on Apr 20, 2009 10:46 AM

Maybe you are looking for