Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > uk.comp.sys.mac > #137096

Re: Remote communications by programs that don't have focus

From Tim Streater <timstreater@greenbee.net>
Newsgroups uk.comp.sys.mac, comp.sys.mac.system
Subject Re: Remote communications by programs that don't have focus
Date 2019-11-13 13:08 +0000
Message-ID <131120191308093820%timstreater@greenbee.net> (permalink)
References <131120191034137906%timstreater@greenbee.net> <bsunse1jvktds7o7gc7lc6ils4it3jr47e@4ax.com>

Cross-posted to 2 groups.

Show all headers | View raw


In article <bsunse1jvktds7o7gc7lc6ils4it3jr47e@4ax.com>, Jaimie
Vandenbergh <jaimie@sometimes.sessile.org> wrote:

>>What I'd like to know is whether an app in any state other than (1)
>>above has equal rights to resources for CPU and for doing I/O to remote
>>hosts. I'm wondering because I have some software that, when it is in
>>states (3), (4) and (6) (and possibly others, I'm still testing) seems
>>at a minimum to lose contact with remote hosts or its timers don't
>>work.
>
>AFAIK the only quiescing mechanism macOS would apply without
>collaboration from the app is App Nap. You can see whether that state is
>applying in Activity Monitor, Energy tab.
>
>"By default, your app becomes eligible for App Nap if it’s not actively
>engaged with the user and hasn’t updated a visible window for some
>length of time." Overview at
>https://developer.apple.com/library/archive/documentation/Performance/Conceptua
>l/power_efficiency_guidelines_osx/AppNap.html#//apple_ref/doc/uid/TP40013929-CH
>2-SW1
>
>Try disabling it and see if that helps - 
>defaults write NSGlobalDomain NSAppSleepDisabled -bool YES
>and a reboot. 

Blimey - thanks. Testing now.

-- 
The truth of the matter is that we Scots have always been more divided amongst
ourselves than pitted against the English. Scottish history before the Union of
Parliaments is a gloomy, violent tale of murders, feuds, and tribal revenge.
Only after the Act of Union did Highlanders and Lowlanders, Picts and Celts,
begin to recognise one another as fellow citizens.

Tam Dalyell

Back to uk.comp.sys.mac | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Remote communications by programs that don't have focus Tim Streater <timstreater@greenbee.net> - 2019-11-13 10:34 +0000
  Re: Remote communications by programs that don't have focus Jaimie Vandenbergh <jaimie@sometimes.sessile.org> - 2019-11-13 12:55 +0000
    Re: Remote communications by programs that don't have focus Jaimie Vandenbergh <jaimie@sometimes.sessile.org> - 2019-11-13 13:02 +0000
      Re: Remote communications by programs that don't have focus Tim Streater <timstreater@greenbee.net> - 2019-11-13 13:09 +0000
        Re: Remote communications by programs that don't have focus Jaimie Vandenbergh <jaimie@sometimes.sessile.org> - 2019-11-13 13:10 +0000
          Re: Remote communications by programs that don't have focus Tim Streater <timstreater@greenbee.net> - 2019-11-13 15:02 +0000
            Re: Remote communications by programs that don't have focus Jaimie Vandenbergh <jaimie@sometimes.sessile.org> - 2019-11-13 16:05 +0000
              Re: Remote communications by programs that don't have focus Barry Margolin <barmar@alum.mit.edu> - 2019-11-13 15:55 -0500
                Re: Remote communications by programs that don't have focus Jaimie Vandenbergh <jaimie@sometimes.sessile.org> - 2019-11-13 21:44 +0000
    Re: Remote communications by programs that don't have focus Tim Streater <timstreater@greenbee.net> - 2019-11-13 13:08 +0000
  Re: Remote communications by programs that don't have focus Lewis <g.kreme@gmail.com.dontsendmecopies> - 2019-11-13 23:45 +0000

csiph-web