how to insert data by date and time to the database from all thread's return value for every secs.
I am using loop to start all the threads. so how can i insert all single value from all threads for every one sec.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sathya EswaranPosted Dec 19, 2013, 12:12 AM
I am going to read data from serial port by every seconds. one serial port contains min 15 sensor devices. So i need to take all 15 device's data at a time and those data to be insert into database.
I can read data using Thread but i cant get it at same time. because i am using thread with Lock. So what is the alternate way to read all data at a time.
Thanks & Regards
Sathya
Jaganathan BantheswaranPosted Dec 18, 2013, 5:30 AM
Can you give us some more detail?
Where is your insert method? why do you want to insert every second? why do you want to use Thread?