From: Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject: Re: non-preemptive tasking on GNAT 2020 Windows 10 multicore AMD
Date: Sat, 12 Jun 2021 21:55:35 -0400 [thread overview]
Message-ID: <lioacg9dldcc1to826tkrrrschvh6r3ctj@4ax.com> (raw)
In-Reply-To: ndlacg1vmcs2sv6nainh80ki8vb7kvas60@4ax.com
On Sat, 12 Jun 2021 21:24:58 -0400, Dennis Lee Bieber
<wlfraed@ix.netcom.com> declaimed the following:
> I suspect part of the problem may be that the GNAT runtime defers to
>the OS for how tasks (threads/processes) are implemented (AdaCore probably
Also see
https://docs.adacore.com/gnat_ugn-docs/html/gnat_ugn/gnat_ugn/platform_specific_information.html
"""
Choosing the Scheduling Policy
When using a POSIX threads implementation, you have a choice of several
scheduling policies: SCHED_FIFO, SCHED_RR and SCHED_OTHER.
"""
Unfortunately -- POSIX threads means, I believe, pthreads library...
That is not native on Windows, just Linux and Mac... Don't know if
"""
wPOSIX
wPOSIX is a minimal POSIX binding whose goal is to help with building
cross-platforms applications. This binding is not complete though, as the
Win32 API does not provide the necessary support for all POSIX APIs.
To use the wPOSIX binding you need to use a project file, and adding a
single with_clause will give you full access to the wPOSIX binding sources
and ensure that the proper libraries are passed to the linker.
with "wposix";
project P is
for Sources use ...;
end P;
To build the application you just need to call gprbuild for the
application’s project, here p.gpr:
gprbuild p.gpr
"""
is sufficient to get POSIX threading... I don't see anything in
https://github.com/AdaCore/wposix/tree/master/src that seems specific to
threading
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/
next prev parent reply other threads:[~2021-06-13 1:55 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-12 12:51 non-preemptive tasking on GNAT 2020 Windows 10 multicore AMD Dan Winslow
2021-06-12 13:11 ` Dmitry A. Kazakov
2021-06-12 15:43 ` AdaMagica
2021-06-12 15:57 ` Dmitry A. Kazakov
2021-06-12 16:05 ` AdaMagica
2021-06-12 16:30 ` Dmitry A. Kazakov
2021-06-12 20:56 ` Dan Winslow
2021-06-12 22:21 ` Dan Winslow
2021-06-13 1:24 ` Dennis Lee Bieber
2021-06-13 1:55 ` Dennis Lee Bieber [this message]
2021-06-13 10:24 ` J-P. Rosen
2021-06-13 12:11 ` Dan Winslow
2021-06-13 6:20 ` Randy Brukardt
2021-06-13 8:04 ` darek
2021-06-13 9:13 ` Dmitry A. Kazakov
2021-06-13 21:43 ` darek
2021-06-13 12:06 ` Dan Winslow
2021-06-13 13:16 ` Jeffrey R. Carter
2021-06-13 16:43 ` Dan Winslow
2021-06-13 16:46 ` Dan Winslow
2021-06-13 16:50 ` Dan Winslow
2021-06-13 17:44 ` Jeffrey R. Carter
2021-06-15 0:41 ` Dan Winslow
2021-06-16 0:10 ` Dennis Lee Bieber
2021-06-14 2:09 ` Dennis Lee Bieber
2021-06-12 16:03 ` AdaMagica
2021-06-12 18:02 ` Niklas Holsti
2021-06-12 20:50 ` Dan Winslow
2021-06-13 17:41 ` AdaMagica
2021-06-12 17:18 ` Dan Winslow
2021-06-12 17:21 ` Dan Winslow
2021-06-12 18:06 ` Dennis Lee Bieber
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox