Browse Prior Art Database

Method and System for Polling for Tasks at Random Intervals

IP.com Disclosure Number: IPCOM000200484D
Publication Date: 2010-Oct-15
Document File: 2 page(s) / 37K

Publishing Venue

The IP.com Prior Art Database

Related People

Yongqian Zheng: INVENTOR [+2]

Abstract

A method and system for polling for tasks at random intervals is disclosed.

This text was extracted from a Microsoft Word document.
At least one non-text object (such as an image or picture) has been suppressed.
This is the abbreviated version, containing approximately 53% of the total text.

Method and System for Polling for Tasks at Random Intervals

Abstract

A method and system for polling for tasks at random intervals is disclosed. 

Description

Disclosed is a method and system for polling for tasks at random intervals.

In a multi-process software system, multiple processes may consume a resource or task from a resource or task producer.  For example, multiple processes in a load-balancing multi-process system may poll a task database for tasks at regular intervals as illustrated in Fig. 1.  Accordingly, process P1, process P2, and process P3 periodically poll and check the task database for new tasks. 

Figure 1

Each process in the multi-process system, polls the task database at fixed intervals of time.  Fig. 2 illustrates a timing diagram depicting the intervals at which process P1 and process P2 poll the task database.  In an instance, process P1 is initiated at a time instant t0 and process P2 is initiated at a time instant t0 which is f seconds later than t0.  Further, process P1 and process P2 poll the task database at fixed intervals of D seconds.  Similarly, later time instants at which process P1 and process P2 poll the task database for tasks is t1 and t2, and t1, t2 respectively as illustrated in Fig. 2.  Accordingly, process P1 consumes all the tasks which are created in the task database during the time period of (D-f), and process P2 consumes all the tasks which were created during a time period of f as shown in Fig. 2.

Figure 2

The method and system disclosed herein, fixes a random polling interval while polling for tasks from the task database.  Accordingly, each process in the multi-process system polls and co...