Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming > #2416 > unrolled thread
| Started by | bob <bob@coolfone.comze.com> |
|---|---|
| First post | 2012-10-31 07:48 -0700 |
| Last post | 2012-11-04 00:17 -0500 |
| Articles | 8 — 6 participants |
Back to article view | Back to comp.programming
To sleep, perchance to dream? bob <bob@coolfone.comze.com> - 2012-10-31 07:48 -0700
Re: To sleep, perchance to dream? Robert Wessel <robertwessel2@yahoo.com> - 2012-10-31 12:46 -0500
Re: To sleep, perchance to dream? "Pascal J. Bourguignon" <pjb@informatimago.com> - 2012-11-03 04:16 +0100
Re: To sleep, perchance to dream? Wally W. <ww84wa@aim.com> - 2012-11-03 08:52 -0500
Re: To sleep, perchance to dream? "Pascal J. Bourguignon" <pjb@informatimago.com> - 2012-11-03 16:26 +0100
Re: To sleep, perchance to dream? Wally W. <ww84wa@aim.com> - 2012-11-03 15:22 -0500
Re: To sleep, perchance to dream? Mensanator <mensanator@aol.com> - 2012-11-02 21:45 -0700
Re: To sleep, perchance to dream? Robert Miles <milesrf@Usenet-News.net> - 2012-11-04 00:17 -0500
| From | bob <bob@coolfone.comze.com> |
|---|---|
| Date | 2012-10-31 07:48 -0700 |
| Subject | To sleep, perchance to dream? |
| Message-ID | <5e627065-8b9c-43ae-9ae3-867777cf5476@googlegroups.com> |
Do programmers actually try to ensure that their applications function correctly when the computer goes into sleep mode for 10 hours and then comes out? Or do they just hope no one puts the computer in sleep mode while their app is running?
[toc] | [next] | [standalone]
| From | Robert Wessel <robertwessel2@yahoo.com> |
|---|---|
| Date | 2012-10-31 12:46 -0500 |
| Message-ID | <1lo2989g82eu7laoil7n2p3ih37aj90lp3@4ax.com> |
| In reply to | #2416 |
On Wed, 31 Oct 2012 07:48:49 -0700 (PDT), bob <bob@coolfone.comze.com> wrote: >Do programmers actually try to ensure that their applications function correctly when the computer goes into sleep mode for 10 hours and then comes out? > >Or do they just hope no one puts the computer in sleep mode while their app is running? Sure. Testing behavior during sleep/hibernate functions is a normal part of release testing. If the applications requires special handling for those, or can't support sleep/hibernate at all, the system provides functions for dealing with that. For example, in Windows, you can register to be notified of a pending power state change with a WM_POWERBROADCAST message , and you can tell the system that a thread can/cannot be suspended with SetThreadExecutionState() (post-XP, the power management stuff is a bit different in XP*). *In XP you can respond "no" to the WM_POWERBROADCAST, and while that's still supported in Vista/Win7/Win8, it's not the preferred approach.
[toc] | [prev] | [next] | [standalone]
| From | "Pascal J. Bourguignon" <pjb@informatimago.com> |
|---|---|
| Date | 2012-11-03 04:16 +0100 |
| Message-ID | <87hap7ml4l.fsf@informatimago.com> |
| In reply to | #2416 |
bob <bob@coolfone.comze.com> writes: > Do programmers actually try to ensure that their applications function > correctly when the computer goes into sleep mode for 10 hours and then > comes out? > > Or do they just hope no one puts the computer in sleep mode while > their app is running? In any case, it's a good question. For the time aspects, see: http://unix4lyfe.org/time/ http://naggum.no/lugm-time.html http://infiniteundo.com/post/25326999628/falsehoods-programmers-believe-about-time http://infiniteundo.com/post/25509354022/more-falsehoods-programmers-believe-about-time-wisdom There may also be other aspects to sleeping. -- __Pascal Bourguignon__ http://www.informatimago.com
[toc] | [prev] | [next] | [standalone]
| From | Wally W. <ww84wa@aim.com> |
|---|---|
| Date | 2012-11-03 08:52 -0500 |
| Message-ID | <b98a98l05nlb12bi5ec9fe0iii8e115f1j@4ax.com> |
| In reply to | #2444 |
On Sat, 03 Nov 2012 04:16:26 +0100, Pascal J. Bourguignon wrote: >bob <bob@coolfone.comze.com> writes: > >> Do programmers actually try to ensure that their applications function >> correctly when the computer goes into sleep mode for 10 hours and then >> comes out? >> >> Or do they just hope no one puts the computer in sleep mode while >> their app is running? > > >In any case, it's a good question. > > >For the time aspects, see: > >http://unix4lyfe.org/time/ >http://naggum.no/lugm-time.html >http://infiniteundo.com/post/25326999628/falsehoods-programmers-believe-about-time >http://infiniteundo.com/post/25509354022/more-falsehoods-programmers-believe-about-time-wisdom > > >There may also be other aspects to sleeping. Interesting. Why is this one a falsehood? http://infiniteundo.com/post/25509354022/more-falsehoods-programmers-believe-about-time-wisdom 7. Months have either 28, 29, 30, or 31 days. How can a month have some other number of days?
[toc] | [prev] | [next] | [standalone]
| From | "Pascal J. Bourguignon" <pjb@informatimago.com> |
|---|---|
| Date | 2012-11-03 16:26 +0100 |
| Message-ID | <877gq2r9ld.fsf@voyager.informatimago.com> |
| In reply to | #2446 |
Wally W. <ww84wa@aim.com> writes: > 7. Months have either 28, 29, 30, or 31 days. > > > How can a month have some other number of days? When thre is a change of calendar i the iddle of a month. Or when it is not a "month" based on the Moon. For example, wikipedia says: Spain,[19] Portugal, the Polish-Lithuanian Commonwealth, and most of Italy implemented the new calendar on Friday, 15 October 1582, immediately following Julian Thursday, 4 October 1582. So the month of October 1582 in those countries had only 20 days! -- __Pascal Bourguignon__
[toc] | [prev] | [next] | [standalone]
| From | Wally W. <ww84wa@aim.com> |
|---|---|
| Date | 2012-11-03 15:22 -0500 |
| Message-ID | <j6va98hht2g1nhq2kciq99mrhqklp2qv84@4ax.com> |
| In reply to | #2448 |
On Sat, 03 Nov 2012 16:26:38 +0100, Pascal J. Bourguignon wrote: >Wally W. <ww84wa@aim.com> writes: > >> 7. Months have either 28, 29, 30, or 31 days. >> >> >> How can a month have some other number of days? > >When thre is a change of calendar i the iddle of a month. >Or when it is not a "month" based on the Moon. > >For example, wikipedia says: > >Spain,[19] Portugal, the Polish-Lithuanian Commonwealth, and most of >Italy implemented the new calendar on Friday, 15 October 1582, >immediately following Julian Thursday, 4 October 1582. > >So the month of October 1582 in those countries had only 20 days! Aha. Thanks.
[toc] | [prev] | [next] | [standalone]
| From | Mensanator <mensanator@aol.com> |
|---|---|
| Date | 2012-11-02 21:45 -0700 |
| Message-ID | <7628cff3-083a-4af3-8513-03322dc6de80@googlegroups.com> |
| In reply to | #2416 |
On Wednesday, October 31, 2012 9:48:50 AM UTC-5, bob wrote: > Do programmers actually try to ensure that their applications function correctly when the computer goes into sleep mode for 10 hours and then comes out? > > > > Or do they just hope no one puts the computer in sleep mode while their app is running? Ha! I had a programmer give me code for testing that he never even bothered to run after compiling. When I asked why. he said: "I don't have to run it, I know how it works. I wrote it." I said: "Because you wrote it. you only THINK you know how it works. In fact, it doesn't even run. It crashes immediately on startup." Given that attitude, what would you guess the answer to your question is?
[toc] | [prev] | [next] | [standalone]
| From | Robert Miles <milesrf@Usenet-News.net> |
|---|---|
| Date | 2012-11-04 00:17 -0500 |
| Message-ID | <5095fa88$0$21035$882e7ee2@usenet-news.net> |
| In reply to | #2416 |
On 10/31/2012 9:48 AM, bob wrote: > Do programmers actually try to ensure that their applications function correctly when the computer goes into sleep mode for 10 hours and then comes out? > > Or do they just hope no one puts the computer in sleep mode while their app is running? > > Some do, some don't. For BOINC applications without checkpoints, that's about the only way to allow shutting down the computer. I've seen some such BOINC that need to run for a month or more, not counting any time the computer is in sleep mode.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.programming
csiph-web