genode/repos/qt4
Martin Stein 8f9355b360 thread API & CPU session: accounting of CPU quota
In the init configuration one can configure the donation of CPU time via
'resource' tags that have the attribute 'name' set to "CPU" and the
attribute 'quantum' set to the percentage of CPU quota that init shall
donate. The pattern is the same as when donating RAM quota.

! <start name="test">
!   <resource name="CPU" quantum="75"/>
! </start>

This would cause init to try donating 75% of its CPU quota to the child
"test".  Init and core do not preserve CPU quota for their own
requirements by default as it is done with RAM quota.

The CPU quota that a process owns can be applied through the thread
constructor. The constructor has been enhanced by an argument that
indicates the percentage of the programs CPU quota that shall be granted
to the new thread. So 'Thread(33, "test")' would cause the backing CPU
session to try to grant 33% of the programs CPU quota to the thread
"test". By now, the CPU quota of a thread can't be altered after
construction. Constructing a thread with CPU quota 0 doesn't mean the
thread gets never scheduled but that the thread has no guaranty to receive
CPU time. Such threads have to live with excess CPU time.

Threads that already existed in the official repositories of Genode were
adapted in the way that they receive a quota of 0.

This commit also provides a run test 'cpu_quota' in base-hw (the only
kernel that applies the CPU-quota scheme currently). The test basically
runs three threads with different physical CPU quota. The threads simply
count for 30 seconds each and the test then checks wether the counter
values relate to the CPU-quota distribution.

fix #1275
2014-11-28 12:02:37 +01:00
..
include thread API & CPU session: accounting of CPU quota 2014-11-28 12:02:37 +01:00
lib Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
run Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
src Use signals for delivering input events 2014-06-06 14:54:07 +02:00
tool Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
Makefile qt4: change download URL for qscriptclassic 2014-09-01 11:00:38 +02:00
README Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00

This repository contains the Qt4 toolkit für Genode

Qt4 is a tool kit for developing platform-independent applications. It
comprises a complete platform-abstraction layer and a rich GUI tool kit.
With this repository, native Qt4 applications can be compiled and
natively executed for the Genode OS Framework. This way, Qt4 becomes
available on all base platforms supported by Genode.

Usage
-----

For using Qt4 for your Genode applications, you first need to download and
prepare the original Qt4 source codes and build a few Qt4 tools such as
the meta-object compiler (moc) and the resource compiler. The top-level
makefile found in this directory automates this task. Just issue:

! make prepare

To include the 'qt4' repository into the Genode build process,
add the 'qt4/' directory to the 'REPOSITORIES' declaration of the
'etc/build.conf' file within your build directory.

Since the Genode release 9.11, Qt4 depends on the 'libports' repository,
specifically on the 'freetype2' and 'jpeg' libraries. Please make sure
that you called the top-level Makefile of the 'libports' repository
for those preparing those libraries and that your 'REPOSITORIES' declaration
contains the 'libports' repository.