This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: OT: to be "nice", or not...


On Wed, 6 Aug 2003, Hannu E K Nevalainen (garbage mail) wrote:

> Scenario:
>  I launch a task at normal priority (nice-ness 0)
>  When this task has finished I wish to be paged...
>
>  In other words;
>  Question: Can I have one task be postponed while another one
>            is still executing?
>
> Is this possible?
>
> e.g. a command sequence that might take a long time:
>
>  $ echo >list.md5 ; find -type f | xargs md5sum -b >>list.md5
>  $ nice -n 19 cat TaskDone.wav >/dev/dsp
>
>
> *The point* is beeing able to launch the time/cpu-consuming task and then
> "append" the paging later.
>
> The obvious is to concatenate "cat ..." with the line above it
>  - but this is NOT the answer I'm asking for.
>
> /Hannu E K Nevalainen, Mariefred, Sweden

$ echo > list.md5; find -type f | xargs md5sum -b >> list.md5 2>&1 &
[1] 5060
$ wait %1; cat TaskDone.wav >/dev/dsp

HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]