A technique for processing a critical code section which cannot be executed concurrently by more than one executable unit (e.g., a thread, a process, a fiber, etc.). A first executable unit prepares a packet containing a "work request," which describes work to be performed by the critical section. If the critical section is not in use by a second executable unit, then the first executable unit enters the critical section and performs the work described in the packet. If the critical section is in use by a second executable unit, then the second executable unit performs the work described in the packet on behalf of the first executable unit, thereby alleviating the necessity for the first executable unit to enter the critical section. In addition to the work request, the packet may also contain: a status indicating whether the work request has been performed, an event to be signaled upon completion of the work request, and/or a list pointer that may be used to link packets together in a linked list.

Μια τεχνική για ένα κρίσιμο τμήμα κώδικα που δεν μπορεί να εκτελεσθεί ταυτόχρονα από περισσότερες από μια εκτελέσιμες μονάδες (π.χ., ένα νήμα, μια διαδικασία, μια ίνα, κ.λπ.). Μια πρώτη εκτελέσιμη μονάδα προετοιμάζει ένα πακέτο που περιέχει ένα "αίτημα εργασίας," που περιγράφει την εργασία που εκτελείται από το κρίσιμο τμήμα. Εάν το κρίσιμο τμήμα δεν είναι σε χρήση από μια δεύτερη εκτελέσιμη μονάδα, κατόπιν η πρώτη εκτελέσιμη μονάδα εισάγει το κρίσιμο τμήμα και εκτελεί την εργασία που περιγράφεται στο πακέτο. Εάν το κρίσιμο τμήμα είναι σε χρήση από μια δεύτερη εκτελέσιμη μονάδα, κατόπιν η δεύτερη εκτελέσιμη μονάδα εκτελεί την εργασία που περιγράφεται στο πακέτο εξ ονόματος της πρώτης εκτελέσιμης μονάδας, με αυτόν τον τρόπο ανακουφίζοντας την ανάγκη για την πρώτη εκτελέσιμη μονάδα να εισαχθεί το κρίσιμο τμήμα. Εκτός από το αίτημα εργασίας, το πακέτο μπορεί επίσης να περιέχει: ένδειξη μιας θέσης εάν το αίτημα εργασίας έχει εκτελεσθεί, ένα γεγονός που επισημαίνονται με την ολοκλήρωση του αιτήματος εργασίας, ή/και ένας δείκτης καταλόγων που μπορούν να χρησιμοποιηθούν για να συνδέσουν τα πακέτα σε έναν συνδεμένο κατάλογο.

 
Web www.patentalert.com

< (none)

< Cache channel at network nodes to pass request and data or pointer to shared buffer

> Product inventory category management and variety optimization method and system

> (none)

~ 00031