Re: Blocking syscalls in Tasks

Probably because for Janus/Ada, pretty much everything you said about the
mapping of Ada tasks to threads is wrong.

Janus/Ada still maps all tasks to one Windows thread. That was originally
supposed to be a temporary Q&D implementation, but for a variety of reasons
it never got replaced. Most obviously: other things needed work more
urgently than the tasking, which is quite efficient. Depending on your
circumstances, it might actually be faster than a threaded implementation.
(Our ultimate goal is to have both.)

In any case, the point is that Ada doesn't say anything about the mapping of
tasks to OS threads: you simply have to ask your vendor. And, of course
blocking of system calls follows from that.


"anon" <anon@xxxxxxxx> wrote in message
Each and every time you speak you CUT the post down Ada!
WHY are you trying to KILL Ada! And I say nothing that is
confusing except to those who hate Ada.

An event thread is a blocked thread. See Microsoft Windows Documentation!
LEARN before speaking!

In <q7GdnQCVgLL7XkLVnZ2dnUVZ_h-dnZ2d@xxxxxxxxxxx>, tmoran@xxxxxxx writes:
Except for DOS in todays OS all Ada partitions are executed by native OS
This is confusing. An Ada partition is not at all the same as an Ada
task, and there's no guarantee that an Ada task maps 1-1 to an OS thread.

Now, in a GUI system, the RC_TASK (resource task) is blocked until a
device such as the mouse or keyboard actives the thread.
MS Windows tasks do not block waiting for mouse or keyboard. Windows
"event based" GUI design was based on a single thread and a polling loop.


Relevant Pages

  • Re: [announcement] SYSAPI and SYSSVC for Windows
    ... What do you need Windows NT for in this application? ... You can use SEH (Structured Exception Handling) to prevent a process from ... > Ada did solve this, ... If you implement your own message queues on Windows, use an Event object ...
  • Re: Blocking syscalls in Tasks
    ... As for Janus/Ada, IBM and other Ada compilers to most they are outdated. ... Windows 95/98, they will suggest you find another provider. ... Also, back in the late 90s using Windows 98, GNAT used threads that was ... you simply have to ask your vendor. ...
  • Re: += in ada
    ... The same goes for Ada. ... *** Before Windows 2000 and XP, why do you supposed Windows was so popular? ... language, let's use it;-). ... for game development, and C++ pops up. ...
  • Re: Limited use for limited with?
    ... damage the links that register the objects and cause bugs that are nearly ... readable, and most flexible for the final user to be not "the Ada way" ... when talking about something like Claw, where the user of Claw and the user ... didn't require any Ada registration because Windows (and all other GUIs I've ...
  • Re: Improving Adas image - Was: 7E7 Flight Controls Electronics
    ... An OS targeted to some under-served segment of the market might make ... Find a way of saying that an Ada ... Windows or Linux or MacOS and you have some possible ...