mtype = {M_UP, M_DW};
#define LEN 0
chan Chan_data_down = [LEN] of {mtype};chan Chan_data_up = [LEN] of {mtype};
proctype P1 (chan Chan_data_in, Chan_data_out){ do :: Chan_data_in ? M_UP -> skip; :: Chan_data_out ! M_DW -> skip; od;};proctype P2 (chan Chan_data_in, Chan_data_out){ do :: Chan_data_in ? M_DW -> skip; :: Chan_data_out ! M_UP -> skip; od;};
init{ atomic { run P1 (Chan_data_down, Chan_data_up); run P2 (Chan_data_up, Chan_data_down); }}Tech posts by aclassifier
Also see Øyvind Teig site
You are at http://oyvteig.blogspot.com
Archive by month and about me: here
Last edit: 4Sept2015
Started move: September 2012
All updates at http://www.teigfam.net/oyvind/home/, but the overview is updated
Archive by month and about me: here
Last edit: 4Sept2015
Started move: September 2012
All updates at http://www.teigfam.net/oyvind/home/, but the overview is updated
Wednesday, March 18, 2009
010 - A running Promela model
Why does this code run and don't deadlock?
Labels:
010
Sunday, March 15, 2009
009 - The "knock-come" deadlock free pattern
Here 15Mar2009 to 22May2026. Now at https://www.teigfam.net/oyvind/home/technology/009-the-knock-come-deadlock-free-pattern/
Labels:
009
Subscribe to:
Posts (Atom)
Archive
-
►
2012
(7)
- ► 04/15 - 04/22 (1)
- ► 03/18 - 03/25 (1)
- ► 03/04 - 03/11 (1)
- ► 02/26 - 03/04 (1)
- ► 01/29 - 02/05 (2)
- ► 01/15 - 01/22 (1)
-
►
2011
(12)
- ► 12/25 - 01/01 (1)
- ► 12/18 - 12/25 (1)
- ► 11/27 - 12/04 (1)
- ► 09/25 - 10/02 (2)
- ► 08/07 - 08/14 (1)
- ► 07/17 - 07/24 (1)
- ► 06/26 - 07/03 (1)
- ► 06/12 - 06/19 (1)
- ► 03/06 - 03/13 (1)
- ► 02/06 - 02/13 (1)
- ► 01/09 - 01/16 (1)
-
►
2010
(8)
- ► 12/26 - 01/02 (1)
- ► 09/19 - 09/26 (1)
- ► 08/15 - 08/22 (1)
- ► 04/18 - 04/25 (1)
- ► 04/11 - 04/18 (1)
- ► 03/14 - 03/21 (1)
- ► 01/17 - 01/24 (2)
-
▼
2009
(13)
- ► 07/19 - 07/26 (1)
- ► 07/12 - 07/19 (1)
- ► 06/28 - 07/05 (1)
- ► 04/05 - 04/12 (1)
- ► 03/01 - 03/08 (1)
- ► 02/22 - 03/01 (1)
- ► 02/08 - 02/15 (1)
- ► 02/01 - 02/08 (1)
- ► 01/18 - 01/25 (1)
- ► 01/11 - 01/18 (2)
Popular Posts
-
Here 15Mar2009 to 22May2026. Now at https://www.teigfam.net/oyvind/home/technology/009-the-knock-come-deadlock-free-pattern/
-
New 19Dec2011, updated 3Jan2017 Moved to http://www.teigfam.net/oyvind/home/technology/035-channels-and-rendezvous-vs-safety-critical-sys...
-
10May2021: Moved to https://www.teigfam.net/oyvind/home/older-blog-notes/
-
This blog note has been moved to http://www.teigfam.net/oyvind/home/049-nondeterminism/ on 7 Nov 2012.
Øyvind Teig
- aclassifier
- Trondheim, Norway
All new blogs and new home page start at
https://www.teigfam.net/oyvind/home
Overview of old blog notes here
My technology blog was at
https://oyvteig.blogspot.com
and my handicraft blog was at
https://oyvteig-2.blogspot.com
PS: just call me "Oyvind"