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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Dec 18, 2013, 12:30 AM EST
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?
Sathya Eswaran28 reputationPosted Dec 18, 2013, 7:12 PM EST
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