Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Lock and unlock process in VFP?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00601553
Message ID:
00602667
Vues:
27
With my technique you can accomplish just that. The semaphores use the lock and unlock to know if the process wait or go.

A more complex technique that you do is adding to this concept timers that check if we can lock the record ( in other word: check if you can go with the process)

Another way you can do this is by creating a complex semaphores object with VB by using the raise event as the starting process event.


>Hi Jean-René,
>
>I have analyzed your code and I don't know if I am mistaken, but I believe that he is similar to do:
> DO process1
> Do process2
>
>Process2 is not executed until the process1 finishes.
>Am I mistaken?
>
>But what I want it is the concept of semaphores, in which the process that calls it, is blocked untiluntil it happens an event . I don't want to wait for the conclusion of another process, but to the activation of semaphore (event).
>
>In the following table I indicate how I want the concurrence of processes.
>---------------------------------
>|Time | RUN | BLOCKED |
>---------------------------------
>| 0 | P1 | |
>---------------------------------
>| 1 | P2 | P1 |
>---------------------------------
>| 2 | P1 | P2 |
>---------------------------------
>| 3 | P2 | | P1 finishes
>---------------------------------
>
>Excuse by my ingles. Perhaps I do not explain myself well.
>
>Thanks.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform