Thread CPU time: does it include the time while thread is waiting

Hi,
My question is regarding the getCurrentThreadCpuTime() supported by the ThreadMXBean.
I wonder if the returned time includes the time while the thread is waiting, i.e. after the thread calls wait() and before getting a notify() or a notifyAll().
Thanks,
Nuha

CPU time is intended to reflect actual time executing on a CPU. If block for a lock/wait/sleep or other blocking operation like I/O then you don't consume CPU while blocked.
On Solaris it is implemented using gethrvtime()
If a VM used a busy-wait for something rather than blocking (not likely with wait()) then that's consuming CPU time.

Similar Messages

  • DATE type returned from function does not return the time component

    Hi,
    I'm dealing with a strange problem. I have a PL/SQL function (running on Oracle 8.1.4.7) which returns a DATE value. Like we all know the DATE datatype includes a date component and a time component.
    The function I used for testing is like this:
    FUNCTION ReturnDate return Date is
    dReturn Date;
    Begin
    select sysdate into dReturn from dual;
    return dReturn;
    end ReturnDate;
    When I call this function from .NET using ODP.NET the date value I get does not have the time component included only the day-month-year components.
    This is a code-snippet that calls the function :
    command.CommandText="Schema.ReturnDate";
    command.CommandType=CommandType.StoredProcedure;
    command.Parameters.Add("Return_Value",
    OracleDbType.Date,0,ParameterDirection.ReturnValue);
    command.ExecuteNonQuery();
    I use the OracleDbType.Date type which I think is the most logical choice, because the type in the Database is after all DATE.
    However this does not include the time componet. But if I change the OracleDbType.Date to OracleDbType.TimeStamp I get the time component. I'm not happy with this "hack" because I'm not sure what will happen when we upgrade our version of the Database to Oracle 9i which uses the new TimeStamp datatype.
    Is this a bug that the OracleDbType.Date does not include the time component??

    How do you examine the output Date value?
    If it is from the string, then the time components will
    not show because the NLS_DATE format in the client
    machine does not contain the time components.
    In American, the Date format is 'DD-MON-RR' by default whereas, the TimeStamp format is 'DD-MON-RR HH.MI.SSXFF AM' by default.
    Can you take a look at the time components from the OracleDate by accessing the time properties, eg. OracleDate.Hour, OracleDate.Minute..etc to see if the time values are there?
    Thanks
    Martha

  • Does a Time Machine backup include the Apple_Boot Recovery HD?

    I've done a Time Machine backup with the Apple_Boot Recover HD on my internal drive.  (Mid 2011 MacBook Air - OS X version 10.7.2 - single user)
    Two questions:
    Did the Time Machine backup include the Apple_Boot Recovery HD?
    If I subsequently need to restore the backup will Time Machine recreate the Apple_Boot Recovery HD on the internal drive?
    Thanks in advance for your help,

    If you run the command "diskutil list" in terminal, it will show if you have the rescue partition on your disk or not:-
    /dev/disk2
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *500.1 GB   disk2
       1:                        EFI                         209.7 MB   disk2s1
       2:                  Apple_HFS Macintosh HD            499.2 GB   disk2s2
       3:                 Apple_Boot                         650.0 MB   disk2s3
    if you see the "Apple_Boot 650.0 MB" then you have the rescue partition.
    I have just restored my machine from a Time Machine backup, and the Apple_Boot partition has dissapeared.

  • Is it possible to change the Global Lockout Message to include the time duration?

    Hi Everyone,
    Is it possible to edit the error messages that portal returns?
    Are they stored in a table we can just modify? Or are they
    secured?
    The one specifically that a client would like to change is:
    the error message related to the global lockout message to
    include the time that people would have to wait.
    Any ideas?
    Thanks
    tim

    Tim,
    You can change the message via an API. The code that we used is
    below:
    DECLARE
    CURSOR c_id IS
    SELECT id
    FROM wwnls_strings$
    WHERE name = 'edit_password_txt';
    v_msg LONG := 'Enter your old password and a new password.
    Confirm your new password to make sure you entered it correctly.
    Passwords are %1.'||chr(10)
    ||'Passwords must : <br>' ||chr(10)
    ||'<UL><LI> be at least 7 characters long
    </LI>' || chr(10)
    ||'<LI> not be the same as your username </LI>'
    || chr(10)
    ||'<LI> contain at least one alpha character
    </LI>' || chr(10)
    ||'<LI> contain at least one numeric character
    </LI>' || chr(10)
    ||'<LI> not be the same as your previous
    password </LI></UL>' ;
    v_id wwnls_strings$.id%TYPE;
    BEGIN
    OPEN c_id;
    FETCH c_id INTO v_id;
    CLOSE c_id;
    portal30_sso.wwnls_api.set_string      (p_id => v_id
                             ,p_text => v_msg
                             ,p_language => 'us');
    END;
    /

  • My ipad 1 loses wifi connections when it goes to sllep. have to go into settings to reconnect. Does this all the time. please help.

    my ipad 1 loses wifi connections when it goes to sleep. have to go into settings to reconnect. Does this all the time. please help.

    my ipad 1 loses wifi connections when it goes to sleep. have to go into settings to reconnect. Does this all the time. please help.

  • TS2755 I note with IOS8 that when I delete a msg from a thread it still shows up with the time as a recent msg. How do I remove this without deleting the entire thread?

    I Note with the iOS8 update when I now delete a msg from a contact thread it still shows up with the time as a recent msg. How do I delete this from recent without deleting the entire thread?

    BC
    My understanding is that music syncing is a one way process from computer iTunes to your iPhone.  I think what you are asking is to have IOS synching back to an OSX or PC system.  The software doesn't work that way.
    You either have to uncheck the songs to be synced or create a separate playlist for "BC Canada iPhone" and only sync that playlist.
    As well any purchases you made on your iPhone need to be transferred to your iTunes so they can come back to your phone when you re-sync.
    Hope this helps, even though it's not the answer you might have wanted.
    Cheers

  • Can I include the time of a message as well as the date in my In Box ?

    Can I include the time of a message as well as the date in my In Box ?

    Firefox doesn't do email, it's strictly a web browser.
    If you are using Firefox to access your mail, you are using "web-mail". You need to seek support from your service provider or a forum for that service.
    If your problem is with Mozilla Thunderbird, see this forum for support.
    [http://www.mozillamessaging.com/en-US/support/] <br />
    or this one <br />
    [http://forums.mozillazine.org/viewforum.php?f=39]

  • Hello am using ios 7.0.4 I have a question about messages that it does not show the time of a particular message after first message that I recive form a paricular person so please in the next version change this and with every message show time and date

    hello am using ios 7.0.4 I have a question about messages that it does not show the time of a particular message after first message that I recive form a paricular person so please in the next version change this and with every message show time and date

    Hi,
    How is everything going? Have you checked this issue from OWA? If so, please let me know the result.
    In adition, please also try to use the following powershell commands to check if the assistant has right permissions:
    Get-MailboxFolderPermission -Identity
    CEO’s email address:\Calendar -User assistant’s email address
    Also check with:
    Get-Mailbox -Identity CEO’s mailbox
    | fl *GrantSendOnBehalfTo
    Please let me know the result.
    Best Regards,
    Steve Fan
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • HT4914 How long is the $24.99 subscription period for iTunes Match, nowhere does it show the time period?  Week, month year?

    How long is the $24.99 subscription period for iTunes Match, nowhere does it show the time period?  Week, month year?

    It's an annual amount - it's at the top of that page :
    iTunes Match requires an annual subscription fee of $24.99

  • Where does iPhoto save the time for each photo?

    I copied some photos from the library to my desktop, ran software to add an hour to several at once (forgot daylight savings time), deleted the original photos from iPhoto, and re-imported the new copy with the new times back into the library.
    I was very surprised to see the information window on the bottom left side of the iPhoto window still showed the old time. Even more confusing is that if I bring up the main info window (CMD-I), the time indicated there is the time I corrected to.
    Why do these times not match? Where is iPhoto keeping the old times?

    Bob:
    Other users have reported that also. I've used PhotoInfo to change time and dates of file and upon importing back into iPhoto they are reported as changed in both the Source window info section and in the Get Info window's Photo section. Don't know why I can do it and the other users were not able to.
    I just dragged the photos from the thumbnail window to the desktop, launched PhotoInfo, went to the File->Open menu and select the file. I then changed the time and clicked on Change button. Upon importing into iPhoto the date displayed as changed. If you didn't use PhotoInfo you might give it a try.

  • A JE created from the AP Invoice does not include the project # on all trx

    A JE created from the AP Invoice does not
    include the project # for the amounts entered in the freight box. To
    duplicate, do the following:
    1. Open an AP Invoice
    2. Enter BP Code
    3. Select Service type
    4. Enter a Project Code in drop down box on Accounting tab
    5. Enter a line in the Contents; specify GL Account, amount and Tax
    Code Open Freight box
    6. Enter an amount in one of the lines
    7. Click ADD
    8. Go back to the invoice and go to the Accounting tab Click on the GL
    journal note and you can see that the line corresponding to the
    contents line has a project, but the line corresponding to the Freight
    box item does not.
    My customer users these projects when printing GL agings and the
    information is very important. Shouldn't this information be carried
    forward on all transactions on the Journal entry? Is there a way to get this information to post?

    Hi Pat,
    the project code (PC) on the marketing document may only be applied to the business partner (BP), hence the only row in the associated journal entry (JE) with this project code is that of the BP.
    You can link project codes to specific accounts (CoA -> select account -> account details -> project code) & this project code will then be assigned every time the account is found in a JE.
    If you require the project code to be applied to the freight, you may assign this project code to the account you have defined for this freight. The drawback is naturally that the project code will then  be pulled every time this freight is used, regardless of whether or not the PC is associated with the BP or not.
    It is possible to manually assign project codes to every row in a journal entry, hence this should also be possible with SDK. You might explore the possibility whether it might be possible to automatically assign the BP PC to all rows in the JE using a script.
    All the best,
    Kerstin

  • Is it ok to leave Time Capsule on all the time?

    Hi
    Is it ok in terms of the life of the hard drive to leave Time Capsule on all the time? I know it has to be on to run the wireless back ups and for the Wi-Fi to work but i have heard quite alot of people saying that you should turn it off for a couple of hours occasionally.
    Is this true and will that increase the TC life?
    Thanks

    drummer_91 wrote:
    Yeah it definatly spins down but it does get super hot?
    I thought that about no on/off switch.
    Thanks for the advice.
    Ouch super hot.. that is not good.. the only one in my experience that did get super hot was gen1 with 1TB hitachi disk.. because it was just a very poor combination and the disk is extremely hot running.
    The latest gen3 and gen4 should be warm.. maybe hot during a backup but certainly not what you would call super hot. In later ones, that is a sign all is not well with the power supply and it will fail. Even fixing the cooling at this stage the damage may already be done.
    What gen is yours and how old? If it is outside of warranty I would take steps to keep it cooler. Not shutting down overnight... actually actively cooling it.
    The most effective way is to force the fan on.
    https://sites.google.com/site/lapastenague/a-deconstruction-of-routers-and-modem s/apple-time-capsule-repair/apple-time-capsule-fan-mod
    Placing fans outside the TC is useless unless you can seal it to the device and force air through it. blowing on the case will do nothing.
    A better solution is to use an external power supply.
    https://sites.google.com/site/lapastenague/a-deconstruction-of-routers-and-modem s/apple-time-capsule-repair/cisco-adp-30rb-4pin-molex
    That removes a lot of the waste heat load.

  • I have bought a time capsule to use as time machine device. Until now I have used a external hard disk. How can I transfer the the old time machine datas to the time capsule?

    I have bought a time capsule to use as time machine device. Until now I have used a external hard disk. How can I transfer the the old time machine datas to the time capsule?

    This is really difficult to the point of not really worth it.
    Keep the old TM backups in archive.. and start afresh on the TC.
    Time Machine has a different way of backing up on Network drives cf Local drives.
    Pondini does have a method to do it... but I would not recommend it.
    http://pondini.org/TM/18.html

  • When I try to watch any video clip I get this:   The version of "Adobe Flash Player" on your system does not include the latest security updates and has been blocked. To continue using "Adobe Flash Player", download an updated version from Adobe's we

    When I try to watch any video clip I get this:
    The version of “Adobe Flash Player” on your system does not include the latest security updates and has been blocked. To continue using “Adobe Flash Player”, download an updated version from Adobe’s website.
    I tried clicking on the Adobe Flash Player.  It said it accepted it but it did not make a difference.
    Can anyone help?
    Thank you!

    This did not work
    On Mon, Oct 27, 2014 at 8:59 PM, Apple Support Communities Updates <

  • The version of "Adobe Flash Player" on your system does not include the latest security updates and has been blocked. To continue using "Adobe Flash Player", download an updated version from Adobe's website.

    The version of “Adobe Flash Player” on your system does not include the latest security updates and has been blocked. To continue using “Adobe Flash Player”, download an updated version from Adobe’s website.

    You haven't actually asked a question, but as stated you should only download Flash Player directy from Adobe.
    Nor have you said what version of OS X and Safari you are running.
    You can check here:  http://www.adobe.com/products/flash/about/  to see which version you should install for your Mac and OS. Note that version 10,1,102,64 is the last version available to PPC Mac users*. The latest version,10.3 or later, is for Intel Macs only, as Adobe no longer support the PPC platform. Version 11.0.1.152 is for Lion.
    * Unhelpfully, if you want the last version for PPC Macs, you need to go here:  http://kb2.adobe.com/cps/142/tn_14266.html  and scroll down to 'Archived Versions/Older Archives'. Flash Player 10.1.102.64 is the one you download. More information here:  http://kb2.adobe.com/cps/838/cpsid_83808.html
    You should first uninstall any previous version of Flash Player, using the uninstaller from here (make sure you use the correct one!):
    http://kb2.adobe.com/cps/909/cpsid_90906.html
    and also that you follow the instructions closely, such as closing ALL applications first before installing. You must also carry out a permission repair after installing anything from Adobe.

Maybe you are looking for