process 1 : lat2 1000000 date=1111994547.321, wait= 821 us, user= 1000000 us, max=640, n=5 date=1111994548.322, wait= 675 us, user= 1000000 us, max=153, n=5 date=1111994549.323, wait= 679 us, user= 1000000 us, max=151, n=4 date=1111994551.713, wait= 676 us, user= 2389635 us, max=2071136, n=6 date=1111994553.113, wait= 399637 us, user= 1000000 us, max=147, n=7 date=1111994554.114, wait= 672 us, user= 1000000 us, max=151, n=7 process2 started at 553.113 : # while : ; do : ; done --- bash-3.00$ ./lat2 1000000 date=1111994593.086, wait= 0 us, user= 1000000 us, max=883, n=7 date=1111994594.087, wait= 761 us, user= 1000000 us, max=307, n=7 date=1111994595.088, wait= 742 us, user= 1000000 us, max=189, n=8 date=1111994597.880, wait= 748 us, user= 2791574 us, max=2197228, n=10 date=1111994599.180, wait= 299822 us, user= 1000000 us, max=148, n=7 date=1111994600.181, wait= 801 us, user= 1000000 us, max=149, n=5 date=1111994601.219, wait= 696 us, user= 1036840 us, max=100007, n=10 date=1111994602.319, wait= 99877 us, user= 1000000 us, max=153, n=4 date=1111994603.320, wait= 746 us, user= 1000000 us, max=149, n=6 date=1111994604.321, wait= 749 us, user= 1000000 us, max=915, n=7 date=1111994605.321, wait= 748 us, user= 1000000 us, max=213, n=6 --- process1 = lat2 100000 date=1111994727.829, wait= 888 us, user= 100000 us, max=51, n=5 date=1111994727.930, wait= 889 us, user= 100000 us, max=54, n=4 date=1111994728.031, wait= 887 us, user= 100000 us, max=207, n=7 date=1111994728.132, wait= 887 us, user= 100000 us, max=150, n=4 date=1111994729.980, wait= 886 us, user= 1847718 us, max=1841334, n=5 date=1111994730.120, wait= 39857 us, user= 100000 us, max=149, n=5 date=1111994730.221, wait= 884 us, user= 100000 us, max=51, n=5 date=1111994730.322, wait= 887 us, user= 100000 us, max=58003, n=3 date=1111994730.423, wait= 888 us, user= 100000 us, max=56, n=6 --- process1 = while : ; do : ; done started first process2 = lat2 1000000 date=1111994657.471, wait= 1 us, user= 1000000 us, max=760895, n=3 date=1111994658.530, wait= 59130 us, user= 1000000 us, max=99995, n=5 date=1111994659.531, wait= 749 us, user= 1000000 us, max=60002, n=8 date=1111994660.571, wait= 39744 us, user= 1000000 us, max=99997, n=9 date=1111994661.572, wait= 749 us, user= 1000000 us, max=99996, n=8 date=1111994662.672, wait= 99733 us, user= 1000000 us, max=151, n=6 date=1111994663.673, wait= 835 us, user= 1000000 us, max=150, n=8 date=1111994664.675, wait= 750 us, user= 1001849 us, max=99998, n=10 date=1111994665.676, wait= 899 us, user= 1000000 us, max=100007, n=8 date=1111994666.677, wait= 750 us, user= 1000000 us, max=99998, n=8 --- process1= lat2 30000 process2= while : ; do : ; done date=1111994904.457, wait= 888 us, user= 30000 us, max= 21, n=4 date=1111994904.488, wait= 899 us, user= 30000 us, max= 49, n=4 date=1111994904.519, wait= 899 us, user= 30000 us, max= 22, n=5 date=1111994904.550, wait= 901 us, user= 30000 us, max= 41, n=4 date=1111994904.581, wait= 899 us, user= 30000 us, max= 21, n=4 date=1111994904.612, wait= 899 us, user= 30000 us, max= 52, n=2 date=1111994906.373, wait= 901 us, user= 1759742 us, max=1744558, n=3 date=1111994906.443, wait= 39846 us, user= 30000 us, max= 57, n=3 date=1111994906.474, wait= 983 us, user= 30000 us, max= 22, n=4 date=1111994906.505, wait= 982 us, user= 30000 us, max= 50, n=4 date=1111994906.536, wait= 982 us, user= 30000 us, max= 89, n=4 --- process1= lat2 25000 date=1111994987.489, wait= 832 us, user= 25000 us, max= 49, n=3 date=1111994987.515, wait= 831 us, user= 25000 us, max= 22, n=5 date=1111994987.541, wait= 832 us, user= 25000 us, max= 22, n=4 date=1111994987.567, wait= 832 us, user= 25000 us, max= 53, n=4 date=1111994987.593, wait= 832 us, user= 25000 us, max= 51, n=3 date=1111994989.353, wait= 831 us, user= 1758731 us, max=1736401, n=7 date=1111994989.418, wait= 39817 us, user= 25000 us, max= 22, n=3 date=1111994989.444, wait= 982 us, user= 25000 us, max= 23, n=4 date=1111994989.470, wait= 983 us, user= 25033 us, max= 49, n=5 date=1111994989.496, wait= 950 us, user= 25000 us, max= 22, n=4 date=1111994989.522, wait= 830 us, user= 25000 us, max= 22, n=4 date=1111994989.548, wait= 832 us, user= 25000 us, max= 22, n=4 date=1111994989.574, wait= 830 us, user= 25000 us, max= 55, n=3 date=1111994989.600, wait= 830 us, user= 25000 us, max= 22, n=4 date=1111994989.626, wait= 829 us, user= 25000 us, max= 22, n=4 --- process1= lat2 100000 process2= 2x while : & date=1111995037.390, wait= 818 us, user= 100000 us, max= 153, n=5 date=1111995037.491, wait= 817 us, user= 100000 us, max= 65, n=3 date=1111995037.592, wait= 819 us, user= 100000 us, max= 51, n=5 date=1111995040.691, wait= 819 us, user= 3098525 us, max=3062425, n=5 date=1111995040.991, wait= 199769 us, user= 100000 us, max= 51, n=4 date=1111995041.092, wait= 971 us, user= 100000 us, max= 89, n=5 date=1111995041.193, wait= 970 us, user= 100000 us, max= 56, n=6 --- process1= lat2 50000 process2= while : date=1111995134.390, wait= 827 us, user= 50000 us, max= 51, n=3 date=1111995134.441, wait= 827 us, user= 50000 us, max= 22, n=4 date=1111995136.546, wait= 828 us, user= 2103676 us, max=2102961, n=2 date=1111995136.995, wait= 399760 us, user= 50000 us, max= 51, n=3 date=1111995137.046, wait= 985 us, user= 50000 us, max= 89, n=5 date=1111995137.097, wait= 1017 us, user= 50000 us, max= 22, n=3 date=1111995137.148, wait= 940 us, user= 50000 us, max= 51, n=5 ... date=1111995174.090, wait= 829 us, user= 50000 us, max= 49, n=3 date=1111995174.141, wait= 827 us, user= 50000 us, max= 383, n=6 date=1111995174.240, wait= 866 us, user= 97943 us, max= 96996, n=2 date=1111995174.291, wait= 832 us, user= 50000 us, max= 50, n=2 date=1111995174.442, wait= 826 us, user= 150017 us, max= 100036, n=5 date=1111995174.493, wait= 791 us, user= 50000 us, max= 363, n=5 date=1111995174.644, wait= 826 us, user= 149978 us, max= 99997, n=5 ... alternating latencies of 50 and 150 ms ... date=1111995177.501, wait= 827 us, user= 50000 us, max= 81, n=4 date=1111995177.650, wait= 825 us, user= 147978 us, max= 97997, n=5 date=1111995177.701, wait= 831 us, user= 50000 us, max= 29, n=5 date=1111995177.851, wait= 827 us, user= 148976 us, max= 98996, n=7 date=1111995178.001, wait= 99819 us, user= 50001 us, max= 47, n=5 date=1111995178.052, wait= 994 us, user= 50000 us, max= 90, n=6 date=1111995178.103, wait= 968 us, user= 50000 us, max= 40, n=6 date=1111995178.154, wait= 979 us, user= 50000 us, max= 196, n=9 --- process1 = lat2 100000 date=1111995320.533, wait= 888 us, user= 100000 us, max= 151, n=5 date=1111995320.634, wait= 887 us, user= 100000 us, max= 49, n=4 date=1111995320.735, wait= 889 us, user= 100000 us, max= 55, n=6 date=1111995322.357, wait= 887 us, user= 1621755 us, max=1597754, n=4 date=1111995322.557, wait= 99873 us, user= 100000 us, max= 152, n=5 date=1111995322.658, wait= 970 us, user= 100000 us, max= 49, n=5 date=1111995322.759, wait= 972 us, user= 100000 us, max= 56, n=4 date=1111995322.860, wait= 971 us, user= 100000 us, max= 49, n=5 ... date=1111995328.476, wait= 819 us, user= 100000 us, max= 49, n=5 date=1111995328.577, wait= 818 us, user= 100000 us, max= 150, n=4 date=1111995328.772, wait= 817 us, user= 193969 us, max= 93996, n=6 date=1111995328.972, wait= 833 us, user= 198969 us, max= 98996, n=6 date=1111995329.172, wait= 832 us, user= 198969 us, max= 98996, n=6 date=1111995329.372, wait= 831 us, user= 198968 us, max= 98996, n=5 date=1111995329.572, wait= 833 us, user= 198970 us, max= 98997, n=6 date=1111995329.772, wait= 830 us, user= 198971 us, max= 98998, n=6 date=1111995329.972, wait= 830 us, user= 198969 us, max= 98996, n=5 date=1111995330.172, wait= 832 us, user= 198969 us, max= 98996, n=6 date=1111995330.372, wait= 831 us, user= 198968 us, max= 98996, n=5 date=1111995330.572, wait= 832 us, user= 198969 us, max= 98996, n=6 date=1111995330.772, wait= 831 us, user= 198968 us, max= 98995, n=5 date=1111995330.972, wait= 833 us, user= 198969 us, max= 98996, n=6 date=1111995331.172, wait= 832 us, user= 198969 us, max= 98996, n=7 date=1111995331.372, wait= 832 us, user= 198965 us, max= 98996, n=6 date=1111995331.572, wait= 832 us, user= 198969 us, max= 98997, n=6 date=1111995331.772, wait= 831 us, user= 198968 us, max= 98995, n=6 date=1111995331.972, wait= 833 us, user= 198969 us, max= 98997, n=5 date=1111995332.172, wait= 833 us, user= 198969 us, max= 98996, n=6 date=1111995332.372, wait= 830 us, user= 198971 us, max= 98999, n=4 date=1111995332.572, wait= 830 us, user= 198970 us, max= 98997, n=5 date=1111995332.772, wait= 831 us, user= 198968 us, max= 98995, n=6 date=1111995332.972, wait= 833 us, user= 198969 us, max= 98996, n=6 date=1111995333.172, wait= 832 us, user= 198969 us, max= 98996, n=5 date=1111995333.372, wait= 830 us, user= 198968 us, max= 98996, n=4 date=1111995333.572, wait= 832 us, user= 198969 us, max= 98996, n=6 date=1111995333.772, wait= 831 us, user= 198968 us, max= 98995, n=5 date=1111995333.972, wait= 833 us, user= 198969 us, max= 98996, n=6 date=1111995334.172, wait= 99818 us, user= 100000 us, max= 51, n=5 date=1111995334.273, wait= 971 us, user= 100011 us, max= 55, n=5 --- 4x while : & ./lat2 100000 date=1111995527.357, wait= 1 us, user= 100000 us, max= 55, n=4 date=1111995527.514, wait= 57303 us, user= 100000 us, max= 52, n=6 date=1111995527.615, wait= 979 us, user= 100000 us, max= 165, n=5 ... date=1111995528.625, wait= 888 us, user= 100000 us, max= 150, n=5 date=1111995528.726, wait= 889 us, user= 100000 us, max= 51, n=4 date=1111995529.117, wait= 889 us, user= 389939 us, max= 386952, n=3 date=1111995529.218, wait= 902 us, user= 100000 us, max= 49, n=4 date=1111995529.319, wait= 890 us, user= 100000 us, max= 50, n=6 ... date=1111995551.639, wait= 821 us, user= 100000 us, max= 49, n=5 date=1111995551.740, wait= 822 us, user= 100000 us, max= 151, n=3 date=1111995552.214, wait= 817 us, user= 472929 us, max= 372956, n=5 date=1111995552.714, wait= 830 us, user= 498923 us, max= 398950, n=6 date=1111995553.214, wait= 832 us, user= 498923 us, max= 398950, n=6 date=1111995553.714, wait= 830 us, user= 498924 us, max= 398951, n=6 date=1111995554.214, wait= 832 us, user= 498923 us, max= 398950, n=6 date=1111995554.714, wait= 832 us, user= 498923 us, max= 398950, n=5 date=1111995555.214, wait= 832 us, user= 498924 us, max= 398951, n=6 date=1111995555.714, wait= 831 us, user= 498923 us, max= 398950, n=5 date=1111995556.214, wait= 832 us, user= 498924 us, max= 398951, n=6 date=1111995556.714, wait= 831 us, user= 498924 us, max= 398951, n=5 date=1111995557.214, wait= 827 us, user= 498923 us, max= 398950, n=4 date=1111995557.315, wait= 829 us, user= 100000 us, max= 50, n=7 date=1111995557.715, wait= 819 us, user= 398938 us, max= 397951, n=2 date=1111995558.214, wait= 833 us, user= 498923 us, max= 398950, n=6 date=1111995558.714, wait= 832 us, user= 498924 us, max= 398951, n=5 ... with 5 x while : : date=1111995672.864, wait= 890 us, user= 100000 us, max= 49, n=3 date=1111995673.350, wait= 890 us, user= 484926 us, max= 460941, n=3 date=1111995673.950, wait= 899 us, user= 598908 us, max= 498936, n=5 date=1111995674.550, wait= 905 us, user= 598905 us, max= 498935, n=5 date=1111995675.150, wait= 902 us, user= 598908 us, max= 498936, n=5 date=1111995675.750, wait= 903 us, user= 598908 us, max= 498935, n=6 date=1111995676.349, wait= 902 us, user= 598908 us, max= 498935, n=4 date=1111995676.949, wait= 901 us, user= 598908 us, max= 498935, n=6 date=1111995677.549, wait= 899 us, user= 598908 us, max= 498935, n=6 date=1111995677.650, wait= 902 us, user= 100000 us, max= 150, n=5 date=1111995678.150, wait= 890 us, user= 498922 us, max= 497936, n=2 date=1111995678.750, wait= 904 us, user= 598917 us, max= 498946, n=6 date=1111995679.350, wait= 893 us, user= 598908 us, max= 498935, n=4 date=1111995679.950, wait= 901 us, user= 598908 us, max= 498935, n=5 => each "while" process gets full 100ms timeslices