2
Answers

how to use threading or some thing in my code

satheesh babu

satheesh babu

9y
458
1

Hi,

I have a code snippet, which is kept inside the timer control.

Steps

1. This timer will hit the database every 2 seconds and get the records which the status is false.

2. Pause the timer to process the top 1 record.

3. After getting the records, take the top 1 record and processes functionality.

4. Start the timer after processing the top 1 record.

The above code working well for record by record.

Now I want to enhance this code to process the records parallel processing, like if multiple users submitted the request then my code should process every users request at a time.

Please tell me some suggestions to achieve the new functionality.

Thanks
 
Answers (2)
0
Bikesh Srivastava
NA 19.8k 835.1k 8y
Hi,
You are doing good ,but you need to change your some line of code.
use this.
  1. $("#projectNames").val($("#ms").text());
0
Jisny Av
NA 473 46.8k 8y
Hi,
Instead of $("#projectNames").val($("#ms").text()); try $("#projectNames").val($("#ms").val());