comp.lang.ada
 help / color / mirror / Atom feed
From: "Nazgul" <darkelf@aim.homelinux.com>
Subject: Multitasking doesn't work under linux?
Date: Fri, 15 Feb 2002 17:48:50 +0100
Date: 2002-02-15T17:48:50+01:00	[thread overview]
Message-ID: <a4je67$nrvu$1@ID-107015.news.dfncis.de> (raw)

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





             reply	other threads:[~2002-02-15 16:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-15 16:48 Nazgul [this message]
2002-02-15 16:57 ` Multitasking doesn't work under linux? Jean-Marc Bourguet
2002-02-15 17:07   ` Nazgul
2002-02-15 18:28     ` Marc A. Criley
2002-02-16 14:33       ` Robert Dewar
2002-02-16 14:31   ` Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox