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=-1.9 required=5.0 tests=BAYES_00,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7e6aeb948876c62d,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-15 08:49:25 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!68102-cm.able.ES!not-for-mail From: "Nazgul" Newsgroups: comp.lang.ada Subject: Multitasking doesn't work under linux? Date: Fri, 15 Feb 2002 17:48:50 +0100 Message-ID: NNTP-Posting-Host: 68102-cm.able.es (212.97.168.102) X-Trace: fu-berlin.de 1013791763 782334 212.97.168.102 (16 [107015]) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Xref: archiver1.google.com comp.lang.ada:20046 Date: 2002-02-15T17:48:50+01:00 List-Id: Hi, I have a program in Ada, it's a server that listens for connections on a specified port, and when a connection is estabilished, it creates a new task to attend that conneciont. Something like procedure serverd ..... dummy= new Election; Election.Start(socketClient); Put_Line("Connection accepted"); ... end serverd; "Start" is and entry point for "Election". The problem is: Under windows XP, I build the server, launch it, and then launch the client to connect. The server runs the task to attend the client, and outputs "Connection accepted", while the Election task is running. Under Linux, I build the server, launch it, and when I connect the client, the task executes, but the procedure serverd stays blocked until the Election task has ended up, and then outputs "Connecion accepted". I mean, the tasks don't run concurrently under linux, but they do under Windows XP. I can't find what I'm doing wrong, could you help me? Thanks ======== A. Iradier