processing additional data when program is running


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: processing additional data when program is running

Hybrid View

  1. #1
    Ervin Rodriguez Guest

    processing additional data when program is running


    What's up guys? I need some suggestions here. I am writing a program that
    will run in the background. An user will insert data through a user interface
    window. When data is inserted in my table, the program is going to be trigger
    and process that data. My problem is what will happen if user enter more
    data while the program is running. I don't want another process to run.
    If 50 users enter data one after another, then i will have 50 process running
    and that will kill the machine.

    Does anybody have any suggestion on how i can implement a program that runs
    in the background and wait for user data without firing multiple process
    everytime data is enter. how can i make the program handle the data that
    was enter while the program is processing other data? remember, i don't
    want to trigger a process for every user that enter data. Also, it is possible
    that two users enter data almost at the same time. how can i handle this?
    any suggestions. thanks

  2. #2
    Srinivas S Guest

    Re: processing additional data when program is running


    Hi,

    I think you can try to put the information in queue, and read the queue depending
    on the user session or any kind of flag which u might have set.

    Advanced Queuing might be of some help to you I beleive.

    Do let me know how did u do this, if at all you implement this kind of situation.

    HTH

    SS

    "Ervin Rodriguez" <ervin06@netscape.net> wrote:
    >
    >What's up guys? I need some suggestions here. I am writing a program that
    >will run in the background. An user will insert data through a user interface
    >window. When data is inserted in my table, the program is going to be trigger
    >and process that data. My problem is what will happen if user enter more
    >data while the program is running. I don't want another process to run.
    > If 50 users enter data one after another, then i will have 50 process running
    >and that will kill the machine.
    >
    >Does anybody have any suggestion on how i can implement a program that runs
    >in the background and wait for user data without firing multiple process
    >everytime data is enter. how can i make the program handle the data that
    >was enter while the program is processing other data? remember, i don't
    >want to trigger a process for every user that enter data. Also, it is possible
    >that two users enter data almost at the same time. how can i handle this?
    > any suggestions. thanks



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center