From: Mark Lorenzen <mark.lorenzen@ofir.dk>
Subject: Re: epoll Ada binding
Date: 20 Oct 2004 22:48:00 +0200
Date: 2004-10-20T22:48:00+02:00 [thread overview]
Message-ID: <m3fz49glq7.fsf@0x5358c09a.boanxx18.adsl-dhcp.tele.dk> (raw)
In-Reply-To: pan.2004.10.19.22.20.13.97931@power.com.pl
Wojtek Narczynski <wojtek@power.com.pl> writes:
> Hello,
>
> > It would be very impressive if you succeed in making an efficient
> > task-based implementation with 10000 concurrent connections.
>
> The first step is to create a lightweight userspace tasking runtime, then
> make the scheduler IO aware. First I tried to rewrite FSU threads in Ada,
> function by function, structure by structure. Currently I perceive it as
> truly moronic. After having taken a good look at OpenRavenscar and Jose
> Tasking Kernel, I think I am on the right track. I have a lot of
> functionality working. One humongous missing piece is signals /
> interrupts. After all that making the scheduler IO aware will be a piece
> of cake.
OK, so it requires a special run-time system. If the tasks are I/O
aware, will the "usual" Ada task behaviour be preserved?
For some time I have been thinking how to make a library, which can be
used for the purpose of building networking applications. But instead
of patching the run-time system, I was thinking of a library which
could provide Ada equivalents for SDLs process and service
constructs. When providing a process set, the library user could
choose to have a process set where each process was a co-procedure
(i.e. one task handles many connections) or choose to have a process
set where each process was a task (i.e. one task handles one
connection). The choice could be mde by instantiating from different
packages or inheriting from different classes.
If this library also could provide a general way of implementing state
machines (a tagged type for each state?), it would provide powerful
infrastructure for networking applications.
>
> The #1 obstacle is my regular job ;-)
>
> Thanks for the reassurance that my thinking is sound, I need it...
>
> Regards,
> Wojtek
- Mark Lorenzen
next prev parent reply other threads:[~2004-10-20 20:48 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-18 19:00 epoll Ada binding jn
2004-10-18 20:04 ` Mark Lorenzen
2004-10-19 5:03 ` jn
2004-10-19 7:51 ` Wojtek Narczynski
2004-10-19 8:47 ` Mark Lorenzen
2004-10-19 22:20 ` Wojtek Narczynski
2004-10-20 20:48 ` Mark Lorenzen [this message]
2004-10-21 8:23 ` Ole-Hjalmar Kristensen
2004-10-22 17:47 ` Mark Lorenzen
2004-10-23 12:07 ` Wojtek Narczynski
2004-11-25 0:22 ` Mark Lorenzen
2004-12-23 12:17 ` Wojtek Narczynski
2004-10-21 9:45 ` Wojtek Narczynski
2004-10-22 17:56 ` Mark Lorenzen
2004-10-23 11:55 ` Wojtek Narczynski
2004-10-19 15:55 ` jn
2004-10-19 22:11 ` Wojtek Narczynski
2004-10-20 5:42 ` jn
2004-10-19 21:35 ` Florian Weimer
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox