In C language I wrote a program for retrieving data from database(MySql) using 30 threads.
but same record is retrieved for every thread.how to avoid this?At a time I retrieved only one record.Using for loop I have to retrieved all the data from database.