Multicore+java? Plz help..Thank You !
Hi Friends,
I have my first project review before the end of this month.I have problem in choosing the topic for my project.I am mostly interested in java,but my guide wants me to do the project in multicore.
i need guidance on this.Please tell me some AIEE,ACE paper or other Research papers,which have to do with both java and multicore---I mean doing something in multicore with java.I Really need help.I tried myself to find such papers in AIEE and ACM but couldn't able to find one.so please help me.
Thank You!
First I'd like to apologize for being pissy earlier. I find it discouraging when I see people embarking on projects that have very little to not merit. Also this discussion has been had before and I dunno... Mostly though I had just come from a bad meeting and was in a bad mood and that really didn't help.
Now on to the constructive bits.
The two newish processor advances that people like to talk about are hyperthreading and multicore. As discussed previously these two are not related (although in marketing materials they often are which leads to some confusion). I do think though that some understanding of both can clear up some of other doubts people have regarding how "good" Java will be with these technologies.
Hyperthreading
Personally I think this one is very cool. The best way I can think to describe it is that it is like a hotspot optimizing compiler for the processor.
What happens with hyperthreading is that the processor has more stuff on the go. The basic idea is this. In a normal processor you might have (simplified greatly here) the following steps to execute an instruction)
1 Bits come in -> 2 bits are put into proper places -> 3 execution (the magic step -> 4 bits are put into proper places to go -> 5 bits go out
Again simplfied but to get the idea. Each step takes a cycle of processor time to do it. In a non hyperthreading model each execution therefore takes 5 cycles. In hyperthreading it loads things up so that different instructions are at different life cycles in the processor at the same time. So maybe you have instructions at steps 1,3 and 5 all at the same time.
This means that in theory things can go much faster. It's also interesting to note though that hyperthreading falls apart with code that has been prematurely optimized for a processor that didn't support hyperthreading. For example if the code tries to force things into processor registers.
Multicore
As mentioned multicore is just putting two or more core processing units on one die. This means actual parallel execution can happen.
This is pretty simple. So what do you need in Java to take advantage of this? Well for starters you need multithreaded code. If your program has only one thread then it won't matter one bit.
Beyond that? It's a combination of the VM and OS yes. There are already computers that have multiple processors of course so there is already existing VM's and OS's that can take advantage of this. There are a number of configuration options for Sun VM's to fiddle with how code should work on such systems.
Perhaps surprisingly, or perhaps not, programs with multiple threads are often better off on one processor than multiple. Depends on load of course but you have to think of steps like synchronization. There is more complexity synchronizing across multiple processors than there is multiple threads on one processor. (Note not more complexity in your code but more complexity in how it is implemented by the VM and/or OS)
Summary
Both of these processor advancements mean good things for Java IMO. Hyperthreading in particular lends itself well to development in a language where runtime optimizations are performed. Why? Because in Java it is prefferred to gain performance by good design rather than resorting to hackery to squeeze performance from the processor directly.
As systems grow more complex it is less and less likely that a specfic program can best judge how to tune it's own environment. Better to let a VM and/or OS and/or hardware to handle the optimization at runtime because it has the full picture of what is going on.
It's like the same reason you really shouldn't call gc in your Java program. The VM knows at runtime far better than you at pre-compile time when it is a good idea to run a garbage collection.
For multicore the same basic rules apply. Write good and well designed Java code and use existing and well established frameworks and it will work well on a multicore system. Write single threaded GUI apps or threading programs that have a tendency to deadlock and the outcome of multicore will be no better performance and possibly bugs that display themseleves with greater frequency.
Further Resources
http://blogs.sun.com/jag/entry/mpi_meets_multicore
http://en.wikipedia.org/wiki/Hyper-threading
http://en.wikipedia.org/wiki/Dual-core
Similar Messages
-
I connected a HDMI cord to my macbook from my TV and I mirrored it so I can see my macbook on my TV but the sound wont transfer to my TV, How can I do make this happen? PLZ help, Thank you
What model and year is your MacBook? Some older MacBooks don't support Audio out via miniport/HDMI (the display miniport is video only).
-
hello, I'm using the same apple id on my Ipad and Iphone, and anything i do and my ipad reflects on my iphone. if i download an app on my iphone it also downloads on my ipad. Can i stop this from happening. i need help. thank you.
Yes, under the Settings for the store, you can turn off the auto download for purchases, that way if you purchase an app on another device it will not automatically download on that device. You would need to do this on both your iPad and iPhone.
-
Hi, I'm unable to use my speaker when I'm using Mac OS, which means I'm unable to unmute, decrease or increase the volume. However, I'm able to do so for Windows 7 OS on Bootcamp. Can anyone please advise on how to rectify this problem? I would greatly appreciate your help, thank you.
Hi Zac, sorry to hear about your troubles, but that's why us other users are here to try to help in these instances.
Open Console in Utilities & see if there are any clues or repeating messages when this connection drop happens. -
Dear Sirs,
I had just upgraded my OS to the OS X Mavericks. After doing so, I noticed the following changes:
1) My MS Outlook for Mac 2011 does not sync with my Mac book's calendar/contacts/notes.
2) My iPhone4s does not sync with my Mac book's calendar/contacts/notes anymore.
Please help, thank you.
aawwiiCorrect, USB local sync was taken away from iphones and ipads with 10.9.1 and 2. We are not allowed to speculate on rumours it might come back in 10.9.3 plus new iTunes. Either wait and see or explore Syncmate 5 beta free trial.
icloud still works.
Cant help with the Outlook problem. -
HT5312 I do not remember the security answer apple ID.Please help.Thanks you!
I do not remember the security answer apple ID.Please help.Thanks you!
If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then steps 1 to 5 on the page that you posted from should let you reset them : go to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account, then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you should see an option to send security question reset info to your rescue email address.
If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then you will need to contact iTunes Support / Apple 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 half-way down the page that you posted from to add a rescue email address for potential future use -
Dear Iphone fans,
Recently, somehow I can't hear sounds when talking on my iphone4 either when calling or being called. When asking them later, they said they can hear me but my sound become very low and unclear. And I can't hear a thing at that time. Could anyone tell me how I could fix the problem.
I've bought this one for half a year. I need your help~
Thank you in advance.Dear Iphone fans,
Recently, somehow I can't hear sounds when talking on my iphone4 either when calling or being called. When asking them later, they said they can hear me but my sound become very low and unclear. And I can't hear a thing at that time. Could anyone tell me how I could fix the problem.
I've bought this one for half a year. I need your help~
Thank you in advance. -
hi, my new device was set up in the store that I bought it from. How can I transfer all old text messages over to my new device? I have followed the icloud back up steps on this page. Please help, thank you.
Its an iPhone 4
Message was edited by: zzziggy85Here is how
http://support.apple.com/kb/HT2109 -
TS2446 Hi,My Apple ID has been disabled Please help Thank you
Hi,My Apple ID has been disabled Please help Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you
If changing your password does not solve then contact itunes support
-
As I was installing the Windows 7 on my Imacwith the bootcamp and stated how I wanted to divide the drive I put 160, but I want to add more space because of the adobe software it will not install two of them, so how can I add more on the drive space to from 160 to 250? please help thank you.
I'm not sure this is what you're looking for, but it might help:
"If you made the Windows partition too small
First, back up all the information on your Windows partition. Then run Boot Camp
Assistant to restore your disk to a single volume. Restart your computer and use Boot
Camp Assistant to partition the disk again and reinstall Windows. Don’t forget to install
the Boot Camp drivers after installing Windows."
(from Bootcamp Assistant Manual see pg 22) -
I have set up several EVENTs for my photos in iPhoto. Now when I click on an Event, I want to arrange the pictures within this event , when I click on the picture I want to move, it does not move, it stays in place. ( yellow fram around the picture does appear ) I clicked on the VIEW tab, selected " sort EVENTS" than I slide over to manually and the word appears in grey rather than black . Therefore I am unable to move the picture to the place I want it to be within that same event. Please be kind and Help, thank you, manfred from jupiter
Hello Old Toad,
thank you for your reply, very much appreciated.
I am sending you the same anwer I sent out to LarryHN, since it covers the ame topic.....
My version of iPhoto is : " iPhoto 08 " , version 7.1.5 ( 378 )
I set up an " Album " as you suggested and this procedure works, I am able in this new Album to change the pictures around as I want it to be.
However in checking back at the same " Event" Album / Gallery the pictures still remain the old way and do not show the changes I made in the new Album version.
I guess that's the way it will be. Take it or leave it..... or do you have another suggestion ???? Thank you for looking into my problem. Please let me know. Thank you again manfred from jupiter -
Hi does anybody know how to tile print an image On an iMac ? So blow an image up and print that image on several pieces of paper . ?
Appreciate any help Thank you LauraThere's an app for that...
https://www.macupdate.com/app/mac/45688/tile-photos-fx
Also see...
http://www.blockposters.com -
I am from South Africa and the itune store only allows the purchase of some music , whenever i try to buy Jesus Culture- Everything . an error message comes up "only availble in US " , PLEASE HELP .Thank you
I had the same issue this morning downloading a pre-order of Alanis, Flavors of Entanglement . I noticed that the only thing that had changed fro me was that I had some song credits for purchasing ticketmaster tickets over the past few weeks. When I went ahead and spent my remaining credits... it downloaded with no prompting or trouble. Maybe the credits issues hangs it up?
-
I just brought 15$ App store card and wanted to buy a paid app but it says ''Your Purchase Could Not Be Completed" Can Somebody help me that would be helpful thank you.
Well, usually that message ends with ..."contact the iTunes Store."
http://www.apple.com/support/itunes/contact/ -
Lost all email gmail deleted by mistake need help thank you
lost all email gmail messages deleted by mistake need help thank you.
Mail 2.x doesn’t store mail in standard mbox format. The only way you might find Mail messages in a “recovered” mbox file is if it was a Mail 1.x file that Mail 2.x left there after the conversion to the new *.emlx format when you upgraded from Mac OS X 10.3 or earlier to Mac OS X 10.4.
If you’re running Mac OS X 10.4 (Tiger) and don’t have a backup, what you should have tried to recover are as many *.emlx files as possible. Data Rescue II may be able to do that, but the documentation doesn’t say so. The only data recovery utility that I know for sure can currently recover deleted *.emlx files is FileSalvage.
That said, you may still try to import those mbox files as Other (not as Mail for Mac OS X), and hope that they don’t contain garbage that causes Mail to crash — you may look at their contents with a text editor first to check whether there are actually any emails there.
Beware, however, that anything you do with the computer may cause the deleted *.emlx files to be overwritten if you don’t try to recover them first. -
hello guys! i just wanted to asked to anyone of you if you'll receive a notification when your icloud account was removed into your apple device? my iphone 4 Ios7 was stole 3 days before.. please help thank you!
1. you may have to take it in to Apple and get an out of warranty iphone for $199.
2. you can get your information from a backup of your phone. you do have a backup of your phone right either in iTunes or icloud. If you don't then your answer will be no.
Maybe you are looking for
-
Pages dont show up on web the way I saved them
Hello, I'm fairly new to using IWEB. So far Ive created a site and have published it to my desktop and uploaded it using cyberDuck to web. At first all was OK. Recently I made some changes to some pages, I uploaded the new pages which supposedly over
-
Smoothing multiple images dynamically
Hi guys/gals Im having trouble trying to smooth a dynamic amount of images into my scene I have a loop which is trying to load a folder full of images into my scene, the images are going to be scaled to roughly 80% of their original size (they get sc
-
Hi, Can any one guide me how to verify the status of ISDN link when it is configured as backup with dialer interface? I have CISCO 3640 routers. I had configured E1 links as primary. ISDN lines are configured as backup lines. ISDN line kicks in whene
-
I can not pair my iPad with the new Bluetooth keyboard????
Can someone answer this for me...thanks
-
How to overwrite a file?
Dear Sir, I'm writing a program which read a txt file (e.g.infile.txt) and before quit the program, I need to rename the file to infile.old and create another infile.txt. I used file.renameTo(newfile) to rename the file. However, when I run the progr