In our program, we are concerned about reducing CPU work; how to wait until a boolean condition changes in a "while loop"?

Is there a way to wait until a boolean condition changes (instruction is sent) in a "while loop" (because I want the program run until I press exit button)? Now it is consuming a lot of CPU because it is running the loop very fast waiting for instructions unless I stop the program.
Thank you.

Use /functions/time and dialog/wait until next millisecond multiple in the
loop. Input 100ms.
"mcdesm" wrote in message
news:[email protected]..
> In our program, we are concerned about reducing CPU work; how to wait
> until a boolean condition changes in a "while loop"?
>
> Is there a way to wait until a boolean condition changes (instruction
> is sent) in a "while loop" (because I want the program run until I
> press exit button)? Now it is consuming a lot of CPU because it is
> running the loop very fast waiting for instructions unless I stop the
> program.
>
> Thank you.

Similar Messages

  • Computer crashed, we got a new computer but our ipod touchs are synced with the old one how do i get our stuff on to the new computer without losing it on our ipods

    Our computer crashed last week.  We just bought a new one last night and installed a iTunes on to the computer.  How do we transfer what we have on our iPods on to the new computer without losing anything

    - Transfer iTunes purchases by:
    iTunes Store: Transferring purchases from your iPhone, iPad, or iPod to a computer
    - Transfer other music by using a third-party program like one of those discussed here:
    Copy music from Ipod to new computer...: Apple Support Communities
    - Make a backup of the iPod by connecting the iPod to the computer and right clicking on the iPod under Devices in iTunes and select Back Up
    - Restore the iPod from that backup.

  • I'm concerned about "heart bleed". How secure is my Apple ID and password?

    Can anyone tell me if I should change my password? Has anyone been compromised by "heart bleed" within apple?

    Phil0124 wrote:
    Apple's services where not Affected according a statement they released after the issue was discovered.
    No such statement can be found. Only a posting from one reporter at recode.net quoting an un-named Apple employee as saying “Apple takes security very seriously. IOS and OS X never incorporated the vulnerable software and key Web-based services were not affected,”.
    Probably best to wait for something with an Apple logo on it to post your words. I stopped at the end of last week when no confirmation showed up.
    There is evidence that some of the sub-contractors they use to distribute data were affected, so perhaps they are vetting them before publising anything.

  • Concerns about 21CN and future systems and protoco...

    I don't know if this is the right forum for this topic.  Please tell me if it should be somewhere else.
    I live in a block of managed "retirement flats for the active retired" - not "care home", please !
    As part of the security features, we have a 24/7 electronic emergency "help system" whereby, when we pull a cord in the bathroom or bedroom, for example, we alert a dedicated help centre about sixty or seventy miles away which then provides whatever assistance is required either by talking to us directly or by alerting emergency services locally.
    Obviously, this system depends on access to the public telecommunications network in order to work at all.
    We have been informed by the management company that our system needs to be replaced as it is now getting too old to maintain.  Also, that we will have to pay for it ourselves.  Both facts of which we accept.
    We have been given two new systems to select from (one called Tunstall Communicall and the other called Tynetec Systems).  However, one of the first snags we have run into is one of "future proofing".  We have been learning about BT's plans for "21CN" and are concerned about whether any of the two systems we have been given to choose from  will continue to function after 21CN comes into effect.  Also, whether they will continue to work if BT changes or modifies the specifications for 21CN at any time now or in the future.
    Tunstall Communicall claim (repeat, claim) that their system is entirely futureproof by virtue of the fact that they can program into their boxes any protocol that BT (or any other telecomms provider) can throw at them .  This, they claim, applies now and in the future.
    Tynetec, on the other hand, while claiming (again, claiming) to be fully 21CN compliant, doubt that it is possible for any manufacturer to guarantee to meet every change that BT might throw at them in the future and therefore see no point in trying to guess what BT might do beyond 21CN.  As a consequence, they see no point in building this kind of functionality into their systems.  Who is telling the truth?
    How can we learn more about 21CN in particular -- and BT's plan for its networks in general?  Also, will the adoption of Internet Protocols affect the kind of equipment we are planning to invest in?  Also, what does 21CN mean to people like us; are its specifications likely to change (and thereby leave us in the lurch) and is it even going ahead at all?
    Would it be worthwhile asking the local BT Area Manager in our area to send someone technical to come and talk to us about this?  After all, we stand to be forking out more than £24,000 for something that might not work in a few years time - all because of BT.

    Have a check Here it is a web site to do with the 21cn switch over.
    I suspect that your alarm system will work as all it is is dial up telemetry over a pstn line.
    To a certain extent 21cn at CPE (customers premises equipment) level will be backwards compatible, there will be many other companies who use this technology, like water and gas company's.
    There was a similar issue back in the 80s when BT upgraded their exchanges from analogue to digital (ie Strowger to System X and Y) The majority of phones worked but the older ones would not give you the full range of facility's (pulse dialling and tone dialling)
    (If I have helped you in any way to say "Thank You" please click on the star next to the message. Thank You)
    If I have solved your Issue please click the "Mark as accepted solution" button.

  • Security concern about grid control agent

    I am planning for grid control rollout. Our system administrator is concerned about
    security of grid control agent. For example, I do not know the Oracle password,
    I sudo to Oracle after login as myself.
    What are the options do I have ? I have told my system admin that
    other companies use "oracle" - the database sysdba/software owner as agent owner.
    But my system admin think this is a big security risk since he has to tell me the
    oracle password

    In more explicit terms, what is the security concern you have?
    Specifically, I do not see what you mean by the sentence:
    when I install grid control agent as "oracle", I provide "oracle "password in order
    to run job on our unix server.By "oracle" are you referring to the Oracle Software owner account, by which the Database and/or EM software was installed?
    Please explain how the job is related to installation of management agent. If you are talking about running jobs after installation, when agent is configured and running, where and how exaclty are you required to enter "oracle" password?

  • Update Multiple Columns when concerned about redo/undo log sizes.

    Hi ,
    I have update statements that updates multiple columns at once if any of them is changed. What I see that even though the value of column is not changed it still increases the redo size.
    Below is a sample code similar to the ones in my code. Basically I check whether there is a difference in any of the columns to be updated and update all of them.
    Is there a way to improve redo log size without splitting the update statement for every column that I will be updating. Redo/Undo log size is a concern for us..
      For i In 1.rec.Count Loop
        Update employees e
           Set e.first_name = rec(i).first_name, e.last_name = rec(i).last_name
         Where e.first_name != rec(i).first_name
            Or e.last_name != rec(i).last_name;
      End Loop;My database is 10g.

    Muhammed Soyer wrote:
    Redo/Undo log size is a concern for us..You are worried about the wrong thing.
    If you are concerned about the amount of undo and redo, you should be less concerned about the small diffrence between updating 1 or 3 columns and remove the loop that is contributing to a massive increase in both undo and redo.
    Re: global temporary table row order
    Name                                  Run1        Run2        Diff
    STAT...undo change vector size     240,500   6,802,736   6,562,236
    STAT...redo size                 1,566,136  24,504,020  22,937,884Run2 shows what adding a loop to a regular SQL statement will do to undo and redo. It made the redo used 15 times greater and the undo almost 30 times greater.

  • Planning to Buy iPad-3 concerned about Backlight Bleeding issue !

    Hi Guys,
    I am planning to buy the iPad-3, BUt with so many issues of Backlight Bleeding issues popping up. It looks a Rampant issue. Do you guys think I should wait some days before the First Batch of Munfacturing is sold out. Maybe once the Second Batch of production hits the stores this problem would not be there. But at the moment looks like Early Production and the Hasty process to get the Products out on Launch day and ready for delivery could have been the reason these issues slipped out of Quality Control. Do I wait like a month or so? I can do that, will waiting a month help ? I hope I dont get it in my iPad. I dont wanna go through the hassles of exchanging and stuff I would rather wait and buy a little late than go through these issues.
    Cheers !
    Augustya

    Augustya, you are always free to wait until another round of hardware becomes available if you are concerned about problems people are having.
    I would point out, though, that the discussion group is often looked at as an emergency room in a hostpital...you see only problems because no one healthy goes there.  You can get a false sense of the magnitude of problems if you only look at the number of complaints showing up here.
    On the news last night they said Apple sold over 3 million iPads last weekend...the couple dozen problems brought up on here is insignificant out of 3 million items.  Another way of looking at the magnitude of the problem.
    So if you have the ability to buy now, you can always go to the store, Apple if that is what you have available, open the iPad there, check it out (they come charged) and see if there is a light bleed problem.  If so complain on the spot and ask for a different unit.
    Or wait for another round to be manufactured...just do what you are most comfortable doing.

  • Program needs to wait until BDC will get over

    Hi Experts,
    In my report program i am using BDC call transaction. Once this BDC action will get over after that i need todo some logic in my program. How to wait until BDC will get over?
    Anyone have idea?
        CALL TRANSACTION 'CK41' USING  zdata
                                OPTIONS  FROM g_s_options
                                MESSAGES INTO msg_tab.
        PERFORM call_processing USING wa_default-kalaid
                                         wa_default-klvar
                                         wa_default-kokrs
                                         wa_default-bukrs.
    Mohana

    Hi,
    Program gets over in BDC call transaction after call transaction statement.
    If you use call transaction statement as below,
      CALL TRANSACTION 'ME22' USING bdc_tab MODE 'N' UPDATE 'S'     MESSAGES INTO messtab.
    Here Update 'S' means update will be syncronouse so program will wait untill this BDC gets completed, if you will not select this statement then by default program may take update 'A' which is asyncronouse means BDC will be processed parallel to this program, please check.
    After this call transaction statement you can do code changes as per your requirment in the same program.

  • Wondering if I should upgrade from OS 10.6.8 to yosemite as search engines are acting a little weird - fan can come on, slow to shut down and also concerned about Security as my OS is older and no longer upgraded etc...?

    Problem description:
    Wondering if I should upgrade to Yosemite from Mac pro 10.6.8  as search engines are not always responding well - Fan comes on with firefox/safari is not always responding on some sites - also concerned about security issues as my system is older and not able to receive ? I have used etrecheck and copied results here - Any help/suggestions much appreciated  - Thanks kindly!
    EtreCheck version: 2.1.8 (121)
    Report generated February 7, 2015 10:41:15 AM EST
    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 (13-inch, Early 2011) (Technical Specifications)
        MacBook Pro - model: MacBookPro8,1
        1 2.3 GHz Intel Core i5 CPU: 2-core
        4 GB RAM
            BANK 0/DIMM0
                2 GB DDR3 1333 MHz ok
            BANK 1/DIMM0
                2 GB DDR3 1333 MHz ok
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
        Battery Health: Normal - Cycle count 303
    Video Information: ℹ️
        Intel HD Graphics 3000 - VRAM: 384 MB
            Color LCD 1280 x 800
    System Software: ℹ️
        Mac OS X 10.6.8 (10K549) - Time since boot: 1:24:41
    Disk Information: ℹ️
        Hitachi HTS545032B9A302 disk0 : (298.09 GB)
            - (disk0s1) <not mounted> : 210 MB
            Macintosh HD (disk0s2) / : 319.73 GB (198.41 GB free)
        OPTIARC DVD RW AD-5970H
    USB Information: ℹ️
        Apple Inc. FaceTime HD Camera (Built-in)
        Apple Inc. BRCM2070 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Inc. Apple Internal Keyboard / Trackpad
        Apple Computer, Inc. IR Receiver
    Thunderbolt Information: ℹ️
        Apple, Inc. MacBook Pro
    Configuration files: ℹ️
        /etc/hosts - Count: 15
    Kernel Extensions: ℹ️
            /System/Library/Extensions
        [not loaded]    com.olympus.DSSBlockCommandsDevice (1.1.0) [Click for support]
    Problem System Launch Daemons: ℹ️
        [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]
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Click for support]
        [loaded]    com.adobe.SwitchBoard.plist [Click for support]
        [loaded]    com.microsoft.office.licensing.helper.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.google.keystone.agent.plist [Click for support]
    User Login Items: ℹ️
        Flux    Application  (/Applications/Flux.app)
    Internet Plug-ins: ℹ️
        JavaAppletPlugin: Version: 13.9.8 - SDK 10.6 Check version
        FlashPlayer-10.6: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        QuickTime Plugin: Version: 7.6.6
        AdobePDFViewerNPAPI: Version: 10.1.12 [Click for support]
        AdobePDFViewer: Version: 10.1.12 [Click for support]
        DivXBrowserPlugin: Version: 1.4 [Click for support]
        Flash Player: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        SharePointBrowserPlugin: Version: 14.1.0 [Click for support]
        Google Earth Web Plug-in: Version: 7.1 [Click for support]
        Silverlight: Version: 4.1.10329.0 [Click for support]
        iPhotoPhotocast: Version: 7.0 - SDK 10.7
    Audio Plug-ins: ℹ️
        iSightAudio: Version: 7.6.6
    3rd Party Preference Panes: ℹ️
        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: ℹ️
             7%    WindowServer
             1%    plugin-container
             1%    firefox
             0%    fontd
             0%    Flux
    Top Processes by Memory: ℹ️
        515 MB    firefox
        52 MB    mds
        43 MB    WindowServer
        43 MB    Finder
        34 MB    plugin-container
    Virtual Memory Information: ℹ️
        2.14 GB    Free RAM
        745 MB    Active RAM
        475 MB    Inactive RAM
        929 MB    Wired RAM
        231 MB    Page-ins
        0 B    Page-outs
    Diagnostics Information: ℹ️
        Feb 7, 2015, 09:16:09 AM    Self test - passed

    ... Fan comes on with firefox/safari is not always responding on some sites -
    An SMC reset may resolve the otherwise inexplicable fan behaviour. Be sure to read the procedure carefully and follow all the steps exactly as written, even if they seem inapplicable or trivial.
    Fixing a modified Hosts file requires specific instructions. Apple Support Communities contributor and EtreCheck author etresoft recently added a User Tip discussing that concern, and how to correct it: Fixing a hacked /etc/hosts file
    Back up your Mac prior to making any changes to its file system. To learn how to use Time Machine read Mac Basics: Time Machine backs up your Mac.

  • I just got my MacBook Pro a month ago. However I am realizing I need more hard drive space due to aps and programs.  I use am external but am concerned about the space. Is there a way to upgrade my hard drive from apple and keep my warranty valid?

    I just got my MacBook Pro a month ago. However I am realizing I need more hard drive space due to aps and programs.  I use am external but am concerned about the space. Is there a way to upgrade my hard drive from apple and keep my warranty valid?

    That would depend on whether your model actually has a hard drive. If you have the new 2013 Retina model, then you have a fixed storage device built-in that cannot be modified after purchase.

  • My wife and I are thinking about getting match but we have different itunes accounts and we are worried about losing our individual apps

    my wife andI are thinking about getting match so that all of our music is in one place. However, we are currently have different itunes accounts and we are worried about losing the different apps that we have accumulated over time, also she has more storage than I do and we are a little worried about that.  Does anybody have any ideas.

    You won't lose any apps but one of you will lose the ability to update apps on the device.
    For you to share iTunes Match all devices must be signed into the same iTunes Store Apple ID that was used to purchase the service. This means any Apps that were purchased with the other Apple ID cannot be updated on the device as a device can only be associated with one Apple ID every 90 days.
    I know it's not what you want to hear, but my suggestion is to simply stay with the system you have. It will cause you less headaches.

  • I cannot highlight more than one e-mail.  I am concerned about this when I am in the Junk mailbox.  I do not want to open any e-mails that are in this mailbox.

    I cannot highlight more than one e-mail.  I am concerned about this when I am in the Junk mailbox.  I do not want to open any e-mails that are in this mailbox.

    Two thoughts:
    1.  You never need to open any emails in the junk mailbox.  You can simply do Mailbox > Erase Junk Mail from Mail's menu.
    2.  What happens if you hold the shift key after highlighting the first in a series of emails, then click the second one with the shift key depressed?  That should hightlight both.

  • Our service provider add one digit to all nos. After I update all contacts using one of available programs, contacts are updated but messages received appear with pure phone nos not contact name??any fix

    Our service provider add one digit to all nos. After I update all contacts using one of available programs, contacts are updated but messages received appear with pure phone nos not contact name??any fix

    http://discussions.apple.com/thread.jspa?threadID=2280669&tstart=0

  • How does the email program in the suite compare with Google GMail especially in handling spam or are both about the same?

    How does the email program in the suite compare with Google GMail especially in handling spam or are both about the same?

    Firefox doesn't include an email client. Are you asking about the Seamonkey suite? The Seamonkey support options are over here: http://www.seamonkey-project.org/community

  • I've read that Promise Pegasus2 series does not sell replacement parts. I'm buying the new MacPro but am concerned about spending $2K for storage that may break and cannot be fixed. What are others buying for storage for the new MacPro?

    I've read that Promise Pegasus2 R6 thunderbolt 2 series does not sell replacement parts (no replacement parts for any of the Pegasus line). I'm buying the new MacPro but am concerned about spending $2K for storage (12tb version) that may break and cannot be fixed (am told that one must purchase a new unit if a part breaks). What are others buying for storage for the new MacPro? Thanks so much for your help.
    Discussion about this issue at MacWorld.com:  http://www.macworld.com/article/2082783/first-look-promises-pegasus2-r6-thunderb olt-2-raid-array.html

    I've used the original Pegasus R6 units for a couple of years now and have been very pleased with them.  On the two occasions I've had to call on their technical sujpport, I've found them readily available, knowledgeable, and very helpful.  In one case it involved the reset of a unit after a power failure at an inopportune time; in the other case it was a question about upgrading disk drives to higher capacities (1 Gb gto 4 Gb).  I was pleased to learn that their tech support people were in California and as good if not better than upper-tier AppleCare reps. The hardware itself has functioned flawlessly so far.

Maybe you are looking for

  • IPhone 4 in Recovery Mode--will I get my photos&videos back when I restore?

    Last night, after syncing my iPhone 4, I attempted to download and install the latest iPhone software. It downloaded (after 3 hours which was crazy especially since download and successful installation took less than an hour with my husband's iPhone

  • Why can't I save a zoomed in photo in iPhoto 7.1.5?

    I would like to be able to zoom in on a photo in iPhoto and save it that way but it doesn't work. Is this possible or am I doing something wrong?

  • Can't find my pictures in iphoto

    Helllo, I am new to the iMac and having some start up problems. I use photoshop cs4 for photo editing and I just edited a pic. I want to access it in iPhoto now but I can't find the picture. I try to import the new pic but it tells me it is already i

  • Alv grid buttons

    Hi all, my requirement is to remove buttons in left side of grid output in existing alv grid report , i am sending sample code of pls revert me with modification pls do needful TYPE-POOLS: slis. DATA: BEGIN OF i_data OCCURS 0, MATNR LIKE mara-MATNR,

  • Regular Kernal Panics - please help.

    Hey, No issues running Leopard so far, it's failed to wake a few times but otherwise a good experience. That was until yesterday when my MacBook decided to repeatedly panic causing a transparent black box to appear with a power logo telling me to res