Public static Thread currentThread() and multi core processors??

Hello,
I have the following basic question: what does public static Thread currentThread() mean in the context of multi core processors where several threads may execute concurrently?
Any clue welcome,
J.

Hi balteo,
When you invoke Thread.currentThread(), you get the reference of the current thread : the thread where you make the call.
Just try :
System.out.println("My program is running thread : " + Thread.currentThread().getName());
mean in the context of multi core processors where several threads may execute concurrently?Several threads may run concurrently with single core processors. The number of concurrent threads you may execute depends of the processors architecture and the OS.

Similar Messages

  • CS5 and multi-core processors

    I believe I am correct in saying that CS4 does not recognize or take advantage of multi-core processors. Is this the case with CS5 or will it use all the cores/processors on my 2 x 2.26Ghz Quad-Core MacPro?
    Thanks

    phunkidude wrote:
    I believe I am correct in saying that CS4 does not recognize or take advantage of multi-core processors…
    You believe wrong, and you are wrong.
    Wo Tai Lao Le
    我太老了

  • Encore dynamic link and multi core processor

    hello, when I make an DVD menu in Encore cs3, with motions and transitions in After Effects, i import this AE compositions using dynamic link, everything works perfect, but when I build the DVD, the processor use is beetween 50/60% when it´s rendering the motion menus or trascoding, I think that this is because Encore can´t use multicores (Athlon 5600+ X2 in this machine), since when i render in AE directly, or trascode from premiere using Adobe media encoder, the processor is used 100%, how is the correct way to "jump" this problem?
    I must Render all the menues directly in after effects to m2v?(how can i do it and maintain the direct link for further changes?
    I dont know if helps, but my PC configuration is the following:
    AMD Atlhon X2 5600+ Dual core
    4GB DDR2 800mhz RAM
    750GB SATA2 HDD (500+250)
    512MB ATI RADEON HD2900PRO
    Windows XP PRO x64 SP2.

    Windows XP Pro x64 is an unsupported operating system for Encore.
    That may be part of or all of the problem.

  • Will Adobe improve Ai to better take adv of multi-core processors & GPU's?

    will Adobe improve Ai to better take adv of multi-core processors & GPU's?

    And what specifically? You need to be much more specific what you expect to be faster and make better use of your resources. In any case you should get used to the thought that for many operations there is only limited potential to make them multi-threaded or even use GPU due to how the underlying math works. Perhaps we may get a GPU-based rasterize for faster previews, perhaps AI will use GPU prodcessing of pixel images one day, but beyond that I don't really see much. Pathfinders, blends and many otehr things are simply hard linear number-crunching.
    Mylenium

  • Socket and multi-core troubles

    I have a 'hybrid' application as its refered to in the docs
    that I use to generate 3D scenes with the sandy flash library, and
    use those as motion graphics on top of a live video source for
    recording and broadcasting.
    The Camera sends hello to the flash socket, the flash app,
    draws the scene, the socket sends a byte array to the camera where
    it is alpha blended to into the live camera.
    On a single core system, there are no issues.
    On a dual core system, I do not get the whole byte array.
    Some how it seems in the middle of getting the bitmap to the array,
    something stops the writing and the socket is flushed anyway.
    I am receiving all 307200 bytes to the camera, but image is
    not fully drawn to the byte array. It results in a random
    quartering of the image, depending on how many bytes are actually
    sent.
    another behavior noted is when I drag the window, the socket
    still responds to the c++ code calling it, still sends 307200
    bytes, all '0''s, while nothing is drawn to bytes in the getPixels
    call.
    I can live with this behavior, but not the former.
    quote:
    //b bit mapdata, bytes is byte array
    b.draw(m_iDrawable);
    bytes=b.getPixels(new Rectangle(0,0,320,240));
    writeBytes(bytes,0,307200);
    flush();
    Is there any info regarding multi core processors
    interrupting drawing or socket communication? Even passing static
    bitmapdata that is never changes or displayed on the stage is
    interupted.
    The socket seems to be broken on the multicore machine.
    The c++ application that is creating the broadcast/file does
    receive the full frame buffer size, other wise it would hang until
    the full 307200 bytes are recieived. It appears that flash stops
    writing, and continues in the next call.
    There appears to be no handle to gauge how much data is
    actually passed to the byte array.
    I can set up live demos if desired.
    Single core machine and dual core machine running exact same
    software, and then stream the output graphics over rtmp.
    Help! Suggestions! Limiting the app to singe core machines is
    not an option!

    not Vista on the newer machine, right? (since Vista has
    TCP/IP stack problems)
    No, thanks.... Not vista. this is the working solution.
    quote:
    // in the enterframe event...
    do{}while(vidOut.m_bSharedState)
    // in the render event
    do{}while(vidOut.m_bSharedState)
    //this is in the function triggering the whole affair
    //Whether clone or lock is still nessecary I dont know
    if(fillBuffer)return;
    fillBuffer=true;
    if(!vidOut)return;
    do{}while(vidOut.m_bSharedState)
    vidOut.readBytes(new ByteArray(),0,vidOut.bytesAvailable);
    vidOut.draw(this.sprite());
    vidOut.flush();
    do{}while(vidOut.m_bSharedState)
    fillBuffer=false;
    //and this is the video out object's relevant function
    m_bSharedState=true;
    b=new BitmapData(320,240,true,0);
    b.lock();
    b.draw(p_iDrawable);
    var bmc:BitmapData=b.clone();
    bytes=bmc.getPixels(rec);
    bytes.position=0;
    writeBytes(bytes,0,307200);
    b.unlock(rec);
    m_bSharedState=false;
    Currently running at 15 fps encoding sesions with 0 drops as
    it should be.
    I'll throw up a temporary demo today in a bit.
    Thank you for your response!
    Solved

  • Logic Pro on Multi-Core Processors?

    Hi, I've heard that multi core processors such as those in the new iMac and in the Mac Pro are only any good if the software knows how to use them properly. So, does Logic know how to use the multi cores of the iMac and Mac Pro properly?
    Ultimately I want to know if I would be better off with say a 3.06G core 2 duo, or a 2.66G i5?? For Logic only, I couldnt care about games or anything else.

    I can't address the theoretical on this thread; I can only say that I've had no problem setting my buffer at the lowest setting possible on my 8-core to record musicians live in my studio, and I have no problems. As I monitor my 8 cores, I can see none of the cores working particularly harder than others, and I've yet to hit the red with any of them. I don't monitor on my 2.4 GHz dual core laptop at the lowest buffer settings, because it does have problems with lower buffer settings.
    I disable some plug-ins that introduce latency by when I'm tracking live musicians; the pitch correction & the ad-limiter are the main examples for me; then I bring them in during mix.
    There might be something about how I record; but I have for the last couple of years changed to simply monitoring through Logic with software monitoring, and set the latency to 32 samples and never changed it. I work with professional studio musicians, and nobody's had a problem with the monitoring; and I haven't had any trouble tracking... never knew that I was supposed to. On some tracks with a lot of virtual instruments, I'll often go ahead and freeze tracks before tracking overdubs, but that's been more about hung notes or a sudden burst of musical debris as the buffer catches up and spits 2 measures worth of notes out at once.
    In the most recent project I did recording over 70 songs and 24-5 minute soundtracks, the final step in most of the recordings was recording 3 layers of 5 vocalists (each on their own mic & track) with EQ & compression plugins on every vocal channel strip. That was on top of typically 12 to 20 tracks of live & virtual instruments (some mono & stereo), while feeding control room mix & a dual mono cue mix.
    Again, I'm not disputing the theory here; I just know I can do this with my 8-core and it doesn't break a sweat; my dual core does. I didn't know I wasn't supposed to be able to do it; I just did it and it works.

  • What Do Multi-Core Processors Do?

    I posted a thread on this some time ago, and my understanding was that a multi-core processor allowed for computing tasks be performed simultaneously. Rather than one after another, which is what a single-core processor would do. This is often applied within the applications themselves, to increase execution speed. Such applications being multi-threaded applications.
    But I've recently learnt that even single core processors can execute code in more than one thread. So in this sense, what extra functionality does having multiple cores give you? Or am I wrong in thinking that single core processors can do this too? I'm trying to weigh up the advantages of buying a Mac Pro over a different model like an iMac.
    There's a hole in my understanding somewhere, I just don't know where it is.
    Any info appreciated.
    Many thanks,
    Adam

    multi-threading varies by application
    Think of the system having reserved rights to 0, some background task(s) to 1, Safari on 2, etc. is one scenerio.
    Some but not all or even a lot of apps are truly multi-thread.
    Faster processor cores are still more important than how many cores.
    one core with hyper-threading can execute two threads, and deliver 20-35% more in performance at the expense of running hotter and using more watts. HT came back in 2009 with Nehalem and Core i-Series.
    Dual processor, two cpus, have been around for a long time on Macs back to G4/500DP and dual and quad-core is just more efficient to manufacture and build into systems (dual core Atom or A8's in mobile devices).
    Programs that worked without HT sometimes don't work properly with H-T until they are recompiled and optimized properly.
    Your real question is what Mac to buy though, and what you actually plan to run and do.
    And there are processors for laptops, desktop, towers and more. And all have different performance.
    http://www.intel.com/products/desktop/processors/index.htm
    http://macperformanceguide.com/index_topics.html
    Some iMac vs Mac Pro
    http://www.barefeats.com/imac10o.html
    http://www.barefeats.com/imac10v.html
    So getting things to work in multi-core, multi-threaded, how much memory you want, the need for multiple drives (SSD boot drive and 1TB data drive even in iMac now), and graphic offerings.
    Start with what you use, then to what you need to buy. Don't put the cart before the horse. A Mac Pro or iMac may seem at first to be on somewhat equal footing.
    http://www.barefeats.com/wst10c2.html
    There is a huge range in performance on MacBook/Air/Pro platform.
    http://www.barefeats.com/mbpp31.html

  • Multi-Core Processors

    Does anyone know if AIR takes advantage of multi-Core
    processors? Is there any links that you can provide to help me
    research. I have a very intensive (multiple simultaneous videos,
    graphics, charts) multi-screen application that i am developing and
    need to determine if AIR is even an option.
    thanks for your input.
    billy b

    The Flash Platform, including Flash Player and the Adobe AIR
    runtime, take advantage of multi-core processors (or
    multi-processor configurations) for various operations, including
    on-screen rendering. At this time, there is a single thread of
    execution for Actionscript code, though.

  • Advantages of Multi-Core Processors

    I'm trying to better understand the benefits of a computer with a multi-core processor. I notice that the Mac Pro is available with up to 12 cores! But I'm told that a lot of applications don't fully support multi-threading yet. So surely more cores wont make individual apps that much faster? So is it more to do with multi-tasking? For instance, if I have a video being encoded at the same time as playing a game and rendering a 3D graphic, will each app be assigned its own core? Or something to that effect?
    Just trying to get my head around it, any help appreciated.
    Thanks,
    Adam

    Think of an application as someone performing a task, say painting a house.
    A team of people can get the house painted faster than one person working alone can, but only if the other members of the team have brushes, paint, ladders, etc. to be able to work in parallel with the first person.
    If the application's authors wrote the application such that it processes a single task from beginning to end, other processors and cores will sit idle while only one core on one processor churns away at that task.
    If the application's authors wrote it with the ability to split up the task into multiple individual chunks, the other cores and other processor will be able to accomplish the task much more quickly.
    At present, most applications written for Mac OS X can only use one or a few cores, so processor speed has the most effect on execution speed, so at present the 3.33 GHz six core Mac Pro is the best system to purchase for fastest execution of legacy apps like Final Cut Pro and Adobe's CS5 apps like Photoshop.
    On the other hand, newer apps, like Adobe's Premiere Pro, are written to be able to leverage the additional cores so the 12-core machine would be able to process tasks faster than the six core machine even though its processors run at a faster clock speed.
    Another way to look at this is say to think of a machine that makes a product.
    To a certain extent you can increase production by speeding up the machine, but eventually you hit a limit of how fast that one machine can run, and the only way to increase production capacity/speed is to add more machines to the factory floor.
    But if say the machines put bottle caps on filled bottles, it doesn't matter how many bottle capping machines you have if you only have one machine that can fill the bottles with product.

  • Multi-core processor

    How do you take advantage of a multi-core processor in Java.

    cotton.m wrote:
    Try buying it dinner? Always remember though, no means no.What's the difference between a lady and a diplomat?
    When a diplomat says yes, he means maybe. When he says maybe, he means no. And if he were to say no, he wouldn't be a diplomat.
    When a lady says no, she means maybe. When she says maybe, she means yes. And, if she were to say yes, she wouldn't be a lady.

  • Multi-core processor use in CS5

    If anyone can help me, I'm interested to find out is there support in CS5 Adobe programs for multi-core processors ? I would like to know this for most popular programs, like Flash, Flash Builder, Dreamweaver, Fireworks, Photoshop...

    cotton.m wrote:
    Try buying it dinner? Always remember though, no means no.What's the difference between a lady and a diplomat?
    When a diplomat says yes, he means maybe. When he says maybe, he means no. And if he were to say no, he wouldn't be a diplomat.
    When a lady says no, she means maybe. When she says maybe, she means yes. And, if she were to say yes, she wouldn't be a lady.

  • Encore CS3 - Multi-Core Processor Support?

    Does Encore CS3 take advantage of multi-core processors (like the Intel Q6600)? When transcoding a video file I noticed only one CPU is at 80% and the total CPU usage in < 40%
    I tired searching on "multi-core", "multicore", "multithread", "Q6600", "Quad Core", etc...

    >Yes, that is totally ridiculous, we have the year 2008 now and Adobe is still not able to produce stable software that runs stable on multi-core or on 64-bit.
    There are very, very few apps running in 64 bit at all right now, and XP Pro SP2 is still far stabler than the awful Vista is.
    Apple do not even
    i have
    a 64-bit operating system at all, so please tell me what it is you're jumping ship to?
    Scenarist is 32 bit.
    64 bit will make very little difference at all, with the sole exception of being able to install (but not necessarily use) scads of RAM.
    Multi-Core support would be nice, but with a Sonic Authorcore, that also isn't looking very likely either.
    > I hope they are really ashamed of that.
    If this remains to be the case we will have to hop of from adobe productline, because already now its hard to find any 32-bit windows in our office.
    More fool the office then. In media production, the cardinal rule for working, stable systems is
    1 - Do your due diligence & research what you need fore your platform.
    2 - Run separate systems that are designed for the task in hand - you should not really be running Internet & office applications on an authoring system.
    >And its really anoying sitting on a quad core and wait for transcodings for hours just because 3 cores sit there and watch one working...
    I agree multicore could be useful.

  • Clarification of Max 2xCPUs Caveat for OBISE1 for Multi-Core Processors

    Hi all,
    I hope this post finds you all well.
    I'm just hoping for clarification on the Oracle Business Intelligence Standard Edition One caveat that it can use a maximum of 2 CPUs. Can someone please confirm how this effects multi-core processors?
    For example, if I have a machine with 2 x quad-core processor, is this classified as 2 CPUs?
    Kind Regards,
    Gary.

    It's not so much how an application "recognizes" multi-cores but rather how multi-threaded is the application. For example, if I import (or export) 500 images can I continue reviewing in Lr's Library module? The answer, of course, is yes.
    Whether a single quad or dual qauds make a difference is entirely dependent on your processing.
    Here's some information on hardware requirements for Photoshop: http://www.adobepress.com/articles/article.asp?p=1247538&seqNum=2

  • Multi-core processors (core2duo, core2quad, phenom)

    How does Linux (in general) handle multi-core processors? I've read that in the Windows world, programs must be written to use more than one core/processor.
    Do you need to recompile programs with architecture-specific makepkg.conf settings (march, mtune, j) to be able to use the extra cores?
    Finally, is there a good reason to get a tri or quad core processor over a dual core processor? Would a 3.0 ghz dual outperform a 2.4 ghz quad?
    Last edited by mrbug (2008-06-16 17:00:09)

    mrbug wrote:
    Regarding Linux being better with SMP than Windows, that's what I thought... and it's good news for me.
    I do a fair amount of multimedia encoding/decoding. I want to get back into 3D modelling/rendering (with Blender). I also like to listen to music while using the computer, and it's really annoying when the sound skips out for a second because Firefox is forking or Java is loading.
    Would you suggest that I go for a higher speed dual over the lower speed quad then? I think that the quad would be more "future-proof," but I don't know if I like the idea of the individual core speed being lower than my current (single) processor speed.
    Well, in the future applications will more effectively use more processors, so I'd go with the Quad-Core...
    Dual-core also seems fine (I've got dual core in both my desktop and laptop)
    The single core speeds of dual-core processors today are lower than the single processors speed before them, but they seem to be better, don't they ?
    Last edited by moljac024 (2008-06-16 18:32:02)

  • Does LR exploit multi core processors?

    LR seems an obvious candidate to take advantage of dual and quad core processors, such a Intel Core 2 Duo processors, to enhance performance. I'm wondering if it does under the covers?

    Yep. . .although it only gets to about 600% total processor use in Avticity Monitor...but all 8 are firing...and it's really very fast for Lightroom.

Maybe you are looking for