How to get info about currently running threads in j2sdk1.4.2

I am using j2sdk-1.4.2. There are many threads running in my program. I want to see after which thraed is invoked after another thread. I have used Thread.sleep() method to sleep the thread and give the chance to another thread to run.
Thanks,
Amit Mittal.

There is no way known to me to find out, which thread is currently active if you don't want to use debugging-outputs.
But please don't use sleep(), it slows your code down unnecessarily and is not save. Use Thread.yield() in order to give other threads the chance to run.
Regars, tom

Similar Messages

  • How to get info about the mobile, like screensize...

    hi,
    i need some info about the device my midlet is running on.
    how is it possible to get info about the screensize, screentype(color/black) and perhaps devicetype or modelname?
    i already read it somewhere but i didn't find the source again.
    tia
    mmkl

    thx,
    the example below shows some basic information.
    Display myDisplay = Display.getDisplay(this);
    Displayable dis = myDisplay.getCurrent();
    int high = dis.getHeight();
    int width = dis.getWidth();
    boolean isCol = myDisplay.isColor();       
    int nubCol = myDisplay.numColors();more detailed information about model, aren't available through the standard api, on blackberry's there some restricted apis that provide these device-type and other detailed information...
    for more basic information, just look at the class-methods from display and displayable...
    mmkl

  • How to get info about web service caller inside Web Service

    Hi..
    I want to know that can we get info about Web Service Caller inside called web service..
    Info Like IP Address, User Id, User Name
    Regards,
    Ajay Sharma

    Hi,
    I tested following code using JDevloper 11g
    @Resource 
        WebServiceContext wsc;
        @WebMethod
        public String webMethod() {
                    MessageContext msgCtxt = wsCtxt.getMessageContext();
            HttpServletRequest req = (HttpServletRequest)msgCtxt.get(MessageContext.SERVLET_REQUEST);
            System.out.println("Client IP = " + req.getRemoteAddr());
            return req.getRemoteAddr();
        }It is giving me IP address but when i tested this web service from another computer there also it is giving my machine address instead of the machine IP from where the web service is called.
    What is wrong in my code ?
    Regards,
    Ajay
    Edited by: Ajay Sharma on Dec 31, 2012 1:06 PM

  • How to get info about Composition/Candidate window?

    Hi All,
    I'm working on an application which should be able to take multi-language input (especially chinese, japanese, and korean).
    When we type something in Chinese/Japanese, there will be Composition and Candidate Window popped up. I want to know whether there is a way to get/set some attributes/info about those windows.
    Specifically, I want to be able to position the Composition/Candidate Window anywhere I want...
    I've tried the active client tutorial for the on-the-spot and below-the-spot input, but I still haven't find a way to get a 'handle' to the windows...
    Can anyone help? Thanks in advanced :)

    I do not think the individual temp file percentages is of much use. What you usually want to know is how much of the temporary tablespace is in use and how much is available.
    For that I think you want to compare current total usage information that can be found in v$sort_segment against total available for usage data that can be found in dba_temp_files to get the percentage of available temporary file space that is in use.
    I quickly put together the following. See if either is on any use in constructing the information you really want.
    > @t20
    >
    > select
      2    used_blocks
      3   ,total_blocks
      4   ,f.blocks                             as FILEBLOCKS
      5   ,round(used_blocks/total_blocks * 100,1) SORTSEGPER
      6   ,round(used_blocks/f.blocks * 100,1)        TEMPFILEPER
      7  from
      8    v$sort_segment
      9   ,(select sum(t.blocks) blocks from dba_temp_files t) f
    10  /
    USED_BLOCKS TOTAL_BLOCKS FILEBLOCKS SORTSEGPER TEMPFILEPER
           8960       689664    1025024        1.3          .9
    >
    > select
      2    round(used_blocks/ (select sum(blocks) from dba_temp_files) * 100,1) ||'%'
      3    as TEMPFILEPER
      4  from v$sort_segment
      5  /
    TEMPFILEPER
    .9%HTH -- Mark D Powell --

  • How to get info about available Toshiba updates?

    I have noticed that this has taken over from the online product information button.
    I was wondering how do I know now when there is an update availabe for Toshiba specific software and hardware?

    To be honest if the system runs well und stabile you don't need any updates. On my one and half year old notebook I still use original preinstalled OS (recovery image) without any Toshiba specific updates. All I have installed are Microsoft updates.
    Anyway if you want to have info about available updates pick up info about TOSHIBA TEMPRO tool.

  • Get info about current movie

    Hi,
    I just stumbled about the undocumented SystemManager.info function which seems to know quite a lot about the currently running movie - such as backgroundcolor, dpi, frames
    Is there a way to access this information in an AS3 only project (where the main class extends Sprite)?

    Call FM GUI_HAS_ACTIVEX to check if gui is a normal sap gui and supports ActiveX objects
    and FM GUI_IS_ITS               to check if is a web gui

  • How to get application names currently running on Windows?

    Hi Experts,
    Please help me how do I get application names (tasks) currently running (as shown in Windows Task Manager-Application Tab) in Windows.
    Thanks,
    Deepak

    Hi....
    probably it's a unusual solution but you could try it....
    Create a *.bat file   call it test.bat .. Create it on your local machine or on your server folder..
    PARAMETERS: DOSCMD(30) DEFAULT 'c:\test.bat' LOWER CASE.
    call function 'GUI_EXEC'
      exporting
        command          = DOSCMD.
    Inside your test.bat file put this code..(it's a dos command to create a txt file containing the output  of tasklist.exe command
    tasklist > c:\test.txt
    In your test.txt file you will have a list of tasks running on windows...
    Hope to help...
    bye...

  • How to get info about updates' repo and versions, including AUR pkgs

    I'm writing a little tool in python that checks for updates and displays notification in gnome about available updates. I'm doing this by syncing database to custom directory with:
    pacman -Syb /custom/dir
    and then getting list of updates with
    pacman -Qub /custom/dir
    I do it this way because I don't want to sync my real pacman database until I'm actually installing or updating packages. I then get current version and repo of the listed packages with:
    yaourt -Q | grep "list\|of\|packages"
    It's quite long and seemingly wasteful procedure, but an even bigger issue is that I don't know how to do the same thing with packages from AUR. Looking at the yaourt's man pages I see no option to sync database into a custom directory.
    Any suggestions?

    Camus wrote:
    The author of that blog post used cower instead of yaourt, but I don't think cower allows me to sync AUR database into custom dir either. Or am I missing something? I don't how yaourt and cower sync AUR database anyway.
    I actually already wrote such notifier for gnome in bash. But I want to display more info and I want to include AUR packages.
    The perfect tool in my situation would be something that allows me to sync official and AUR databases into custom dir and then displays list of updates with:
    -name of package
    -current version
    -updated version
    -repo
    I can currently do all of the above, but just with official repos and not as elegantly as I want.
    Not sure what you mean by 'sync AUR database' (no such thing exists as it does for the binary repos), but cower will let you download to wherever you want.

  • How to get info about a GP* program?

    I need to know where this GP* (GP0TKCPQBABBT4SVKBIDSSWD56V) program is used in (which cube, transfer rule, etc.). I executed SE38, entered this GP* program name and got back the source code.  On the top section of the source code there is no comments referencing the cube name or anything.  How can I find out more information about GP* program? Thanks for your input.

    A.H.P.,
    Thanks so much for your suggestion. I tried it out and it didn't work as at step #2.  Please let me know what I am doing wrong:
    1)  SE16 table RSSGTPDIR, entered PROGNAME = GP0TKCPQBABBT4SVKBIDSSWD56V  and got back UNI_IDC25 = 0TKCPQBABBT4SVKBIDSSWD56V.
    2)  SE16 table RSTSRULES, entered CONVROUT_L =  0TKCPQBABBT4SVKBIDSSWD56V,  didn't get back any records.  Do you know why? 
    I tried these steps again with 9 other GP* programs and still didn't get back any records in step #2.
    I really appreciate your help since I am totally stuck.

  • How to get Info about all VPD policies configured?

    Hi,
    is it possible to get a list of all VPD policies configured in the database?
    $VPD_POLICY - displays all the fine-grained security policies and predicates associated with the cursors currently in the library cache.
    `- It's empty. This means that this view is populated only if the policy is currently used ..
    Thanks.

    I have not checked but the dba_* views should be able to give to you this. V$vpd_policy only shows the what's there in the library cache.
    Please see this link,
    http://download.oracle.com/docs/cd/E11882_01/network.112/e10574/vpd.htm#CIHJGHDE
    HTH
    Aman....

  • Getting info about a particular property of an object....

    Hi ,
    How to get info/help about a particular property of an object...???? I mean that if all the properties of an object displayed in the property palette(for example an iterator) how to get info about and only about RefreshCondition property , without having to activate the whole on-line help and search it in there.....????? Pressing F1 , on it , displays general help about the Property Inspector....
    NOTE : I use JDev 10.1.3.
    Many thanks ,
    Simon

    If you'll look carefully at the property inspector window you'll notice two bars at the bottom - if you pull them up then the second one contains help text for each property you stand on.
    Note that this only works for properties that have the help in them.
    I think for the pagedef items it doesn't show much info, but try for example standing on JSF objects in your page.

  • How to get services which are running currently

    How to get services which are running currently in the system by a java program. And also how to write a service so that i can start/stop the service from the control panel -> services.

    triple post
    http://forum.java.sun.com/thread.jsp?forum=31&thread=364090&start=0&range=15#1532232
    http://forum.java.sun.com/thread.jsp?forum=31&thread=364088&tstart=0&trange=15

  • How can i get info. about sun systems in real life situation

    Hi
    infact i m not so experienced ? but i have got certification and nowadays i m improving myself and applying for jobs. please tell me how can i get info about the sun systems in real life situation. i mean that how can i get details like that mostly companies use which systems ? what is the trend of companies and how i can get detail of history of sun systems?
    Thanks in advance

    hmm.......... its very difficult to explain. an its more difficult simulate....well my suggession is to get in to some job with your present knowledge and try to learn more from there....

  • How to get information about limitation Internal Memory on device

    hallo ..
    have some question here, so please some person able to answer my questions 
    1. How to get Information about limitation internal memory on device 
    2. is possible to improve internal memory on Blackberry ( move apps on external memory )
    3. any tools to get internal memory activity ?
    thanks for this people who joins here, hope we can share more information about blackberry .. 

    In addition...
    There are three types of potential memory on a BB: 1) Application Memory, 2) Device Memory, and 3) Media/SD Card Memory.
    Application Memory -- This is the most crucial; it is the protected (not user accessible), dedicated, and fixed (in size) space that is available as the destination for the installation of applications (plus some application storage, overhead and such). You cannot touch AppMemory. You cannot improve the maximum AppMemory that your BB has. It is what it is. Applications can only install here...there is no option.
    Device Memory -- This is space on your BB that you can touch to store files, pictures, media, etc. Typically, it is not terribly large, but it is available to you.
    SD/Media Card Memory-- This is what it says...your SD card, for you to store files, media, pictures, etc. It can be as large as your BB OS can support...see this KB:
    KB05461MicroSD card sizes supported by the BlackBerry device software
    On some devices/OS levels, you can only see "File Free" (Options > Status), which I think is equivalent to AppMemory. On other devices, you can see all three memory usage levels (Options > Memory). Here are some guidelines to use:
    KB02843What is the Low Memory Manager feature on the BlackBerry smartphone
    KB14320How to maximize free space and battery power on the BlackBerry smartphone
    KB14213Call logs, SMS text messages, and email messages are deleted from the BlackBerry smartphone
    Lastly, it is always important to properly close applications when you are done with them. Using the Back or the Red key will not do this -- those leave it to the app to decide what to do...and some will leave themselves resident in memory, consuming resources on your BB, slowing the overall performance. Rather, to close an app, press and select "Close" or "Exit"...that will force the application to be closed, freeing up for your new use the resources it was consuming. Some apps will always remain running (typically -- BBMessenger, Browser, Homescreen, Phone, and Messages)...but, you should still close them properly - especially the Browser...if it is left on an active web page, it will not only consume extra resources but battery power as well.
    Further, anytime random strange behavior or sluggishness creeps in, the first thing to do is a battery pop reboot. With power ON, remove the back cover and pull out the battery. Wait about a minute then replace the battery and cover. Power up and wait patiently through the long reboot -- ~5 minutes. See if things have returned to good operation. Like all computing devices, BB's suffer from memory leaks and such...with a hard reboot being the best cure. Some have taken to doing this on a regular basis as a preventive measure...some as frequently as once per day. Others have obtained the QuickPull app to automate a simulated Batt-Pull.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How to get information about creation of a virtual machine on a Hyper-v host.

    Hi,
    How to get information about creation of a virtual machine on a Hyper-v host?
    I need: host name, time created, creator user.
    I saw in Hyper-V-VMMS but I found info about movements of VM between hosts.
    Thank's in advance.
    Denius Valiant

    For Host Name * Created Time Use This Command In PowerShell 
    Get-VM -Name (Read-Host "Type Your Vm Name") |select CreationTime , ComputerName
    and for Create User , As i know you should see on Event Log . 
    Go To Event Log Viewer--->Applications And Services Logs--->Microsoft--->Windows--->Hyper-V-VMMS--->Operational 
    You can see in Event Log who create the Vm.
    Whenever you see a helpful reply, click on Vote As Helpful & click on
    Mark As Answer if a post answers your question.
    LinkedIn:
      Facebook:
      

Maybe you are looking for

  • IPod 5G isn't always playing songs without gaps

    I've found that a couple of my albums (encoded in Lame) refuse to play gapless on my iPod even though it plays fine in iTunes. Converting the MP3s to ALAC/AAC both create files which are gapless on the iPod but the original MP3s still won't play righ

  • Using the WRT54G and a WUSB54GC with an Xbox 360.

    Hi, I have a WRT54G router and I just bought a WUSB54GC compact Wireless-G USB adapter because I thought I could connect it to my Xbox 360 to play games online. Is this possible? I've tried a few times, but I can't get it to work. I'm not too tech sa

  • Can assign some Enhancement Framework to the same client????

    Hello experts, I would like to know that it is possible have some Enhancement Set Framework to the same client. In transaction sm30 with table "BSPWDV_EHSET_ASG" .I would like to assig different Enhancement Set to the same Client. It is possible?? I

  • Using long type field

    hi, supposed that i have a table that have one field LONG type. now i want to use this long type field like that ; insert an exe file about 25-35 mb to this long type field. and then i want to take and down this exe file under c:\try directory and ex

  • Editable template for client?

    Is there such a thing as to build a template in Illustrator so that the client can change the text on it?  Kind of like a Content Management System on a Website?  If so, what would the client be able to use to edit in?  Of course, the client would li