From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d11f89f2e445c0a7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1993-03-11 22:12:39 PST Newsgroups: comp.lang.ada Path: sparky!uunet!europa.eng.gtefsd.com!howland.reston.ans.net!bogus.sura.net!jhunix.hcf.jhu.edu!aplcen.apl.jhu.edu!ddsdx2.jhuapl.edu!dlc From: dlc@ddsdx2.jhuapl.edu (Dave Collard x7468) Subject: Re: Activating tasks at global scope Message-ID: <1993Mar11.175709.24628@aplcen.apl.jhu.edu> Sender: news@aplcen.apl.jhu.edu (USENET News System) Organization: Johns Hopkins University References: <1993Mar10.033256.24718@cs.brown.edu> <1993Mar11.035626.7824@cs.brown.edu> Distribution: usa Date: Thu, 11 Mar 93 17:57:09 GMT Date: 1993-03-11T17:57:09+00:00 List-Id: >with Text_IO; >use Text_IO; >package Buffer_Package is ... >end Buffer_Package; >package body Buffer_Package is > task body Buffer is > end Buffer; > >begin > PUT_LINE("STARTING BUFFER_PACKAGE"); >end Buffer_Package; >with Text_IO; >use Text_IO; >with Buffer_Package; >use Buffer_Package; >package Producer_Package is > task Producer; >end Producer_Package; >package body Producer_Package is > task body Producer is > end Producer; >begin > PUT_LINE("STARTING PRODUCER_PACKAGE"); >end Producer_Package; >with Text_IO; >use Text_IO; >with Buffer_Package; >use Buffer_Package; >package Consumer1_Package is > task Consumer1; >end Consumer1_Package; >package body Consumer1_Package is > task body Consumer1 is > end Consumer1; >begin > PUT_LINE("STARTING CONSUMER1_PACKAGE"); >end Consumer1_Package; >with Text_IO; >use Text_IO; >with Buffer_Package; >use Buffer_Package; >package Consumer2_Package is > task Consumer2; >end Consumer2_Package; >package body Consumer2_Package is > task body Consumer2 is > end Consumer2; >begin > PUT_LINE("STARTING CONSUMER2_PACKAGE"); >end Consumer2_Package; >with Text_IO; >use Text_IO; -- Perhaps you need to add a few with statements here! When -- you link producer_consumer, the only thing you are linking -- with is Text_IO! Try adding: with Buffer_Package; with Producer_Package; with Consumer1_Package; with Consumer2_Package; >procedure producer_consumer is >begin > PUT_LINE("STARING DELAY..."); > delay 5.0; > PUT_LINE("DONE."); >end producer_consumer; --Thor dlc@ddsdx2.jhuapl.edu collard@capsrv.jhuapl.edu