You have to do it in user space using a widely-used threads programming interface, POSIX Threads (Pthreads). You should implement this in Linux (such as Ubuntu 16.04), And implement a loadable kernel module (LKM) to get the statistic information about processes and threads.
you should write a program that creates multiple threads to control the synchronization and fulfill the requirement.
Ubuntu as operating system
8 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön
Please don't hesitate to ask me if you are interested and provide me full details on what you want me to do. Have a great weekend mate. Cheers! Best regards, Vassily A.