[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: Multi-user, Multi-tasking.



> >> Also check out 'nice' which would give you app lower priority as the
> other
> >> person needs CPU power, but would give it back to you when he's using it.
> >
> >I did check 'nice', it takes 97 % of my CPU.
> 
> It could take up to 100% of the CPU if nothing else is running.
> 
> >But I don't notice any interference while doing other tasks.
> >The remaining 3% seems to be plenty for text editing and sending E-mail.
> 
> The scheduler will allocate CPU to other processes as they require it. The
> Unix scheduling model which Linux uses has a dynamic priority scheme:
> the priority of running processes is reduced over time and the priority
> of waiting processes is increased. The "nice" value adds a bias to this
> mechanism. So your background process which tends to run continuously
> ends up with a very low priority. Other things you do like text editing
> sit around blocked most of the time and end up with a high priority. So when
> you type something and unblock that process it gets scheduled in preference
> due to its high priority.

Thanks Lawrence, for this little lesson.

I've put my app in background, using nohup <app> & 
Sometimes the app takes up to 99.6%. 
Just beautiful to watch how processing time is being dynamically
scheduled.

Albert
> 
> Lawrence
> 
> 
> _______________________________________________
> Redhat-install-list mailing list
> Redhat-install-list redhat com
> https://www.redhat.com/mailman/listinfo/redhat-install-list
> To Unsubscribe Go To ABOVE URL or send a message to:
> redhat-install-list-request redhat com
> Subject: unsubscribe
> 
> 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]