Real-time programming in Modula-2

Article


Gough, K. John, Mohay, George M. and Pease, Wayne. 1991. "Real-time programming in Modula-2." Australian Computer Journal. 23 (4), pp. 175-182.
Article Title

Real-time programming in Modula-2

Article CategoryArticle
AuthorsGough, K. John (Author), Mohay, George M. (Author) and Pease, Wayne (Author)
Journal TitleAustralian Computer Journal
Journal Citation23 (4), pp. 175-182
Number of Pages8
Year1991
Place of PublicationAustralia
Abstract

The unit of pseudo-parallelism in Modula-2 is the coroutine; coroutines switch control to one another through the use of simple coroutine TRANSFER operations. In the case of programs which need to cater for realtime events (i.e. interupts) an I/O coroutine awaiting an interrupt suspends itself pending the occurrence of the specified interrupt using the IOTRANSFER operation. Recognition of the awaited interupt, when it occurs, then causes execution of an asynchronous coroutine transfer which despatches the awaiting I/O coroutine. The module priority mechanism ensures inter alia, that other interrupts occurring during execution of that I/O or device handler coroutine will only be recognised if they are of higher priority. A modified set of Modula-2 coroutine primitives, prototyped using the PDP-11 M23 Modula-2 system, has been described previously. That model included the new primitive operation Attachinterrupt which effectively replaces IOTRANSFER, leading to an arguably simpler and more elegant structure for real-time pseudo- parallel Modula-2 programs. That model has now been extended to incorporate the additional primitive functions Priority and Previous respectively. The former provides a means by which a realtime coroutine may interrogate the priority of the coroutine which it has preempted (interrupted), while the latter is invoked by a coroutine in order to establish the identity of the coroutine which it has preempted via an interrupt or which it has succeeded via a synchronous transfer operation. This paper discusses the rationale for the extended model and its implementation in one of the most popular Modula-2 systems in use today, the Logitech Version 3 compiler for the IBM PC, and illustrates its use.

KeywordsModula-2, realtime programming, coroutines, pseudo-parallelism, priorities
ANZSRC Field of Research 2020469999. Other information and computing sciences not elsewhere classified
461204. Programming languages
460699. Distributed computing and systems software not elsewhere classified
Public Notes

There are no files associated with this item.

Byline AffiliationsNo affiliation
Faculty of Business
Permalink -

https://research.usq.edu.au/item/9y7x1/real-time-programming-in-modula-2

  • 1980
    total views
  • 0
    total downloads
  • 1
    views this month
  • 0
    downloads this month

Export as

Related outputs

The web portal as a collaborative tool
Rowe, Michelle and Pease, Wayne. 2007. "The web portal as a collaborative tool." Tatnall, Arthur (ed.) Encyclopedia of portal technologies and applications. Hershey, PA. United States. IGI Global. pp. 1138-1143
e-Commerce and small business in regional Australia
Pease, Wayne and Rowe, Michelle. 2006. "e-Commerce and small business in regional Australia." Marshall, Stewart, Taylor, Wal and Yu, Xinghuo (ed.) Encyclopedia of developing regional communities with information and communication technology. Hershey, PA, United States. IGI Global. pp. 227-232
ICT and regional development in Australia
Pease, Wayne, Rowe, Michelle and Wright, Lauretta. 2006. "ICT and regional development in Australia." Marshall, Stewart, Taylor, Wal and Yu, Xinghuo (ed.) Encyclopedia of developing regional communities with information and communication technology. United States. IGI Global. pp. 348-352
Comparative dissolution rates of defective nickel oxides from different sources
Pease, Wayne, Segall, Robert L., Smart, Roger St. C. and Turner, Peter S.. 1986. "Comparative dissolution rates of defective nickel oxides from different sources." Journal of the Chemical Society, Faraday Transactions I: Physical Chemistry in Condensed Phases. 82 (3), pp. 759-766. https://doi.org/10.1039/F19868200759
Surface reduction in low-temperature formation of nickel oxide from different nickel salts. Thermal analysis, surface area, electron microscopy and infrared studies
Pease, Wayne R., Segall, Robert L., Smart, Roger St. C. and Turner, Peter S.. 1986. "Surface reduction in low-temperature formation of nickel oxide from different nickel salts. Thermal analysis, surface area, electron microscopy and infrared studies." Journal of the Chemical Society, Faraday Transactions I: Physical Chemistry in Condensed Phases. 82 (3), pp. 747-758. https://doi.org/10.1039/F19868200747
Evidence for modification of nickel oxide by silica. Infrared, electron microscope and dissolution rate studies
Pease, Wayne, Segall, Robert L., Smart, Roger St. C. and Turner, Peter S.. 1980. "Evidence for modification of nickel oxide by silica. Infrared, electron microscope and dissolution rate studies ." Journal of the Chemical Society, Faraday Transactions I: Physical Chemistry in Condensed Phases. 76, pp. 1510-1519. https://doi.org/10.1039/F19807601510
Web portals as an exemplar for tourist destinations
Rowe, Michelle, Pease, Wayne and McLeod, Pauline. 2007. "Web portals as an exemplar for tourist destinations." Tatnall, Arthur (ed.) Encyclopedia of portal technologies and applications. Hershey, PA. United States. IGI Global. pp. 1157-1160
Information and communication technologies in support of the tourism industry
Pease, Wayne, Rowe, Michelle and Cooper, Malcolm. 2007. Information and communication technologies in support of the tourism industry . Hershey, PA. United States. IGI Global.
Development of an ontology to improve supply chain management (SCM) in the Australian timber industry
Blake, Jacqueline and Pease, Wayne. 2007. "Development of an ontology to improve supply chain management (SCM) in the Australian timber industry." Salam, A. F. and Stevens, Jason R. (ed.) Semantic web technologies and e-business: towards the integrated virtual organisation and business process automation. Hershey, PA. United States. IGI Global. pp. 360-383
The role of ICT in regional tourism providers
Pease, Wayne, Rowe, Michelle and Cooper, Malcolm. 2005. "The role of ICT in regional tourism providers." Asia Pacific Journal of Economics and Business. 9 (2), pp. 50-62.
Diffusion of innovation – the adoption of electronic commerce by small and medium enterprises (SMEs) - a comparative analysis
Pease, Wayne and Rowe, Michelle. 2004. "Diffusion of innovation – the adoption of electronic commerce by small and medium enterprises (SMEs) - a comparative analysis." Cooper, Joan and Swatman, Paul (ed.) CollECTeR 2004. Adelaide, Australia 07 - 08 May 2004
Issues faced by small and medium enterprises (SMEs) and their take-up of ecommerce in Australian regional communities
Pease, Wayne and Rowe, Michelle. 2003. "Issues faced by small and medium enterprises (SMEs) and their take-up of ecommerce in Australian regional communities." 4th International We-B Conference 2003: Working With e-Business. Perth, Australia 24 - 25 Nov 2003 Joondalup, Western Australia.
Hervey Bay in transition: the role of community based information technology in overcoming the great digital divide
Pease, Wayne, Wright, Lauretta and Cooper, Malcolm. 2004. "Hervey Bay in transition: the role of community based information technology in overcoming the great digital divide." Marshall, Stewart, Taylor, Wal and Yu, Xinghuo (ed.) Using community informatics to transform regions. Hershey, PA, United States. IGI Global. pp. 223-237
Diffusion of innovation - the adoption of electronic commerce by small and medium enterprises (SMEs) in regional Australia
Pease, Wayne and Rowe, Michelle. 2003. "Diffusion of innovation - the adoption of electronic commerce by small and medium enterprises (SMEs) in regional Australia." Geursen, G., Kennedy, R. and Tolo, M. (ed.) ANZMAC 2003: Celebration of Ehrenberg and Bass: Marketing Discoveries, Knowledge and Contribution. Adelaide, Australia 01 - 03 Dec 2003 Melbourne, Australia.
E-commerce and small and medium eenterprises (SMEs) in regional communities
Pease, Wayne and Rowe, Michelle. 2003. "E-commerce and small and medium eenterprises (SMEs) in regional communities." Chartered Institute Of Marketing Conference (CIM 2003). Sydney, Australia 20 - 22 Aug 2003 Sydney.
Factors affecting take-up of electronic commerce by small and medium enterprises (SMEs) in the regional community of Hervey Bay, Australia
Pease, Wayne and Rowe, Michelle. 2003. "Factors affecting take-up of electronic commerce by small and medium enterprises (SMEs) in the regional community of Hervey Bay, Australia." Cooper, Russel and Madden, Gary (ed.) International Telecommunications Society's Asia-Australasia Regional Conference 2003: M-Business, E-Commerce and the Impact of Broadband on Regional Development and Business Prospects . Perth, Australia 22 - 24 Jun 2003 Perth, Australia.
ICT and regional development in Hervey Bay
Pease, Wayne, Rowe, Michelle and Wright, Lauretta. 2003. "ICT and regional development in Hervey Bay." Cooper, Russel and Madden, Gary (ed.) International Telecommunications Society's Asia-Australasia Regional Conference 2003: M-Business, E-Commerce and the Impact of Broadband on Regional Development and Business Prospects . Perth, Australia 22 - 24 Jun 2003 Perth, Australia.
Hervey Bay: beyond the Bay connect hook-Up
Wright, Lauretta, Pease, Wayne and Rowe, Michelle. 2003. "Hervey Bay: beyond the Bay connect hook-Up." Building the E-Nation: A Social Science Symposium (2003). Sydney, Australia 23 - 24 Apr 2003 Sydney.
E-Commerce enabling technologies
Pease, Wayne. 2001. "E-Commerce enabling technologies." e-Commerce in Regional Australia Update 2001. Toowoomba, Australia 19 Jun 2001 Toowoomba, QLD.
The e-readiness of the Australian timber and wood sector
Blake, Jacqueline and Pease, Wayne. 2005. "The e-readiness of the Australian timber and wood sector." Cooper, Russel, Madden, Gary and Lloyd, Ashley (ed.) ITS Africa-Asia-Australasia Regional Conference - ICT Networks - Building Blocks for Economic Development (2005). Perth, Australia 28 - 30 Aug 2005 Perth, Australia.
An open standard for the exchange of information in the Australian timber sector
Blake, Jacqueline and Pease, Wayne. 2005. "An open standard for the exchange of information in the Australian timber sector." Cooper, Russel, Madden, Gary and Lloyd, Ashley (ed.) ITS Africa-Asia-Australasia Regional Conference - ICT Networks - Building Blocks for Economic Development (2005). Perth, Australia 28 - 30 Aug 2005 Perth, Australia.
Regional tourist destinations - the role of information and communications technology (ICT) in collaboration amongst tourism providers
Pease, Wayne, Rowe, Michelle and Cooper, Malcolm. 2005. "Regional tourist destinations - the role of information and communications technology (ICT) in collaboration amongst tourism providers." Cooper, Russel, Madden, Gary and Lloyd, Ashley (ed.) ITS Africa-Asia-Australasia Regional Conference - ICT Networks - Building Blocks for Economic Development (2005). Perth, Australia 28 - 30 Aug 2005 Perth, Australia.
An overview of information technology in the tourism industry
Pease, Wayne and Rowe, Michelle. 2005. "An overview of information technology in the tourism industry ." Cooper, Russel, Madden, Gary and Lloyd, Ashley (ed.) ITS Africa-Asia-Australasia Regional Conference - ICT Networks - Building Blocks for Economic Development (2005). Perth, Australia 28 - 30 Aug 2005 Perth, Australia.
Use of information technology to facilitate collaboration and co-opetition between tourist operators in tourist destinations
Pease, Wayne and Rowe, Michelle. 2005. "Use of information technology to facilitate collaboration and co-opetition between tourist operators in tourist destinations." McGrath, G. Michael (ed.) Tourism Enterprise Strategies (TES): Thriving - and Surviving - in an Online Era Conference (2005). Melbourne, Australia 11 - 12 Jul 2005 Melbourne, Australia.