Steve Litt on 8 Jul 2017 18:51:56 -0700 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PLUG] Multimedia blues |
On Sat, 8 Jul 2017 21:36:37 -0400 Rich Freeman <r-plug@thefreemanclan.net> wrote: > Sure, but if a non-root application can make your console hang or your > computer freeze, there is a bug in your OS. Whether the application > is "a pig" is beside the point. I didn't believe you, so I made this program: #include<stdio.h> int main(int argc, char *argv[]){ printf("Starting infinite loop\n"); long i, j, k; for(i=0; i < 1000000; i++){ for(j=0; j < 1000000; j++){ for(k=0; k < 1000000; j++){ } } } } And as a normal user ran it like this: nice -20 ./a.out My machine was plenty responsive, in or out of X. You're right, at least as far as CPU is concerned. SteveT Steve Litt July 2017 featured book: Quit Joblessness: Start Your Own Business http://www.troubleshooters.com/startbiz ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug