# really big value is 500099999999
./pthread $1  &
thread=$(pidof pthread)
t1=`expr $thread + 2`
t2=`expr $thread + 3`
echo "tid-1-bash=$t1"
echo "tid-2-bash=$t2"
while kill -0 $thread 2>/dev/null; do
  c1=`cat /proc/$t1/status 2>/dev/null | grep ctx`
  c2=`cat /proc/$t2/status 2>/dev/null | grep ctx`
  echo "$t1=$c1,  $t2=$c2"
done
