Author Archives

Aditya Prakash is a Sr. Software Engineer having 8+ yrs of experience with a strong emphasis on programming languages like C, C++, and Python on a Linux platform and worked on multiple products on Network Security and Telecom Domain.

He holds a degree in Computer Science Engineering and Diploma in Software System Development from CDAC, Bangalore and
also is a Cisco Certified Network Associate(CCNA) Certified Network Engineer.

LinkedIn :

  • Odd Even problem by two threads

    The problem is to print odd and even number by using two threads respectively #include <stdlib.h> #include <string.h> #include <pthread.h> #include <string.h> #include <stdio.h> #define MAX 10 pthread_cond_t cond_var =PTHREAD_COND_INITIALIZER; pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER; int count =1; void *odd_fun(void *arg)… Read More ›