comp.lang.ada
 help / color / mirror / Atom feed
* Multitasking doesn't work under linux?
@ 2002-02-15 16:48 Nazgul
  2002-02-15 16:57 ` Jean-Marc Bourguet
  0 siblings, 1 reply; 6+ messages in thread
From: Nazgul @ 2002-02-15 16:48 UTC (permalink / 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





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-02-16 14:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-15 16:48 Multitasking doesn't work under linux? Nazgul
2002-02-15 16:57 ` 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

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