Resources managed by the JanosVM on a per-team basis.
Managed resources are:
For each resource a specification and a client object exist. The
specification is the object that communicates what is required from the
resource when creating a new team. For example, creating a team with the
spec, new MemorySpec(8 * 1024 * 1024)
, would give the new
team an eight megabyte memory limit. The client object is the object
held by the team that gives it access to the resource. In the case of
global resources like memory, the client object is manipulated through
static methods in the corresponding resource class, for example,
MemoryResource
.