ppos

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 1c57464d6d34fee8d1e375ba61a31d403bac887e
Author: Gabriel G. de Brito <me@gboncoffee.dev.br>
Date:   Thu,  6 Aug 2026 10:00:31 -0300

In the beginning there was darkness.

Diffstat:
A.clang-format | 52++++++++++++++++++++++++++++++++++++++++++++++++++++
Ahardware/cpu.c | 136+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Ahardware/cpu.h | 43+++++++++++++++++++++++++++++++++++++++++++
Ahardware/disk.c | 288+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Ahardware/disk.dat | 2++
Ahardware/disk.dat-final | 2++
Ahardware/disk.dat-inicial | 2++
Ahardware/disk.h | 112+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Ahardware/makefile | 30++++++++++++++++++++++++++++++
Ahardware/serial.c | 52++++++++++++++++++++++++++++++++++++++++++++++++++++
Ahardware/serial.h | 21+++++++++++++++++++++
Akernel/block.c | 14++++++++++++++
Akernel/block.h | 33+++++++++++++++++++++++++++++++++
Akernel/ctx.h | 92+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Akernel/ctx.s | 212+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Akernel/dispatcher.c | 18++++++++++++++++++
Akernel/dispatcher.h | 45+++++++++++++++++++++++++++++++++++++++++++++
Akernel/macros.h | 85+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Akernel/makefile | 22++++++++++++++++++++++
Akernel/memory.c | 30++++++++++++++++++++++++++++++
Akernel/memory.h | 38++++++++++++++++++++++++++++++++++++++
Akernel/mqueue.c | 14++++++++++++++
Akernel/mqueue.h | 41+++++++++++++++++++++++++++++++++++++++++
Akernel/ppos.c | 64++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Akernel/ppos.h | 71+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Akernel/scheduler.c | 14++++++++++++++
Akernel/scheduler.h | 32++++++++++++++++++++++++++++++++
Akernel/semaphore.c | 14++++++++++++++
Akernel/semaphore.h | 43+++++++++++++++++++++++++++++++++++++++++++
Akernel/syscall.h | 62++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Akernel/task.c | 14++++++++++++++
Akernel/task.h | 56++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Akernel/tcb.h | 22++++++++++++++++++++++
Akernel/time.c | 19+++++++++++++++++++
Akernel/time.h | 27+++++++++++++++++++++++++++
Aleia-me.txt | 49+++++++++++++++++++++++++++++++++++++++++++++++++
Alib/makefile | 22++++++++++++++++++++++
Alib/map.c | 8++++++++
Alib/map.h | 61+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Alib/pplibc.c | 357+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Alib/pplibc.h | 59+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Alib/queue.c | 143+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Alib/queue.h | 94+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Amakefile | 102+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atest/makefile | 13+++++++++++++
Atest/pingpong-contab-prio.c | 71+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atest/pingpong-contab-prio.txt | 23+++++++++++++++++++++++
Atest/pingpong-contab-stress.c | 59+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atest/pingpong-contab.c | 63+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atest/pingpong-contab.txt | 23+++++++++++++++++++++++
Atest/pingpong-disco-stress.c | 151++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atest/pingpong-disco-stress.txt | 1315+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atest/pingpong-disco.c | 84+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atest/pingpong-disco.txt | 779+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atest/pingpong-dispatcher.c | 56++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atest/pingpong-dispatcher.txt | 41+++++++++++++++++++++++++++++++++++++++++
Atest/pingpong-memoria.c | 149+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atest/pingpong-memoria.txt | 71+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atest/pingpong-mqueue.c | 175+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atest/pingpong-mqueue.txt | 113+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atest/pingpong-preempcao.c | 67+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atest/pingpong-preempcao.txt | 66++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atest/pingpong-scheduler.c | 63+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atest/pingpong-scheduler.txt | 66++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atest/pingpong-semaphore-stress.c | 102+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atest/pingpong-semaphore-stress.txt | 74++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atest/pingpong-semaphore.c | 117+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atest/pingpong-semaphore.txt | 30++++++++++++++++++++++++++++++
Atest/pingpong-sleep.c | 111+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atest/pingpong-sleep.txt | 233+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atest/pingpong-task1.c | 76++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atest/pingpong-task1.txt | 18++++++++++++++++++
Atest/pingpong-task2.c | 74++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atest/pingpong-task2.txt | 3078+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atest/pingpong-task3.c | 53+++++++++++++++++++++++++++++++++++++++++++++++++++++
Atest/pingpong-task3.txt | 518+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atest/pingpong-wait-stress.c | 79+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atest/pingpong-wait-stress.txt | 1545+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atest/pingpong-wait.c | 110+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atest/pingpong-wait.txt | 70++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
80 files changed, 12453 insertions(+), 0 deletions(-)

diff --git a/.clang-format b/.clang-format @@ -0,0 +1,52 @@ +AlignAfterOpenBracket: BlockIndent +AlignArrayOfStructures: Right +AlignConsecutiveAssignments: Consecutive +AlignConsecutiveBitFields: Consecutive +AlignConsecutiveDeclarations: Consecutive +AlignConsecutiveMacros: Consecutive +AlignEscapedNewlines: Right +AlignOperands: DontAlign +AlignTrailingComments: false +AllowAllParametersOfDeclarationOnNextLine: false +AllowShortBlocksOnASingleLine: Empty +AllowShortCaseLabelsOnASingleLine: false +AllowShortEnumsOnASingleLine: false +AllowShortFunctionsOnASingleLine: None +AllowShortIfStatementsOnASingleLine: Never +AllowShortLoopsOnASingleLine: false +AlwaysBreakAfterDefinitionReturnType: None +AlwaysBreakBeforeMultilineStrings: true +BinPackArguments: false +BinPackParameters: false +BitFieldColonSpacing: After +BreakBeforeBinaryOperators: None +BreakBeforeBraces: Linux +BreakBeforeTernaryOperators: true +BreakStringLiterals: true +ColumnLimit: 80 +ContinuationIndentWidth: 4 +IncludeBlocks: Regroup +IndentCaseLabels: false +IndentGotoLabels: false +IndentPPDirectives: BeforeHash +IndentWidth: 4 +MaxEmptyLinesToKeep: 1 +PPIndentWidth: 2 +PointerAlignment: Left +QualifierAlignment: Custom +QualifierOrder: [static, volatile, inline, const, restrict, type] +ReflowComments: false +SeparateDefinitionBlocks: Always +SortIncludes: CaseInsensitive +SpaceAfterCStyleCast: true +SpaceAfterLogicalNot: false +SpaceAroundPointerQualifiers: Default +SpaceBeforeAssignmentOperators: true +SpaceBeforeCaseColon: false +SpaceBeforeParens: ControlStatements +SpaceBeforeSquareBrackets: false +SpaceInEmptyBlock: false +SpacesBeforeTrailingComments: 1 +SpacesInContainerLiterals: true +SpacesInSquareBrackets: false +UseTab: Never diff --git a/hardware/cpu.c b/hardware/cpu.c @@ -0,0 +1,136 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Emulação de alguns mecanismos do hardware da CPU + +// padrão de API UNIX a usar (para sigaction) +#define _XOPEN_SOURCE 700 + +#include <stdio.h> +#include <stdlib.h> +#include <unistd.h> +#include <signal.h> +#include <time.h> +#include <sys/times.h> +#include "cpu.h" + +#define NOERROR 0 +#define ERROR -1 + +// para os sinais +static struct sigaction action; + +// para o timer +static timer_t timer; +static struct itimerspec delay; +static struct sigevent sigev; + +//---------------------------------------------------------------------- + +int hw_irq_handle(int irq, void (*handle)(int)) +{ + if ( (irq < 1) || ((irq + SIGRTMIN) >= SIGRTMAX) ) + return (ERROR); + + if (handle) + { + // registra a ação "handle" para o sinal indicado + action.sa_handler = handle; + sigemptyset(&action.sa_mask); + action.sa_flags = SA_NODEFER; + if (sigaction(irq + SIGRTMIN, &action, 0) < 0) + { + perror("IRQ:"); + abort(); + } + } + else + { + // registra a ação default para o sinal indicado + action.sa_handler = SIG_DFL; + sigemptyset(&action.sa_mask); + action.sa_flags = 0; + if (sigaction(irq + SIGRTMIN, &action, 0) < 0) + { + perror("IRQ:"); + abort(); + } + } + + return (NOERROR); +} + +//---------------------------------------------------------------------- + +void hw_irq_enable(int enable) +{ + sigset_t mask; + + if (enable) + sigemptyset(&mask); + else + sigfillset(&mask); + + sigprocmask(SIG_SETMASK, &mask, NULL); +} + +//---------------------------------------------------------------------- + +int hw_timer(int first, int next) +{ + if (first < 0 || next < 0) + return (ERROR); + + // cria o timer + sigev.sigev_notify = SIGEV_SIGNAL; + sigev.sigev_signo = IRQ_TIMER + SIGRTMIN; + sigev.sigev_value.sival_ptr = &timer; + if (timer_create(CLOCK_REALTIME, &sigev, &timer) == -1) + { + perror("TIMER:"); + abort(); + } + + // configura o timer POSIX + delay.it_value.tv_nsec = first * 1000000; + delay.it_value.tv_sec = 0; + delay.it_interval.tv_nsec = next * 1000000; + delay.it_interval.tv_sec = 0; + + // arma o timer POSIX + if (timer_settime(timer, 0, &delay, NULL) == -1) + { + perror("TIMER:"); + abort(); + } + return (NOERROR); +} + +//---------------------------------------------------------------------- + +void hw_wfi() +{ + // A syscall pause permite emular o comportamento da instrução HLT + // (halt) ou WFI (wait for interrupt), que suspendem a CPU até a + // próxima interrupção de hardware, para economizar energia. + // Neste caso, pause() suspende este processo até o próximo sinal + // UNIX, que emula uma interrupção. + pause(); +} + +//---------------------------------------------------------------------- + +void hw_poweroff(int error) +{ + // encerra com erro, GDB pode ver o call stack + if (error) + abort(); + + exit(0); +} + +//---------------------------------------------------------------------- diff --git a/hardware/cpu.h b/hardware/cpu.h @@ -0,0 +1,43 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Emulação de alguns mecanismos do hardware da CPU + +#ifndef __HW_CPU__ +#define __HW_CPU__ + +// Interrupções virtuais +#define IRQ_RESERVED 0 // reservada (não usar) +#define IRQ_TIMER 1 // IRQ gerada pelo temporizador +#define IRQ_DISK 2 // IRQ gerada pelo controlador de disco +#define IRQ_UART 3 // IRQ gerada pela UART (serial) +#define IRQ_NET 4 // IRQ gerada pela interface de rede + +// Define a função de tratamento de uma IRQ; a função "handle" +// será chamada sempre que a IRQ indicada ocorrer. Caso "handle" +// seja nulo, desfaz a definição anterior. +// Retorno: ERROR ou NOERROR +int hw_irq_handle(int irq, void (*handle)(int)); + +// Habilita (enable != 0) ou desabilita (enable == 0) as IRQs. +void hw_irq_enable(int enable); + +// Arma o temporizador para disparar após "first" ms e depois +// repetir a cada "next" ms. Se first == next == 0, desarma-o. +// Ao disparar, o temporizador gera a IRq IRQ_TIMER. +// Retorno: ERROR ou NOERROR +int hw_timer(int first, int next); + +// "Wait for Interrupt": suspende a CPU até a próxima IRq, +// para economizar energia. +void hw_wfi(); + +// Desliga o hardware; se error != 0, encerra com status de erro +// (útil quando depurar com o GDB). +void hw_poweroff(int error); + +#endif diff --git a/hardware/disk.c b/hardware/disk.c @@ -0,0 +1,288 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Emulação do disco virtual, que simula um disco rígido. + +// para depurar a operação do disco +//#define DEBUG_DISK 1 + +// padrão de API UNIX a usar (para sigaction) +#define _XOPEN_SOURCE 700 + +#include <stdio.h> +#include <stdlib.h> +#include <unistd.h> +#include <signal.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> +#include <time.h> +#include "cpu.h" +#include "disk.h" + +#define NOERROR 0 +#define ERROR -1 + +// parâmetros de operação do disco simulado +#define DISK_BLOCK_SIZE 64 // tamanho de cada bloco, em bytes +#define DISK_DELAY_MIN 30 // atraso mínimo, em milissegundos +#define DISK_DELAY_MAX 300 // atraso máximo, em milissegundos +#define DISK_SIGNAL SIGRTMIN // sinal a ser usado no timer interno + +//---------------------------------------------------------------------- + +// estrutura com os dados internos do disco (estado inicial desconhecido) +struct disk_t +{ + int status; // estado do disco + char *file; // nome do arquivo que simula o disco + int fd; // descritor do arquivo que simula o disco + int numblocks; // numero de blocos do disco + int blocksize; // tamanho dos blocos em bytes + char *buffer; // buffer da próxima operação (read/write) + int prev_block; // bloco da ultima operação + int next_block; // bloco da próxima operação + int delay_min, delay_max; // tempos de acesso mínimo e máximo + int count_read, // contador de leituras + count_write; // contador de escritas + timer_t timer; // timer que simula o tempo de acesso + struct itimerspec delay; // struct do timer de tempo de acesso + struct sigevent sigev; // evento associado ao timer + struct sigaction signal; // tratador de sinal do timer +}; + +// disco +static struct disk_t disk = {.status = DISK_STATUS_UNKNOWN}; + +//---------------------------------------------------------------------- + +// arma o timer que simula o tempo de acesso ao disco; +// ao disparar, ele gera um sinal DISK_SIGNAL +static void disk_settimer() +{ + int time_ms; + + // tempo no intervalo [DISK_DELAY_MIN ... DISK_DELAY_MAX], proporcional a + // distancia entre o próximo bloco a ler (next_block) e a ultima leitura + // (prev_block), somado a um pequeno fator aleatorio + time_ms = abs(disk.next_block - disk.prev_block) * + (disk.delay_max - disk.delay_min) / + disk.numblocks + + disk.delay_min + + random() % (disk.delay_max - disk.delay_min) / 10; + + #ifdef DEBUG_DISK + printf("DISK: [From block %d to block %d in %d ms]\n", + disk.prev_block, disk.next_block, time_ms); + #endif + + // primeiro disparo, em nanossegundos, + disk.delay.it_value.tv_nsec = time_ms * 1000000; + + // primeiro disparo, em segundos + disk.delay.it_value.tv_sec = time_ms / 1000; + + // próximos disparos não ocorrem (disparo único) + disk.delay.it_interval.tv_nsec = 0; + disk.delay.it_interval.tv_sec = 0; + + // arma o timer + if (timer_settime(disk.timer, 0, &disk.delay, NULL) == -1) + { + perror("DISK:"); + abort(); + } + #ifdef DEBUG_DISK + printf("DISK: timer is set\n"); + #endif +} + +//---------------------------------------------------------------------- + +// trata o sinal do timer que simula o tempo de acesso ao disco +static void disk_sighandle(int) +{ + #ifdef DEBUG_DISK + printf("DISK: signal received\n"); + printf("fd: %d, block %d, size %d\n", disk.fd, disk.next_block, + disk.blocksize); + #endif + + // verificar qual a operação pendente e realizá-la + switch (disk.status) + { + case DISK_STATUS_READ: + // faz a leitura previamente agendada + pread(disk.fd, disk.buffer, disk.blocksize, + disk.next_block * disk.blocksize); + disk.count_read++; + break; + + case DISK_STATUS_WRITE: + // faz a escrita previamente agendada + pwrite(disk.fd, disk.buffer, disk.blocksize, + disk.next_block * disk.blocksize); + disk.count_write++; + break; + + default: + // erro: estado desconhecido + perror("DISK: unknown disk state"); + abort(); + } + + // guarda numero de bloco da ultima operação + disk.prev_block = disk.next_block; + + // disco se torna ocioso novamente + disk.status = DISK_STATUS_IDLE; + + // gera uma IRQ virtual para o "kernel" do usuário + raise(IRQ_DISK + SIGRTMIN); +} + +//---------------------------------------------------------------------- + +// inicia o disco virtual contido em "disk_image" +// retorno: 0 (sucesso) ou -1 (erro) +static int disk_init(char *disk_image) +{ + // o disco já foi iniciado ? + if (disk.status != DISK_STATUS_UNKNOWN) + return (ERROR); + + // estado atual do disco + disk.status = DISK_STATUS_IDLE; + disk.next_block = disk.prev_block = 0; + + // abre o arquivo no disco (leitura/escrita, síncrono) + disk.file = disk_image; + disk.fd = open(disk.file, O_RDWR | O_SYNC); + if (disk.fd < 0) + { + perror("DISK: "); + abort(); + } + + // define seu tamanho em blocos + disk.blocksize = DISK_BLOCK_SIZE; + disk.numblocks = lseek(disk.fd, 0, SEEK_END) / disk.blocksize; + + // ajusta atrasos mínimo e máximo de acesso no disco + disk.delay_min = DISK_DELAY_MIN; + disk.delay_max = DISK_DELAY_MAX; + + // contadores de operações + disk.count_read = 0; + disk.count_write = 0; + + // associa sinal do timer interno ao handle apropriado + disk.signal.sa_handler = disk_sighandle; + sigemptyset(&disk.signal.sa_mask); + disk.signal.sa_flags = SA_NODEFER; + sigaction(DISK_SIGNAL, &disk.signal, 0); + + // cria o timer que simula o tempo de acesso ao disco + disk.sigev.sigev_notify = SIGEV_SIGNAL; + disk.sigev.sigev_signo = DISK_SIGNAL; + if (timer_create(CLOCK_REALTIME, &disk.sigev, &disk.timer) == -1) + { + perror("DISK:"); + abort(); + } + + #ifdef DEBUG_DISK + printf("DISK: initialized\n"); + #endif + + return (NOERROR); +} + +//---------------------------------------------------------------------- + +// função que implementa a interface de acesso ao disco virtual +int hw_disk(int cmd, int block, void *buffer) +{ + #ifdef DEBUG_DISK + printf("DISK: received command %d\n", cmd); + #endif + + switch (cmd) + { + // inicia o disco + case DISK_CMD_INIT: + return (disk_init(buffer)); + + // solicita status do disco + case DISK_CMD_STATUS: + return (disk.status); + + // solicita tamanho do disco + case DISK_CMD_DISKSIZE: + if (disk.status == DISK_STATUS_UNKNOWN) + return (ERROR); + return (disk.numblocks); + + // solicita tamanho de bloco + case DISK_CMD_BLOCKSIZE: + if (disk.status == DISK_STATUS_UNKNOWN) + return (ERROR); + return (disk.blocksize); + + // solicita atraso mínimo + case DISK_CMD_DELAYMIN: + if (disk.status == DISK_STATUS_UNKNOWN) + return (ERROR); + return (disk.delay_min); + + // solicita atraso máximo + case DISK_CMD_DELAYMAX: + if (disk.status == DISK_STATUS_UNKNOWN) + return (ERROR); + return (disk.delay_max); + + // solicita contador de leituras + case DISK_CMD_COUNTREAD: + if (disk.status == DISK_STATUS_UNKNOWN) + return (ERROR); + return (disk.count_read); + + // solicita contador de escritas + case DISK_CMD_COUNTWRITE: + if (disk.status == DISK_STATUS_UNKNOWN) + return (ERROR); + return (disk.count_write); + + // solicita operação de leitura ou de escrita + case DISK_CMD_READ: + case DISK_CMD_WRITE: + if (disk.status != DISK_STATUS_IDLE) + return (ERROR); + if (!buffer) + return (ERROR); + if (block < 0 || block >= disk.numblocks) + return (ERROR); + + // registra que ha uma operação pendente + disk.buffer = buffer; + disk.next_block = block; + if (cmd == DISK_CMD_READ) + disk.status = DISK_STATUS_READ; + else + disk.status = DISK_STATUS_WRITE; + + // arma o timer que simula o atraso do disco + disk_settimer(); + + return (NOERROR); + + default: + return (ERROR); + } +} + +//---------------------------------------------------------------------- diff --git a/hardware/disk.dat b/hardware/disk.dat @@ -0,0 +1 @@ +<--bloco 0000--------------------------------------------------><--bloco 0001--------------------------------------------------><--bloco 0002--------------------------------------------------><--bloco 0003--------------------------------------------------><--bloco 0004--------------------------------------------------><--bloco 0005--------------------------------------------------><--bloco 0006--------------------------------------------------><--bloco 0007--------------------------------------------------><--bloco 0008--------------------------------------------------><--bloco 0009--------------------------------------------------><--bloco 0010--------------------------------------------------><--bloco 0011--------------------------------------------------><--bloco 0012--------------------------------------------------><--bloco 0013--------------------------------------------------><--bloco 0014--------------------------------------------------><--bloco 0015--------------------------------------------------><--bloco 0016--------------------------------------------------><--bloco 0017--------------------------------------------------><--bloco 0018--------------------------------------------------><--bloco 0019--------------------------------------------------><--bloco 0020--------------------------------------------------><--bloco 0021--------------------------------------------------><--bloco 0022--------------------------------------------------><--bloco 0023--------------------------------------------------><--bloco 0024--------------------------------------------------><--bloco 0025--------------------------------------------------><--bloco 0026--------------------------------------------------><--bloco 0027--------------------------------------------------><--bloco 0028--------------------------------------------------><--bloco 0029--------------------------------------------------><--bloco 0030--------------------------------------------------><--bloco 0031--------------------------------------------------><--bloco 0032--------------------------------------------------><--bloco 0033--------------------------------------------------><--bloco 0034--------------------------------------------------><--bloco 0035--------------------------------------------------><--bloco 0036--------------------------------------------------><--bloco 0037--------------------------------------------------><--bloco 0038--------------------------------------------------><--bloco 0039--------------------------------------------------><--bloco 0040--------------------------------------------------><--bloco 0041--------------------------------------------------><--bloco 0042--------------------------------------------------><--bloco 0043--------------------------------------------------><--bloco 0044--------------------------------------------------><--bloco 0045--------------------------------------------------><--bloco 0046--------------------------------------------------><--bloco 0047--------------------------------------------------><--bloco 0048--------------------------------------------------><--bloco 0049--------------------------------------------------><--bloco 0050--------------------------------------------------><--bloco 0051--------------------------------------------------><--bloco 0052--------------------------------------------------><--bloco 0053--------------------------------------------------><--bloco 0054--------------------------------------------------><--bloco 0055--------------------------------------------------><--bloco 0056--------------------------------------------------><--bloco 0057--------------------------------------------------><--bloco 0058--------------------------------------------------><--bloco 0059--------------------------------------------------><--bloco 0060--------------------------------------------------><--bloco 0061--------------------------------------------------><--bloco 0062--------------------------------------------------><--bloco 0063--------------------------------------------------><--bloco 0064--------------------------------------------------><--bloco 0065--------------------------------------------------><--bloco 0066--------------------------------------------------><--bloco 0067--------------------------------------------------><--bloco 0068--------------------------------------------------><--bloco 0069--------------------------------------------------><--bloco 0070--------------------------------------------------><--bloco 0071--------------------------------------------------><--bloco 0072--------------------------------------------------><--bloco 0073--------------------------------------------------><--bloco 0074--------------------------------------------------><--bloco 0075--------------------------------------------------><--bloco 0076--------------------------------------------------><--bloco 0077--------------------------------------------------><--bloco 0078--------------------------------------------------><--bloco 0079--------------------------------------------------><--bloco 0080--------------------------------------------------><--bloco 0081--------------------------------------------------><--bloco 0082--------------------------------------------------><--bloco 0083--------------------------------------------------><--bloco 0084--------------------------------------------------><--bloco 0085--------------------------------------------------><--bloco 0086--------------------------------------------------><--bloco 0087--------------------------------------------------><--bloco 0088--------------------------------------------------><--bloco 0089--------------------------------------------------><--bloco 0090--------------------------------------------------><--bloco 0091--------------------------------------------------><--bloco 0092--------------------------------------------------><--bloco 0093--------------------------------------------------><--bloco 0094--------------------------------------------------><--bloco 0095--------------------------------------------------><--bloco 0096--------------------------------------------------><--bloco 0097--------------------------------------------------><--bloco 0098--------------------------------------------------><--bloco 0099--------------------------------------------------><--bloco 0100--------------------------------------------------><--bloco 0101--------------------------------------------------><--bloco 0102--------------------------------------------------><--bloco 0103--------------------------------------------------><--bloco 0104--------------------------------------------------><--bloco 0105--------------------------------------------------><--bloco 0106--------------------------------------------------><--bloco 0107--------------------------------------------------><--bloco 0108--------------------------------------------------><--bloco 0109--------------------------------------------------><--bloco 0110--------------------------------------------------><--bloco 0111--------------------------------------------------><--bloco 0112--------------------------------------------------><--bloco 0113--------------------------------------------------><--bloco 0114--------------------------------------------------><--bloco 0115--------------------------------------------------><--bloco 0116--------------------------------------------------><--bloco 0117--------------------------------------------------><--bloco 0118--------------------------------------------------><--bloco 0119--------------------------------------------------><--bloco 0120--------------------------------------------------><--bloco 0121--------------------------------------------------><--bloco 0122--------------------------------------------------><--bloco 0123--------------------------------------------------><--bloco 0124--------------------------------------------------><--bloco 0125--------------------------------------------------><--bloco 0126--------------------------------------------------><--bloco 0127--------------------------------------------------><--bloco 0128--------------------------------------------------><--bloco 0129--------------------------------------------------><--bloco 0130--------------------------------------------------><--bloco 0131--------------------------------------------------><--bloco 0132--------------------------------------------------><--bloco 0133--------------------------------------------------><--bloco 0134--------------------------------------------------><--bloco 0135--------------------------------------------------><--bloco 0136--------------------------------------------------><--bloco 0137--------------------------------------------------><--bloco 0138--------------------------------------------------><--bloco 0139--------------------------------------------------><--bloco 0140--------------------------------------------------><--bloco 0141--------------------------------------------------><--bloco 0142--------------------------------------------------><--bloco 0143--------------------------------------------------><--bloco 0144--------------------------------------------------><--bloco 0145--------------------------------------------------><--bloco 0146--------------------------------------------------><--bloco 0147--------------------------------------------------><--bloco 0148--------------------------------------------------><--bloco 0149--------------------------------------------------><--bloco 0150--------------------------------------------------><--bloco 0151--------------------------------------------------><--bloco 0152--------------------------------------------------><--bloco 0153--------------------------------------------------><--bloco 0154--------------------------------------------------><--bloco 0155--------------------------------------------------><--bloco 0156--------------------------------------------------><--bloco 0157--------------------------------------------------><--bloco 0158--------------------------------------------------><--bloco 0159--------------------------------------------------><--bloco 0160--------------------------------------------------><--bloco 0161--------------------------------------------------><--bloco 0162--------------------------------------------------><--bloco 0163--------------------------------------------------><--bloco 0164--------------------------------------------------><--bloco 0165--------------------------------------------------><--bloco 0166--------------------------------------------------><--bloco 0167--------------------------------------------------><--bloco 0168--------------------------------------------------><--bloco 0169--------------------------------------------------><--bloco 0170--------------------------------------------------><--bloco 0171--------------------------------------------------><--bloco 0172--------------------------------------------------><--bloco 0173--------------------------------------------------><--bloco 0174--------------------------------------------------><--bloco 0175--------------------------------------------------><--bloco 0176--------------------------------------------------><--bloco 0177--------------------------------------------------><--bloco 0178--------------------------------------------------><--bloco 0179--------------------------------------------------><--bloco 0180--------------------------------------------------><--bloco 0181--------------------------------------------------><--bloco 0182--------------------------------------------------><--bloco 0183--------------------------------------------------><--bloco 0184--------------------------------------------------><--bloco 0185--------------------------------------------------><--bloco 0186--------------------------------------------------><--bloco 0187--------------------------------------------------><--bloco 0188--------------------------------------------------><--bloco 0189--------------------------------------------------><--bloco 0190--------------------------------------------------><--bloco 0191--------------------------------------------------><--bloco 0192--------------------------------------------------><--bloco 0193--------------------------------------------------><--bloco 0194--------------------------------------------------><--bloco 0195--------------------------------------------------><--bloco 0196--------------------------------------------------><--bloco 0197--------------------------------------------------><--bloco 0198--------------------------------------------------><--bloco 0199--------------------------------------------------><--bloco 0200--------------------------------------------------><--bloco 0201--------------------------------------------------><--bloco 0202--------------------------------------------------><--bloco 0203--------------------------------------------------><--bloco 0204--------------------------------------------------><--bloco 0205--------------------------------------------------><--bloco 0206--------------------------------------------------><--bloco 0207--------------------------------------------------><--bloco 0208--------------------------------------------------><--bloco 0209--------------------------------------------------><--bloco 0210--------------------------------------------------><--bloco 0211--------------------------------------------------><--bloco 0212--------------------------------------------------><--bloco 0213--------------------------------------------------><--bloco 0214--------------------------------------------------><--bloco 0215--------------------------------------------------><--bloco 0216--------------------------------------------------><--bloco 0217--------------------------------------------------><--bloco 0218--------------------------------------------------><--bloco 0219--------------------------------------------------><--bloco 0220--------------------------------------------------><--bloco 0221--------------------------------------------------><--bloco 0222--------------------------------------------------><--bloco 0223--------------------------------------------------><--bloco 0224--------------------------------------------------><--bloco 0225--------------------------------------------------><--bloco 0226--------------------------------------------------><--bloco 0227--------------------------------------------------><--bloco 0228--------------------------------------------------><--bloco 0229--------------------------------------------------><--bloco 0230--------------------------------------------------><--bloco 0231--------------------------------------------------><--bloco 0232--------------------------------------------------><--bloco 0233--------------------------------------------------><--bloco 0234--------------------------------------------------><--bloco 0235--------------------------------------------------><--bloco 0236--------------------------------------------------><--bloco 0237--------------------------------------------------><--bloco 0238--------------------------------------------------><--bloco 0239--------------------------------------------------><--bloco 0240--------------------------------------------------><--bloco 0241--------------------------------------------------><--bloco 0242--------------------------------------------------><--bloco 0243--------------------------------------------------><--bloco 0244--------------------------------------------------><--bloco 0245--------------------------------------------------><--bloco 0246--------------------------------------------------><--bloco 0247--------------------------------------------------><--bloco 0248--------------------------------------------------><--bloco 0249--------------------------------------------------><--bloco 0250--------------------------------------------------><--bloco 0251--------------------------------------------------><--bloco 0252--------------------------------------------------><--bloco 0253--------------------------------------------------><--bloco 0254--------------------------------------------------><--bloco 0255--------------------------------------------------> +\ No newline at end of file diff --git a/hardware/disk.dat-final b/hardware/disk.dat-final @@ -0,0 +1 @@ +<--bloco 0255--------------------------------------------------><--bloco 0254--------------------------------------------------><--bloco 0253--------------------------------------------------><--bloco 0252--------------------------------------------------><--bloco 0251--------------------------------------------------><--bloco 0250--------------------------------------------------><--bloco 0249--------------------------------------------------><--bloco 0248--------------------------------------------------><--bloco 0247--------------------------------------------------><--bloco 0246--------------------------------------------------><--bloco 0245--------------------------------------------------><--bloco 0244--------------------------------------------------><--bloco 0243--------------------------------------------------><--bloco 0242--------------------------------------------------><--bloco 0241--------------------------------------------------><--bloco 0240--------------------------------------------------><--bloco 0239--------------------------------------------------><--bloco 0238--------------------------------------------------><--bloco 0237--------------------------------------------------><--bloco 0236--------------------------------------------------><--bloco 0235--------------------------------------------------><--bloco 0234--------------------------------------------------><--bloco 0233--------------------------------------------------><--bloco 0232--------------------------------------------------><--bloco 0231--------------------------------------------------><--bloco 0230--------------------------------------------------><--bloco 0229--------------------------------------------------><--bloco 0228--------------------------------------------------><--bloco 0227--------------------------------------------------><--bloco 0226--------------------------------------------------><--bloco 0225--------------------------------------------------><--bloco 0224--------------------------------------------------><--bloco 0223--------------------------------------------------><--bloco 0222--------------------------------------------------><--bloco 0221--------------------------------------------------><--bloco 0220--------------------------------------------------><--bloco 0219--------------------------------------------------><--bloco 0218--------------------------------------------------><--bloco 0217--------------------------------------------------><--bloco 0216--------------------------------------------------><--bloco 0215--------------------------------------------------><--bloco 0214--------------------------------------------------><--bloco 0213--------------------------------------------------><--bloco 0212--------------------------------------------------><--bloco 0211--------------------------------------------------><--bloco 0210--------------------------------------------------><--bloco 0209--------------------------------------------------><--bloco 0208--------------------------------------------------><--bloco 0207--------------------------------------------------><--bloco 0206--------------------------------------------------><--bloco 0205--------------------------------------------------><--bloco 0204--------------------------------------------------><--bloco 0203--------------------------------------------------><--bloco 0202--------------------------------------------------><--bloco 0201--------------------------------------------------><--bloco 0200--------------------------------------------------><--bloco 0199--------------------------------------------------><--bloco 0198--------------------------------------------------><--bloco 0197--------------------------------------------------><--bloco 0196--------------------------------------------------><--bloco 0195--------------------------------------------------><--bloco 0194--------------------------------------------------><--bloco 0193--------------------------------------------------><--bloco 0192--------------------------------------------------><--bloco 0191--------------------------------------------------><--bloco 0190--------------------------------------------------><--bloco 0189--------------------------------------------------><--bloco 0188--------------------------------------------------><--bloco 0187--------------------------------------------------><--bloco 0186--------------------------------------------------><--bloco 0185--------------------------------------------------><--bloco 0184--------------------------------------------------><--bloco 0183--------------------------------------------------><--bloco 0182--------------------------------------------------><--bloco 0181--------------------------------------------------><--bloco 0180--------------------------------------------------><--bloco 0179--------------------------------------------------><--bloco 0178--------------------------------------------------><--bloco 0177--------------------------------------------------><--bloco 0176--------------------------------------------------><--bloco 0175--------------------------------------------------><--bloco 0174--------------------------------------------------><--bloco 0173--------------------------------------------------><--bloco 0172--------------------------------------------------><--bloco 0171--------------------------------------------------><--bloco 0170--------------------------------------------------><--bloco 0169--------------------------------------------------><--bloco 0168--------------------------------------------------><--bloco 0167--------------------------------------------------><--bloco 0166--------------------------------------------------><--bloco 0165--------------------------------------------------><--bloco 0164--------------------------------------------------><--bloco 0163--------------------------------------------------><--bloco 0162--------------------------------------------------><--bloco 0161--------------------------------------------------><--bloco 0160--------------------------------------------------><--bloco 0159--------------------------------------------------><--bloco 0158--------------------------------------------------><--bloco 0157--------------------------------------------------><--bloco 0156--------------------------------------------------><--bloco 0155--------------------------------------------------><--bloco 0154--------------------------------------------------><--bloco 0153--------------------------------------------------><--bloco 0152--------------------------------------------------><--bloco 0151--------------------------------------------------><--bloco 0150--------------------------------------------------><--bloco 0149--------------------------------------------------><--bloco 0148--------------------------------------------------><--bloco 0147--------------------------------------------------><--bloco 0146--------------------------------------------------><--bloco 0145--------------------------------------------------><--bloco 0144--------------------------------------------------><--bloco 0143--------------------------------------------------><--bloco 0142--------------------------------------------------><--bloco 0141--------------------------------------------------><--bloco 0140--------------------------------------------------><--bloco 0139--------------------------------------------------><--bloco 0138--------------------------------------------------><--bloco 0137--------------------------------------------------><--bloco 0136--------------------------------------------------><--bloco 0135--------------------------------------------------><--bloco 0134--------------------------------------------------><--bloco 0133--------------------------------------------------><--bloco 0132--------------------------------------------------><--bloco 0131--------------------------------------------------><--bloco 0130--------------------------------------------------><--bloco 0129--------------------------------------------------><--bloco 0128--------------------------------------------------><--bloco 0127--------------------------------------------------><--bloco 0126--------------------------------------------------><--bloco 0125--------------------------------------------------><--bloco 0124--------------------------------------------------><--bloco 0123--------------------------------------------------><--bloco 0122--------------------------------------------------><--bloco 0121--------------------------------------------------><--bloco 0120--------------------------------------------------><--bloco 0119--------------------------------------------------><--bloco 0118--------------------------------------------------><--bloco 0117--------------------------------------------------><--bloco 0116--------------------------------------------------><--bloco 0115--------------------------------------------------><--bloco 0114--------------------------------------------------><--bloco 0113--------------------------------------------------><--bloco 0112--------------------------------------------------><--bloco 0111--------------------------------------------------><--bloco 0110--------------------------------------------------><--bloco 0109--------------------------------------------------><--bloco 0108--------------------------------------------------><--bloco 0107--------------------------------------------------><--bloco 0106--------------------------------------------------><--bloco 0105--------------------------------------------------><--bloco 0104--------------------------------------------------><--bloco 0103--------------------------------------------------><--bloco 0102--------------------------------------------------><--bloco 0101--------------------------------------------------><--bloco 0100--------------------------------------------------><--bloco 0099--------------------------------------------------><--bloco 0098--------------------------------------------------><--bloco 0097--------------------------------------------------><--bloco 0096--------------------------------------------------><--bloco 0095--------------------------------------------------><--bloco 0094--------------------------------------------------><--bloco 0093--------------------------------------------------><--bloco 0092--------------------------------------------------><--bloco 0091--------------------------------------------------><--bloco 0090--------------------------------------------------><--bloco 0089--------------------------------------------------><--bloco 0088--------------------------------------------------><--bloco 0087--------------------------------------------------><--bloco 0086--------------------------------------------------><--bloco 0085--------------------------------------------------><--bloco 0084--------------------------------------------------><--bloco 0083--------------------------------------------------><--bloco 0082--------------------------------------------------><--bloco 0081--------------------------------------------------><--bloco 0080--------------------------------------------------><--bloco 0079--------------------------------------------------><--bloco 0078--------------------------------------------------><--bloco 0077--------------------------------------------------><--bloco 0076--------------------------------------------------><--bloco 0075--------------------------------------------------><--bloco 0074--------------------------------------------------><--bloco 0073--------------------------------------------------><--bloco 0072--------------------------------------------------><--bloco 0071--------------------------------------------------><--bloco 0070--------------------------------------------------><--bloco 0069--------------------------------------------------><--bloco 0068--------------------------------------------------><--bloco 0067--------------------------------------------------><--bloco 0066--------------------------------------------------><--bloco 0065--------------------------------------------------><--bloco 0064--------------------------------------------------><--bloco 0063--------------------------------------------------><--bloco 0062--------------------------------------------------><--bloco 0061--------------------------------------------------><--bloco 0060--------------------------------------------------><--bloco 0059--------------------------------------------------><--bloco 0058--------------------------------------------------><--bloco 0057--------------------------------------------------><--bloco 0056--------------------------------------------------><--bloco 0055--------------------------------------------------><--bloco 0054--------------------------------------------------><--bloco 0053--------------------------------------------------><--bloco 0052--------------------------------------------------><--bloco 0051--------------------------------------------------><--bloco 0050--------------------------------------------------><--bloco 0049--------------------------------------------------><--bloco 0048--------------------------------------------------><--bloco 0047--------------------------------------------------><--bloco 0046--------------------------------------------------><--bloco 0045--------------------------------------------------><--bloco 0044--------------------------------------------------><--bloco 0043--------------------------------------------------><--bloco 0042--------------------------------------------------><--bloco 0041--------------------------------------------------><--bloco 0040--------------------------------------------------><--bloco 0039--------------------------------------------------><--bloco 0038--------------------------------------------------><--bloco 0037--------------------------------------------------><--bloco 0036--------------------------------------------------><--bloco 0035--------------------------------------------------><--bloco 0034--------------------------------------------------><--bloco 0033--------------------------------------------------><--bloco 0032--------------------------------------------------><--bloco 0031--------------------------------------------------><--bloco 0030--------------------------------------------------><--bloco 0029--------------------------------------------------><--bloco 0028--------------------------------------------------><--bloco 0027--------------------------------------------------><--bloco 0026--------------------------------------------------><--bloco 0025--------------------------------------------------><--bloco 0024--------------------------------------------------><--bloco 0023--------------------------------------------------><--bloco 0022--------------------------------------------------><--bloco 0021--------------------------------------------------><--bloco 0020--------------------------------------------------><--bloco 0019--------------------------------------------------><--bloco 0018--------------------------------------------------><--bloco 0017--------------------------------------------------><--bloco 0016--------------------------------------------------><--bloco 0015--------------------------------------------------><--bloco 0014--------------------------------------------------><--bloco 0013--------------------------------------------------><--bloco 0012--------------------------------------------------><--bloco 0011--------------------------------------------------><--bloco 0010--------------------------------------------------><--bloco 0009--------------------------------------------------><--bloco 0008--------------------------------------------------><--bloco 0007--------------------------------------------------><--bloco 0006--------------------------------------------------><--bloco 0005--------------------------------------------------><--bloco 0004--------------------------------------------------><--bloco 0003--------------------------------------------------><--bloco 0002--------------------------------------------------><--bloco 0001--------------------------------------------------><--bloco 0000--------------------------------------------------> +\ No newline at end of file diff --git a/hardware/disk.dat-inicial b/hardware/disk.dat-inicial @@ -0,0 +1 @@ +<--bloco 0000--------------------------------------------------><--bloco 0001--------------------------------------------------><--bloco 0002--------------------------------------------------><--bloco 0003--------------------------------------------------><--bloco 0004--------------------------------------------------><--bloco 0005--------------------------------------------------><--bloco 0006--------------------------------------------------><--bloco 0007--------------------------------------------------><--bloco 0008--------------------------------------------------><--bloco 0009--------------------------------------------------><--bloco 0010--------------------------------------------------><--bloco 0011--------------------------------------------------><--bloco 0012--------------------------------------------------><--bloco 0013--------------------------------------------------><--bloco 0014--------------------------------------------------><--bloco 0015--------------------------------------------------><--bloco 0016--------------------------------------------------><--bloco 0017--------------------------------------------------><--bloco 0018--------------------------------------------------><--bloco 0019--------------------------------------------------><--bloco 0020--------------------------------------------------><--bloco 0021--------------------------------------------------><--bloco 0022--------------------------------------------------><--bloco 0023--------------------------------------------------><--bloco 0024--------------------------------------------------><--bloco 0025--------------------------------------------------><--bloco 0026--------------------------------------------------><--bloco 0027--------------------------------------------------><--bloco 0028--------------------------------------------------><--bloco 0029--------------------------------------------------><--bloco 0030--------------------------------------------------><--bloco 0031--------------------------------------------------><--bloco 0032--------------------------------------------------><--bloco 0033--------------------------------------------------><--bloco 0034--------------------------------------------------><--bloco 0035--------------------------------------------------><--bloco 0036--------------------------------------------------><--bloco 0037--------------------------------------------------><--bloco 0038--------------------------------------------------><--bloco 0039--------------------------------------------------><--bloco 0040--------------------------------------------------><--bloco 0041--------------------------------------------------><--bloco 0042--------------------------------------------------><--bloco 0043--------------------------------------------------><--bloco 0044--------------------------------------------------><--bloco 0045--------------------------------------------------><--bloco 0046--------------------------------------------------><--bloco 0047--------------------------------------------------><--bloco 0048--------------------------------------------------><--bloco 0049--------------------------------------------------><--bloco 0050--------------------------------------------------><--bloco 0051--------------------------------------------------><--bloco 0052--------------------------------------------------><--bloco 0053--------------------------------------------------><--bloco 0054--------------------------------------------------><--bloco 0055--------------------------------------------------><--bloco 0056--------------------------------------------------><--bloco 0057--------------------------------------------------><--bloco 0058--------------------------------------------------><--bloco 0059--------------------------------------------------><--bloco 0060--------------------------------------------------><--bloco 0061--------------------------------------------------><--bloco 0062--------------------------------------------------><--bloco 0063--------------------------------------------------><--bloco 0064--------------------------------------------------><--bloco 0065--------------------------------------------------><--bloco 0066--------------------------------------------------><--bloco 0067--------------------------------------------------><--bloco 0068--------------------------------------------------><--bloco 0069--------------------------------------------------><--bloco 0070--------------------------------------------------><--bloco 0071--------------------------------------------------><--bloco 0072--------------------------------------------------><--bloco 0073--------------------------------------------------><--bloco 0074--------------------------------------------------><--bloco 0075--------------------------------------------------><--bloco 0076--------------------------------------------------><--bloco 0077--------------------------------------------------><--bloco 0078--------------------------------------------------><--bloco 0079--------------------------------------------------><--bloco 0080--------------------------------------------------><--bloco 0081--------------------------------------------------><--bloco 0082--------------------------------------------------><--bloco 0083--------------------------------------------------><--bloco 0084--------------------------------------------------><--bloco 0085--------------------------------------------------><--bloco 0086--------------------------------------------------><--bloco 0087--------------------------------------------------><--bloco 0088--------------------------------------------------><--bloco 0089--------------------------------------------------><--bloco 0090--------------------------------------------------><--bloco 0091--------------------------------------------------><--bloco 0092--------------------------------------------------><--bloco 0093--------------------------------------------------><--bloco 0094--------------------------------------------------><--bloco 0095--------------------------------------------------><--bloco 0096--------------------------------------------------><--bloco 0097--------------------------------------------------><--bloco 0098--------------------------------------------------><--bloco 0099--------------------------------------------------><--bloco 0100--------------------------------------------------><--bloco 0101--------------------------------------------------><--bloco 0102--------------------------------------------------><--bloco 0103--------------------------------------------------><--bloco 0104--------------------------------------------------><--bloco 0105--------------------------------------------------><--bloco 0106--------------------------------------------------><--bloco 0107--------------------------------------------------><--bloco 0108--------------------------------------------------><--bloco 0109--------------------------------------------------><--bloco 0110--------------------------------------------------><--bloco 0111--------------------------------------------------><--bloco 0112--------------------------------------------------><--bloco 0113--------------------------------------------------><--bloco 0114--------------------------------------------------><--bloco 0115--------------------------------------------------><--bloco 0116--------------------------------------------------><--bloco 0117--------------------------------------------------><--bloco 0118--------------------------------------------------><--bloco 0119--------------------------------------------------><--bloco 0120--------------------------------------------------><--bloco 0121--------------------------------------------------><--bloco 0122--------------------------------------------------><--bloco 0123--------------------------------------------------><--bloco 0124--------------------------------------------------><--bloco 0125--------------------------------------------------><--bloco 0126--------------------------------------------------><--bloco 0127--------------------------------------------------><--bloco 0128--------------------------------------------------><--bloco 0129--------------------------------------------------><--bloco 0130--------------------------------------------------><--bloco 0131--------------------------------------------------><--bloco 0132--------------------------------------------------><--bloco 0133--------------------------------------------------><--bloco 0134--------------------------------------------------><--bloco 0135--------------------------------------------------><--bloco 0136--------------------------------------------------><--bloco 0137--------------------------------------------------><--bloco 0138--------------------------------------------------><--bloco 0139--------------------------------------------------><--bloco 0140--------------------------------------------------><--bloco 0141--------------------------------------------------><--bloco 0142--------------------------------------------------><--bloco 0143--------------------------------------------------><--bloco 0144--------------------------------------------------><--bloco 0145--------------------------------------------------><--bloco 0146--------------------------------------------------><--bloco 0147--------------------------------------------------><--bloco 0148--------------------------------------------------><--bloco 0149--------------------------------------------------><--bloco 0150--------------------------------------------------><--bloco 0151--------------------------------------------------><--bloco 0152--------------------------------------------------><--bloco 0153--------------------------------------------------><--bloco 0154--------------------------------------------------><--bloco 0155--------------------------------------------------><--bloco 0156--------------------------------------------------><--bloco 0157--------------------------------------------------><--bloco 0158--------------------------------------------------><--bloco 0159--------------------------------------------------><--bloco 0160--------------------------------------------------><--bloco 0161--------------------------------------------------><--bloco 0162--------------------------------------------------><--bloco 0163--------------------------------------------------><--bloco 0164--------------------------------------------------><--bloco 0165--------------------------------------------------><--bloco 0166--------------------------------------------------><--bloco 0167--------------------------------------------------><--bloco 0168--------------------------------------------------><--bloco 0169--------------------------------------------------><--bloco 0170--------------------------------------------------><--bloco 0171--------------------------------------------------><--bloco 0172--------------------------------------------------><--bloco 0173--------------------------------------------------><--bloco 0174--------------------------------------------------><--bloco 0175--------------------------------------------------><--bloco 0176--------------------------------------------------><--bloco 0177--------------------------------------------------><--bloco 0178--------------------------------------------------><--bloco 0179--------------------------------------------------><--bloco 0180--------------------------------------------------><--bloco 0181--------------------------------------------------><--bloco 0182--------------------------------------------------><--bloco 0183--------------------------------------------------><--bloco 0184--------------------------------------------------><--bloco 0185--------------------------------------------------><--bloco 0186--------------------------------------------------><--bloco 0187--------------------------------------------------><--bloco 0188--------------------------------------------------><--bloco 0189--------------------------------------------------><--bloco 0190--------------------------------------------------><--bloco 0191--------------------------------------------------><--bloco 0192--------------------------------------------------><--bloco 0193--------------------------------------------------><--bloco 0194--------------------------------------------------><--bloco 0195--------------------------------------------------><--bloco 0196--------------------------------------------------><--bloco 0197--------------------------------------------------><--bloco 0198--------------------------------------------------><--bloco 0199--------------------------------------------------><--bloco 0200--------------------------------------------------><--bloco 0201--------------------------------------------------><--bloco 0202--------------------------------------------------><--bloco 0203--------------------------------------------------><--bloco 0204--------------------------------------------------><--bloco 0205--------------------------------------------------><--bloco 0206--------------------------------------------------><--bloco 0207--------------------------------------------------><--bloco 0208--------------------------------------------------><--bloco 0209--------------------------------------------------><--bloco 0210--------------------------------------------------><--bloco 0211--------------------------------------------------><--bloco 0212--------------------------------------------------><--bloco 0213--------------------------------------------------><--bloco 0214--------------------------------------------------><--bloco 0215--------------------------------------------------><--bloco 0216--------------------------------------------------><--bloco 0217--------------------------------------------------><--bloco 0218--------------------------------------------------><--bloco 0219--------------------------------------------------><--bloco 0220--------------------------------------------------><--bloco 0221--------------------------------------------------><--bloco 0222--------------------------------------------------><--bloco 0223--------------------------------------------------><--bloco 0224--------------------------------------------------><--bloco 0225--------------------------------------------------><--bloco 0226--------------------------------------------------><--bloco 0227--------------------------------------------------><--bloco 0228--------------------------------------------------><--bloco 0229--------------------------------------------------><--bloco 0230--------------------------------------------------><--bloco 0231--------------------------------------------------><--bloco 0232--------------------------------------------------><--bloco 0233--------------------------------------------------><--bloco 0234--------------------------------------------------><--bloco 0235--------------------------------------------------><--bloco 0236--------------------------------------------------><--bloco 0237--------------------------------------------------><--bloco 0238--------------------------------------------------><--bloco 0239--------------------------------------------------><--bloco 0240--------------------------------------------------><--bloco 0241--------------------------------------------------><--bloco 0242--------------------------------------------------><--bloco 0243--------------------------------------------------><--bloco 0244--------------------------------------------------><--bloco 0245--------------------------------------------------><--bloco 0246--------------------------------------------------><--bloco 0247--------------------------------------------------><--bloco 0248--------------------------------------------------><--bloco 0249--------------------------------------------------><--bloco 0250--------------------------------------------------><--bloco 0251--------------------------------------------------><--bloco 0252--------------------------------------------------><--bloco 0253--------------------------------------------------><--bloco 0254--------------------------------------------------><--bloco 0255--------------------------------------------------> +\ No newline at end of file diff --git a/hardware/disk.h b/hardware/disk.h @@ -0,0 +1,112 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Emulação do disco virtual, que simula um disco rígido. + +// Atenção: deve ser usado o flag de ligação -lrt, para ligar com a +// biblioteca POSIX de tempo real, pois o disco simulado usa timers POSIX. + +// verifica sistema operacional +#ifndef __linux__ +#error "Disk emulator library is designed specifically for Linux OS." +#endif + +#ifndef __HW_DISK__ +#define __HW_DISK__ + +// estados internos do disco +#define DISK_STATUS_UNKNOWN 0 // disco não iniciado +#define DISK_STATUS_IDLE 1 // disco livre +#define DISK_STATUS_READ 2 // disco ocupado fazendo leitura +#define DISK_STATUS_WRITE 3 // disco ocupado fazendo escrita + +// operações oferecidas pelo disco +#define DISK_CMD_INIT 0 // inicia o disco +#define DISK_CMD_READ 1 // leitura de bloco do disco +#define DISK_CMD_WRITE 2 // escrita de bloco do disco +#define DISK_CMD_STATUS 3 // consulta status do disco +#define DISK_CMD_DISKSIZE 4 // consulta tamanho do disco em blocos +#define DISK_CMD_BLOCKSIZE 5 // consulta tamanho de bloco em bytes +#define DISK_CMD_DELAYMIN 6 // consulta tempo resposta mínimo (ms) +#define DISK_CMD_DELAYMAX 7 // consulta tempo resposta máximo (ms) +#define DISK_CMD_COUNTREAD 8 // consulta contador de leituras +#define DISK_CMD_COUNTWRITE 9 // consulta contador de escritas + +// solicita uma operação ao disco virtual +int hw_disk(int cmd, int block, void *buffer); + +/* +Este código simula a operação e interface de um disco rígido de computador, +que permite a leitura e escrita sequencial de blocos de dados, usando a +interface descrita acima. O conteúdo do disco simulado é armazenado em um +arquivo no sistema operacional subjacente, sendo portanto preservado de +uma execução para outra. + +O disco opera sequencialmente (realiza somente uma operação por vez) e a +maioria das operações é síncrona, retornando o resultado ao concluir. +Todavia, as operações de leitura e escrita de blocos de dados são atendidas +de forma assíncrona, ou seja: o disco responde à solicitação imediatamente, +mas a operação de E/S em si demora um pouco mais; quando ela for completada, +o disco irá informar isso através de uma interrupção (IRQ). Essa interrupção +deve então ser tratada pelo driver de disco, para acordar a tarefa que +solicitou a operação de E/S. + +Enquanto o disco estiver ocupado em uma leitura/escrita, o status do disco +será DISK_STATUS_READ ou DISK_STATUS_WRITE; solicitações de leitura ou +escrita com o disco ocupado retornarão com erro. + +Exemplos de uso: + +inicia um disco (operação síncrona) +int disk_cmd(DISK_CMD_INIT, 0, char *disk_image); +disk_image: caminho do arquivo que contém a imagem do disco +result < 0: erro +result = 0: disco corretamente iniciado + +consulta status do disco (operação síncrona) +int disk_cmd(DISK_CMD_STATUS, 0, 0); +result = 0: erro (disco não iniciado ou inexistente) +result = DISK_STATUS_IDLE: disco livre +result = DISK_STATUS_READ: disco ocupado realizando leitura +result = DISK_STATUS_WRITE: disco ocupado realizando escrita + +consulta tamanho do disco (operação síncrona) +int disk_cmd(DISK_CMD_DISKSIZE, 0, 0); +result < 0: erro +result >= 0: tamanho do disco (em blocos) + +consulta tamanho de cada bloco (operação síncrona) +int disk_cmd(DISK_CMD_BLOCKSIZE, 0, 0); +result < 0: erro +result >= 0: tamanho de cada bloco (em bytes) + +consulta tempo de resposta mínimo (operação síncrona) +int disk_cmd(DISK_CMD_DELAYMIN, 0, 0); +result < 0: erro +result >= 0: tempo de resposta mínimo do disco (em ms) + +consulta tempo de resposta máximo (operação síncrona) +int disk_cmd(DISK_CMD_DELAYMAX, 0, 0); +result < 0: erro +result >= 0: tempo de resposta máximo do disco (em ms) + +agenda a leitura de um bloco de disco (operação assíncrona) +int disk_cmd(DISK_CMD_READ, int block, void *buffer); +block: número do bloco a ser lido +buffer: endereço do buffer para os dados lidos +result < 0: erro +result = 0: ok (leitura agendada, IRQ_DISK será gerada ao completar) + +agenda a escrita de um bloco de disco (operação assíncrona) +int disk_cmd(DISK_CMD_WRITE, int block, void *buffer); +block: número do bloco a ser escrito +buffer: endereço do buffer com os dados a escrever +result < 0: erro +result = 0: ok (escrita agendada, IRQ_DISK será gerada ao completar) +*/ + +#endif diff --git a/hardware/makefile b/hardware/makefile @@ -0,0 +1,30 @@ +# PingPongOS - PingPong Operating System +# © Prof. Carlos A. Maziero, DINF UFPR +# Versão 2.1 -- 06/2026 + +# ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +# ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +HDR = $(wildcard *.h) # headers +SRC = $(wildcard *.c) # fontes C +ASM = $(wildcard *.s) # fontes assembly +OBJ = $(patsubst %.c,%.o,$(SRC)) # objetos .o +OBJ+= $(patsubst %.s,%.o,$(ASM)) # idem + +# arquivo com a imagem do disco virtual +DISK = disk.dat + +# regra default: reconstruir tudo +all : $(OBJ) +$(OBJ): $(SRC) $(HDR) + +# testa o conteudo do disco +test: + @echo "Comparando imagens do disco:" + -@diff -qs $(DISK) $(DISK)-inicial || true + -@diff -qs $(DISK) $(DISK)-final || true + +# reinicia o conteúdo do disco +reset: + -cp -f $(DISK)-inicial $(DISK) + @echo "Conteúdo do disco reiniciado" diff --git a/hardware/serial.c b/hardware/serial.c @@ -0,0 +1,52 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Emulação de uma porta serial com operações de E/S de caracteres. + +/* +Esta é uma implementação trivial usando a syscall "write"; deve ser +substituída depois por uma emulação mais detalhada de uma UART +(Universal Asynchronous Receiver-Transmitter) ligada à linha serial. +*/ + +#include <unistd.h> +#include "serial.h" + +#define NOERROR 0 +#define ERROR -1 + +// static buffer for the "write" UNIX syscall +static char write_buf; + +//---------------------------------------------------------------------- + +int hw_putchar(char c) +{ + // este código pode gerar alguns erros "falso-positivos" no Valgrind, + // como mostra o exemplo abaixo: + // ==69319== Syscall param write(buf) points to uninitialised byte(s) + // ==69319== at 0x4903687: __internal_syscall_cancel (cancellation.c:64) + // ==69319== by 0x49036AC: __syscall_cancel (cancellation.c:75) + // ==69319== by 0x4978975: write (write.c:26) + + // usar a syscall write com um buffer estático, para evitar condições + // de disputa em buffers do userspace. + write_buf = c; + write(STDOUT_FILENO, &write_buf, 1); + + return(0); +} + +//---------------------------------------------------------------------- + +char hw_getchar() +{ + // ... a implementar + return (0); +} + +//---------------------------------------------------------------------- diff --git a/hardware/serial.h b/hardware/serial.h @@ -0,0 +1,21 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Emulação de uma interface serial com E/S de caracteres. + +#ifndef __HW_SERIAL__ +#define __HW_SERIAL__ + +// Envia um caractere à interface serial (bloqueante). +// Return: NOERROR ou ERROR. +int hw_putchar(char c); + +// Recebe um caractere da interface serial (não bloqueante). +// Return: caractere ASCII ou 0 se não há nada a ser lido. +char hw_getchar(); + +#endif diff --git a/kernel/block.c b/kernel/block.c @@ -0,0 +1,14 @@ +// PingPongOS - PingPong Operating System + +// Este arquivo PODE/DEVE ser alterado. + +// Gerência de um dispositivo orientado a blocos. + +void block_init(char *disk_image) +{ +} + +void block_term(char *disk_image) +{ +} + diff --git a/kernel/block.h b/kernel/block.h @@ -0,0 +1,33 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Gerência de um dispositivo orientado a blocos. + +#ifndef __PPOS_BLOCK__ +#define __PPOS_BLOCK__ + +// inicia o subsistema de gestão do disco virtual armazenado em "disk_image" +// (chamada pelo núcleo na inicialização). +void block_init(char *disk_image); + +// encerra o subsistema de gestão do disco virtual +// (chamada pelo núcleo no encerramento). +void block_term(char *disk_image); + +// retorna o tamanho de cada bloco do disco, em bytes +int block_size(); + +// retorna o tamanho do disco, em blocos +int block_blocks(); + +// leitura de um bloco, do disco para o buffer +int block_read(int block, void *buffer); + +// escrita de um bloco, do buffer para o disco +int block_write(int block, void *buffer); + +#endif diff --git a/kernel/ctx.h b/kernel/ctx.h @@ -0,0 +1,92 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 07/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +/* +Rotinas de manipulação de contextos no userspace, inspiradas de +https://github.com/kaniini/libucontext/blob/master/arch/x86_64 +https://graphitemaster.github.io/fibers/ + +Estas rotinas são específicas para CPUs x86_64 (Intel/AMD 64 bits) +no sistema operacional Linux. Não funcionam em outras plataformas +sem as devidas adaptações. + +To-do: +- aceitar stack == NULL para não alterar a pilha do contexto. +- salvar/restaurar registradores de ponto flutuante %xmm* +- SEGV se função do contexto encerrar sem ctx_switch (falta uc_link). +*/ + +#ifndef __CTX__ +#define __CTX__ + +// verificação de processador +#ifndef __x86_64__ +#error "This library is designed specifically for x86_64 processors." +#endif + +// verificação de sistema operacional +#ifndef __linux__ +#error "This library is designed specifically for Linux OS." +#endif + +// verificação de compilador (flags de otimização -O) +#ifdef __OPTIMIZE__ +#error "Optimizations (-O*) may interfere with the context switching" +#endif + +//---------------------------------------------------------------------- + +#include <stdint.h> + +#define ERROR -1 +#define NOERROR 0 + +/* +Este struct permite salvar um contexto, ou seja, um estado da CPU +definido pelos valores de seus principais registradores. +Ajuste os offsets dos registradores em ctx.s se alterar algo aqui. +Este struct deve ser alocado com alinhamento de 16 bytes. +*/ +struct ctx_t +{ + // instruction pointer + uint64_t rip; + + // stack pointer & base + uint64_t rsp, rbp; + + // registradores gerais + uint64_t rdi, rsi, rax, rbx, rcx, rdx; + uint64_t r8, r9, r10, r11, r12, r13, r14, r15; + + // endereço e tamanho da pilha associada a este contexto + void *stack; + unsigned long size; +} __attribute__((aligned(16))); + +//---------------------------------------------------------------------- + +/* +Define um contexto com uma função de entrada e uma pilha própria: + - entry: função a ser executada ao ativar este contexto; + - arg: argumento para a função "entry" quando ela iniciar; + - stack: endereço inicial (mais baixo) da pilha; deve ser + previamente alocado e alinhado em 16 bytes; + - size: tamanho da pilha, deve ter ao menos 4.096 bytes. +Retorno: 0 em sucesso, -1 em erro (vide ctx.s). +*/ +int ctx_create(struct ctx_t *ctx, void(entry)(void *), + void *arg, void *stack, uint64_t size); + +/* +Troca contextos: salva o estado atual da CPU em ctx1 (se não for +NULL) e carrega na CPU o estado salvo em ctx2 (se não for NULL). +Retorno: 0 em sucesso, -1 em erro (vide ctx.s). +*/ +int ctx_switch(struct ctx_t *ctx1, struct ctx_t *ctx2); + +#endif diff --git a/kernel/ctx.s b/kernel/ctx.s @@ -0,0 +1,212 @@ +# PingPongOS - PingPong Operating System +# © Prof. Carlos A. Maziero, DINF UFPR +# Versão 2.1 -- 06/2026 + +# ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +# ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +# Rotinas de manipulação de contextos no userspace, detalhes em ctx.h. +# Escrito em assembly com sintaxe AT&T (cmd source, dest) + +#----------------------------------------------------------------------- + +# register offsets in the ctx_t struct (defined in ctx.h) +.equ OFF_RIP, 8*0 # registers +.equ OFF_RSP, 8*1 +.equ OFF_RBP, 8*2 +.equ OFF_RDI, 8*3 +.equ OFF_RSI, 8*4 +.equ OFF_RAX, 8*5 +.equ OFF_RBX, 8*6 +.equ OFF_RCX, 8*7 +.equ OFF_RDX, 8*8 +.equ OFF_R8, 8*9 +.equ OFF_R9, 8*10 +.equ OFF_R10, 8*11 +.equ OFF_R11, 8*12 +.equ OFF_R12, 8*13 +.equ OFF_R13, 8*14 +.equ OFF_R14, 8*15 +.equ OFF_R15, 8*16 +.equ OFF_SSA, 8*17 # stack start address +.equ OFF_SSZ, 8*18 # stack size in bytes + +#----------------------------------------------------------------------- + +# saves the current context in ctx1 and transfers control to ctx2 +.type ctx_switch, @function +.global ctx_switch + +ctx_switch: + # Arguments: + # rdi: *ctx1 + # rsi: *ctx2 + + # if ctx1 == ctx2, goto error + cmp %rdi, %rsi + jz ctx_switch_error + + # if ctx1 == NULL, do not save current context + cmp $0, %rdi + jz ctx_switch_load_ctx2 + + # save CPU registers in ctx1 struct + mov %r8, OFF_R8(%rdi) # ctx->r8 = %r8 + mov %r9, OFF_R9(%rdi) # ... + mov %r10, OFF_R10(%rdi) + mov %r11, OFF_R11(%rdi) + mov %r12, OFF_R12(%rdi) + mov %r13, OFF_R13(%rdi) + mov %r14, OFF_R14(%rdi) + mov %r15, OFF_R15(%rdi) + mov %rax, OFF_RAX(%rdi) + mov %rbx, OFF_RBX(%rdi) + mov %rcx, OFF_RCX(%rdi) + mov %rdx, OFF_RDX(%rdi) + mov %rdi, OFF_RDI(%rdi) + mov %rsi, OFF_RSI(%rdi) + mov %rbp, OFF_RBP(%rdi) + + # Current stack state: + # : : + # : : + # +---------------------+ + # | caller stack bottom | <- stack pointer before calling ctx_switch + # +---------------------+ + # | ret addr (8 bytes) | <- stack pointer now (%rsp) + # +---------------------+ + + # save the return address in ctx1->rip + mov (%rsp), %rcx # %rcx = *(%rsp) + mov %rcx, OFF_RIP(%rdi) # *(%rdi + OFF_RIP) = %rcx + + # save the previous stack pointer in ctx1->rsp + lea 8(%rsp), %rcx # %rcx = *(%rsp + 8) + mov %rcx, OFF_RSP(%rdi) # *(%rdi + OFF_RSP) = %rcx + +ctx_switch_load_ctx2: + # if ctx2 == NULL, do not load ctx2 into the CPU + cmp $0, %rsi + jz ctx_switch_noerror + + # load CPU registers from ctx2 struct, except %rsi because + # its current value is being used + mov OFF_R8(%rsi), %r8 # %r8 = *(%rsi + OFF_R8) + mov OFF_R9(%rsi), %r9 # ... + mov OFF_R10(%rsi), %r10 + mov OFF_R11(%rsi), %r11 + mov OFF_R12(%rsi), %r12 + mov OFF_R13(%rsi), %r13 + mov OFF_R14(%rsi), %r14 + mov OFF_R15(%rsi), %r15 + mov OFF_RAX(%rsi), %rax + mov OFF_RBX(%rsi), %rbx + mov OFF_RCX(%rsi), %rcx + mov OFF_RDX(%rsi), %rdx + mov OFF_RDI(%rsi), %rdi + # mov OFF_RSI(%rsi), %rsi # do this later + mov OFF_RBP(%rsi), %rbp + mov OFF_RSP(%rsi), %rsp + + # load the saved RIP and push it in the stack; + # it will be the return address when calling ret below + push OFF_RIP(%rsi) + + # now we can load %rsi with value stored in ctx2->rsi + mov OFF_RSI(%rsi), %rsi + +ctx_switch_noerror: + # no errors, return 0 + xor %eax, %eax + ret + +ctx_switch_error: + # error, return -1 + movl $-1, %eax + ret + +#----------------------------------------------------------------------- + +# set entry point, arg, and stack for the context given as parameter +.type ctx_create, @function +.global ctx_create + +ctx_create: + # Arguments: + # %rdi: *ctx + # %rsi: *entry + # %rdx: *arg + # %rcx: *stack + # %r8 : size + + # if ctx == NULL, goto error + cmp $0, %rdi + jz ctx_create_error + + # if entry == NULL, goto error + cmp $0, %rsi + jz ctx_create_error + + # if stack == NULL, goto error + cmp $0, %rcx + jz ctx_create_error + + # if stack is not 16-byte aligned, goto error + # (last 4 bits of %rcx should be zero) + test $0x0F, %rcx # 0x0F = 00001111 + jnz ctx_create_error + + # if stack size < 4K, goto error + cmp $0x1000, %r8 # 0x1000 = 4096 + jl ctx_create_error + + # save current CPU registers in ctx struct + mov %r8, OFF_R8(%rdi) # ctx->r8 = %r8 + mov %r9, OFF_R9(%rdi) # ... + mov %r10, OFF_R10(%rdi) + mov %r11, OFF_R11(%rdi) + mov %r12, OFF_R12(%rdi) + mov %r13, OFF_R13(%rdi) + mov %r14, OFF_R14(%rdi) + mov %r15, OFF_R15(%rdi) + mov %rax, OFF_RAX(%rdi) + mov %rbx, OFF_RBX(%rdi) + mov %rcx, OFF_RCX(%rdi) + mov %rdx, OFF_RDX(%rdi) + mov %rdi, OFF_RDI(%rdi) + mov %rsi, OFF_RSI(%rdi) + mov %rbp, OFF_RBP(%rdi) + + # save context's stack address and size + mov %rcx, OFF_SSA(%rdi) # ctx->stack = stack + mov %r8, OFF_SSZ(%rdi) # ctx->size = size + + # set context's stack base and pointer; both should point to + # the top of the stack area provided and should be 16-byte + # aligned (stack + size - 16) + add %r8, %rcx # stack += size + sub $0x10, %rcx # stack -= 16 + mov %rcx, OFF_RBP(%rdi) # ctx->rbp = stack + mov %rcx, OFF_RSP(%rdi) # ctx->rsp = stack + + # ctx->rsp should be decremented by 8 to keep it 16-byte aligned + # when the ctx_switch function returns, because the ret instruction + # pops an 8-byte return address from the stack + subq $0x8, OFF_RSP(%rdi) # ctx->rsp -= 8 + + # set context's entry point (function) + mov %rsi, OFF_RIP(%rdi) # ctx->rip = entry + + # set entry point function argument + mov %rdx, OFF_RDI(%rdi) # ctx->rdi = arg + + # no errors, return 0 + xor %eax, %eax + ret + +ctx_create_error: + # errors, return -1 + movl $-1, %eax + ret + +#-----------------------------------------------------------------------s diff --git a/kernel/dispatcher.c b/kernel/dispatcher.c @@ -0,0 +1,18 @@ +// PingPongOS - PingPong Operating System + +// Este arquivo PODE/DEVE ser alterado. + +// Dispatcher: gerencia os estados das tarefas. + +void dispatcher_init() +{ +} + +void dispatcher_term() +{ +} + +void dispatcher() +{ +} + diff --git a/kernel/dispatcher.h b/kernel/dispatcher.h @@ -0,0 +1,45 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Implementa o dispatcher e operações internas sobre as tarefas. + +#ifndef __PPOS_DISPATCHER__ +#define __PPOS_DISPATCHER__ + +#include "lib/queue.h" +#include "tcb.h" + +// inicia o subsistema dispatcher +// (chamada pelo núcleo na inicialização). +void dispatcher_init(); + +// encerra o subsistema dispatcher +// (chamada pelo núcleo no encerramento). +void dispatcher_term(); + +// executa o dispatcher (chamada pelo núcleo após a inicialização). +void dispatcher(); + +// transfere a CPU da tarefa atual para outra tarefa; se task_id == 0, +// transfere para o núcleo. Ignora sem erro se "task" já tiver terminado. +// Retorno: NOERROR (0) ou ERROR (<0) +int task_switch(struct task_t *task); + +// executa a tarefa indicada: retira-a da fila de prontas, muda seu status +// para RODANDO e transfere a CPU para ela. +void task_run(struct task_t *task); + +// suspende a tarefa atual: retira-a da fila de prontas, muda seu status para +// SUSPENSA, a insere na fila "queue" (se não for NULL) e retorna ao dispatcher. +void task_suspend(struct queue_t *queue); + +// acorda uma tarefa: retira-a da fila onde se encontra suspensa (se estiver +// em uma fila), muda seu status para PRONTA e a insere na fila de prontas, +// para retomar (ou iniciar) sua execução. +void task_awake(struct task_t *task); + +#endif diff --git a/kernel/macros.h b/kernel/macros.h @@ -0,0 +1,85 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +#ifndef __MACROS__ +#define __MACROS__ + +// este código deve ser compilado em sistemas UNIX-like +#ifndef __linux__ +#error "Este codigo foi planejado para ambientes Linux." +#endif + +#include "hardware/cpu.h" +#include "lib/pplibc.h" + +// códigos de cor ANSI (terminal) +#define FONT_NORMAL "\x1B[0m" +#define FONT_BLACK "\x1B[30m" +#define FONT_RED "\x1B[31m" +#define FONT_GREEN "\x1B[32m" +#define FONT_YELLOW "\x1B[33m" +#define FONT_BLUE "\x1B[34m" +#define FONT_MAGENTA "\x1B[35m" +#define FONT_CYAN "\x1B[36m" +#define FONT_WHITE "\x1B[37m" +#define BACK_BLACK "\x1B[40m" +#define BACK_RED "\x1B[41m" +#define BACK_GREEN "\x1B[42m" +#define BACK_YELLOW "\x1B[43m" +#define BACK_BLUE "\x1B[44m" +#define BACK_MAGENTA "\x1B[45m" +#define BACK_CYAN "\x1B[46m" +#define BACK_WHITE "\x1B[47m" + +// Imprime mensagem de depuração se DEBUG estiver definido; +// Uso igual ao printk: ppos_debug(format, arg1, arg2, ...) +#ifdef DEBUG +#define ppos_debug(...) \ + do \ + { \ + printk(FONT_CYAN "DEBUG: "); \ + printk(__VA_ARGS__); \ + printk(FONT_NORMAL); \ + } while (0) +#else +#define ppos_debug(...) // não faz nada +#endif + +// Imprime mensagem de aviso, com arquivo e linha do código. +// Uso igual ao printk: ppos_warn(format, arg1, arg2, ...) +#define ppos_warn(...) \ + do \ + { \ + printk(BACK_YELLOW "WARN (%s:%d)" FONT_NORMAL ": ", \ + __FILE__, __LINE__); \ + printk(__VA_ARGS__); \ + } while (0) + +// Imprime mensagem de erro com arquivo e linha do código e encerra. +// Uso igual ao printk: ppos_panic(format, arg1, arg2, ...) +#define ppos_panic(...) \ + do \ + { \ + printk(BACK_RED "PANIC (%s:%d)" FONT_NORMAL ": ", \ + __FILE__, __LINE__); \ + printk(__VA_ARGS__); \ + hw_poweroff(1); \ + } while (0) + +// Testa parâmetros de funções, imprime mensagem e retorna erro. +// Uso: check_parm(value < 0, "invalid value", NULL); +#define check_parm(error_cond, error_msg, ret_val) \ + if (error_cond) \ + { \ + printk(BACK_YELLOW); \ + printk("Error in %s():", __func__); \ + printk(FONT_NORMAL); \ + printk(" %s\n", error_msg); \ + return ret_val; \ + } + +#endif diff --git a/kernel/makefile b/kernel/makefile @@ -0,0 +1,22 @@ +# PingPongOS - PingPong Operating System +# © Prof. Carlos A. Maziero, DINF UFPR +# Versão 2.1 -- 06/2026 + +# ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +# ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +# flags são importados do makefile superior + +# flags adicionais +CPPFLAGS += -I../ -I../lib/ + +# arquivos a compilar +HDR = $(wildcard *.h) # headers +SRC = $(wildcard *.c) # fontes C +ASM = $(wildcard *.s) # fontes assembly +OBJ = $(patsubst %.c,%.o,$(SRC)) # objetos .o +OBJ+= $(patsubst %.s,%.o,$(ASM)) # idem + +# regra default: reconstruir tudo +all : $(OBJ) +$(OBJ): $(SRC) $(HDR) diff --git a/kernel/memory.c b/kernel/memory.c @@ -0,0 +1,30 @@ +// PingPongOS - PingPong Operating System + +// Este arquivo PODE/DEVE ser alterado. + +// Alocador básico de memória heap. + +// somente para a implementação trivial +#include <stdlib.h> + +// implementação trivial, a ser substituída +void *mem_alloc(int size) +{ + return (malloc(size)); +} + +// implementação trivial, a ser substituída +int mem_free(void *addr) +{ + free(addr); + return (NOERROR); +} + +void mem_init() +{ +} + +void mem_term() +{ +} + diff --git a/kernel/memory.h b/kernel/memory.h @@ -0,0 +1,38 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Alocador básico de memória heap. + +#ifndef __PPOS_MEMORY__ +#define __PPOS_MEMORY__ + +// inicia o subsistema de memória RAM (heap) +// (chamada pelo núcleo na inicialização). +void mem_init(); + +// encerra o subsistema de memória RAM (heap) +// (chamada pelo núcleo no encerramento). +void mem_term(); + +// informa a quantidade de memória total, em bytes +int mem_size(); + +// informa a quantidade de memória disponível, em bytes +int mem_avail(); + +// aloca um bloco de memória com o tamanho indicado +// retorna ponteiro ou NULL se houver erro +void *mem_alloc(int size); + +// libera um bloco de memória previamente alocado +// retorna NOERROR se ok ou ERROR se ptr for NULL ou inválido +int mem_free(void *ptr); + +// gera um relatório sobre o uso da memória +void mem_report(); + +#endif diff --git a/kernel/mqueue.c b/kernel/mqueue.c @@ -0,0 +1,14 @@ +// PingPongOS - PingPong Operating System + +// Este arquivo PODE/DEVE ser alterado. + +// Gerência de filas de mensagens + +void mqueue_init() +{ +} + +void mqueue_term() +{ +} + diff --git a/kernel/mqueue.h b/kernel/mqueue.h @@ -0,0 +1,41 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Gerência de filas de mensagens + +#ifndef __PPOS_MQUEUE__ +#define __PPOS_MQUEUE__ + +// inicia o subsistema de filas de mensagens +// (chamada pelo núcleo na inicialização). +void mqueue_init(); + +// encerra o subsistema de filas de mensagens +// (chamada pelo núcleo no encerramento). +void mqueue_term(); + +// cria uma fila de mensagens. +// Retorno: descritor da nova fila ou ERROR +int mqueue_create(int max_msgs, int msg_size); + +// destrói uma fila de mensagens, liberando recursos e tarefas +// Retorno: NOERROR ou ERROR +int mqueue_destroy(int mqueue_id); + +// envia uma mensagem +// Retorno: NOERROR ou ERROR +int mqueue_send(int mqueue_id, void *msg); + +// recebe uma mensagem +// Retorno: NOERROR ou ERROR +int mqueue_recv(int mqueue_id, void *msg); + +// retorna o numero de mensagens em uma fila +// Retorno: número >= 0 ou ERROR +int mqueue_msgs(int mqueue_id); + +#endif diff --git a/kernel/ppos.c b/kernel/ppos.c @@ -0,0 +1,64 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Funções iniciais do PPOS + +#include "hardware/cpu.h" +#include "lib/pplibc.h" +#include "ppos.h" + +//---------------------------------------------------------------------- + +// Inicia o sistema operacional +static void ppos_init() +{ + printk("PPOS: system initializing\n"); + + // inicia os subsistemas + mem_init(); + task_init(); + dispatcher_init(); + sched_init(); + time_init(); + sem_init(); + mqueue_init(); + block_init("hardware/disk.dat"); + + printk("PPOS: system ready (uptime %u ms)\n", time()); +} + +//---------------------------------------------------------------------- + +// Encerra o sistema operacional +void ppos_term() +{ + printk("PPOS: system terminating\n", time()); + + // encerra os subsistemas (em ordem contrária ao ppos_init) + block_term("hardware/disk.dat"); + mqueue_term(); + sem_term(); + time_term(); + sched_term(); + dispatcher_term(); + task_term(); + mem_term(); + + printk("PPOS: system terminated (uptime %u ms)\n", time()); +} + +//---------------------------------------------------------------------- + +int main() +{ + ppos_init(); + dispatcher(); + ppos_term(); + hw_poweroff(0); +} + +//---------------------------------------------------------------------- diff --git a/kernel/ppos.h b/kernel/ppos.h @@ -0,0 +1,71 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Funções básicas/iniciais do PPOS + +#ifndef __PPOS__ +#define __PPOS__ + +// este código deve ser compilado em sistemas UNIX-like +#ifndef __linux__ +#error "Este codigo foi planejado para ambientes Linux." +#endif + +// módulos do sistema operacional +#include "macros.h" +#include "tcb.h" +#include "task.h" +#include "dispatcher.h" +#include "scheduler.h" +#include "time.h" +#include "memory.h" +#include "semaphore.h" +#include "mqueue.h" +#include "block.h" + +// algumas funções que não devem ser usadas +#define printf DONT_USE_THIS_FUNCTION +#define fprintf DONT_USE_THIS_FUNCTION +#define fputc DONT_USE_THIS_FUNCTION +#define putc DONT_USE_THIS_FUNCTION +#define putchar DONT_USE_THIS_FUNCTION +#define fputs DONT_USE_THIS_FUNCTION +#define puts DONT_USE_THIS_FUNCTION +#define putwchar DONT_USE_THIS_FUNCTION +#define fputwc DONT_USE_THIS_FUNCTION +#define fputws DONT_USE_THIS_FUNCTION +#define fwrite DONT_USE_THIS_FUNCTION +#define pwrite DONT_USE_THIS_FUNCTION +#define writev DONT_USE_THIS_FUNCTION +#define write DONT_USE_THIS_FUNCTION +#define scanf DONT_USE_THIS_FUNCTION +#define fscanf DONT_USE_THIS_FUNCTION +#define fgetc DONT_USE_THIS_FUNCTION +#define getc DONT_USE_THIS_FUNCTION +#define getchar DONT_USE_THIS_FUNCTION +#define fgets DONT_USE_THIS_FUNCTION +#define vscanf DONT_USE_THIS_FUNCTION +#define vfscanf DONT_USE_THIS_FUNCTION +#define fread DONT_USE_THIS_FUNCTION +#define pread DONT_USE_THIS_FUNCTION +#define readv DONT_USE_THIS_FUNCTION +#define read DONT_USE_THIS_FUNCTION +#define signal DONT_USE_THIS_FUNCTION +#define sigaction DONT_USE_THIS_FUNCTION +#define sigprocmask DONT_USE_THIS_FUNCTION +#define sigsuspend DONT_USE_THIS_FUNCTION +#define sigevent DONT_USE_THIS_FUNCTION +#define raise DONT_USE_THIS_FUNCTION +#define siginterrupt DONT_USE_THIS_FUNCTION +#define timer_create DONT_USE_THIS_FUNCTION +#define timer_settime DONT_USE_THIS_FUNCTION +#define clock_gettime DONT_USE_THIS_FUNCTION +#define setitimer DONT_USE_THIS_FUNCTION +#define timer_delete DONT_USE_THIS_FUNCTION +#define timerfd_create DONT_USE_THIS_FUNCTION + +#endif diff --git a/kernel/scheduler.c b/kernel/scheduler.c @@ -0,0 +1,14 @@ +// PingPongOS - PingPong Operating System + +// Este arquivo PODE/DEVE ser alterado. + +// Escalonador de tarefas prontas. + +void sched_init() +{ +} + +void sched_term() +{ +} + diff --git a/kernel/scheduler.h b/kernel/scheduler.h @@ -0,0 +1,32 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Escalonador de tarefas prontas. + +#ifndef __PPOS_SCHEDULER__ +#define __PPOS_SCHEDULER__ + +#include "lib/queue.h" + +// inicia o subsistema do escalonador de tarefas +// (chamada pelo núcleo na inicialização). +void sched_init(); + +// encerra o subsistema do escalonador de tarefas +// (chamada pelo núcleo no encerramento). +void sched_term(); + +// função escalonador: devolve a próxima tarefa a escalonar na fila +struct task_t *scheduler(struct queue_t *ready_queue); + +// muda a prioridade de uma tarefa (da tarefa atual se task == NULL) +void sched_setprio(struct task_t *task, int prio); + +// obtém a prioridade de uma tarefa (da tarefa atual se task == NULL) +int sched_getprio(struct task_t *task); + +#endif diff --git a/kernel/semaphore.c b/kernel/semaphore.c @@ -0,0 +1,14 @@ +// PingPongOS - PingPong Operating System + +// Este arquivo PODE/DEVE ser alterado. + +// Semáforos e spinlocks + +void sem_init() +{ +} + +void sem_term() +{ +} + diff --git a/kernel/semaphore.h b/kernel/semaphore.h @@ -0,0 +1,43 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Semáforos e spinlocks + +#ifndef __PPOS_SEMAPHORE__ +#define __PPOS_SEMAPHORE__ + +// inicia o subsistema de semáforos +// (chamada pelo núcleo na inicialização). +void sem_init(); + +// encerra o subsistema de semáforos +// (chamada pelo núcleo no encerramento). +void sem_term(); + +// trava um spin-lock (busy wait) +void spin_lock(int *lock); + +// libera um spin-lock +void spin_unlock(int *lock); + +// Cria um novo semáforo, inicializado com value >= 0. +// Retorno: descritor do semáforo ou -1 (erro). +int sem_create(int value); + +// destrói um semáforo, liberando recursos e tarefas bloqueadas +// Retorno: NOERROR (0) ou ERROR (<0) +int sem_destroy(int sem_id); + +// Requisita acesso a um semáforo +// Retorno: NOERROR (0) ou ERROR (<0) +int sem_down(int sem_id); + +// libera o acesso a um semáforo +// Retorno: NOERROR (0) ou ERROR (<0) +int sem_up(int sem_id); + +#endif diff --git a/kernel/syscall.h b/kernel/syscall.h @@ -0,0 +1,62 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Chamadas oferecidas pelo PPOS às aplicações; mais tarde isto +// deve ser transformado em syscalls ativadas por traps simulados. + +#ifndef __PPOS_SYSCALLS__ +#define __PPOS_SYSCALLS__ + +#include "tcb.h" + +// tarefas (task.*) +struct task_t *task_create(char *name, void (*entry)(void *), void *arg); +int task_destroy(struct task_t *task); +int task_id(struct task_t *task); +char *task_name(struct task_t *task); +void task_yield(); +int task_wait(struct task_t *task); +void task_sleep(int t); +void task_exit(int exit_code); + +// só para P1 (achar uma solução mais elegante) +int task_switch(struct task_t *task); + +// escalonamento (scheduler.*) +void sched_setprio(struct task_t *task, int prio); +int sched_getprio(struct task_t *task); + +// tempo (time.*) +unsigned int time(); + +// semáforos (semaphore.*) +int sem_create(int value); +int sem_destroy(int sem_id); +int sem_down(int sem_id); +int sem_up(int sem_id); + +// filas de mensagens (mqueue.*) +int mqueue_create(int max_msgs, int msg_size); +int mqueue_destroy(int mqueue_id); +int mqueue_send(int mqueue_id, void *msg); +int mqueue_recv(int mqueue_id, void *msg); +int mqueue_msgs(int mqueue_id); + +// gestão de memeória heap (memory.*) +void *mem_alloc(int size); +int mem_free(void *ptr); +int mem_size(); +int mem_avail(); +void mem_report(); + +// acesso ao disco (block.*) +int block_size(); +int block_blocks(); +int block_read(int block, void *buffer); +int block_write(int block, void *buffer); + +#endif diff --git a/kernel/task.c b/kernel/task.c @@ -0,0 +1,14 @@ +// PingPongOS - PingPong Operating System + +// Este arquivo PODE/DEVE ser alterado. + +// Gerência básica de tarefas. + +void task_init() +{ +} + +void task_term() +{ +} + diff --git a/kernel/task.h b/kernel/task.h @@ -0,0 +1,56 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Gerência de tarefas. + +#ifndef __PPOS_TASK__ +#define __PPOS_TASK__ + +#include "tcb.h" + +// inicializa o subsistema de tarefas. +// (chamada pelo núcleo na inicialização). +void task_init(); + +// encerra o subsistema de tarefas. +// (chamada pelo núcleo no encerramento). +void task_term(); + +// cria uma nova tarefa: "name" é o nome da tarefa, "entry" é a função que +// ela irá executar e "arg" aponta para o valor recebido por "entry" ao +// iniciar (pode ser NULL). +// Retorno: ptr para a tarefa ou NULL se houver erro. +struct task_t * task_create(char *name, void (*entry)(void *), void *arg); + +// destrói uma tarefa e libera seus recursos; somente deve atuar sobre tarefas +// terminadas. Retorno: NOERROR (0) ou ERROR (<0). +int task_destroy(struct task_t *task); + +// informa o ID de uma tarefa (ou da tarefa atual se task == NULL) +int task_id(struct task_t *task); + +// informa o nome de uma tarefa (ou da tarefa atual se task == NULL) +char *task_name(struct task_t *task); + +// a tarefa atual libera a CPU e volta para a fila de prontas; a execução +// retorna ao núcleo/dispatcher. +void task_yield(); + +// suspende a tarefa atual até que a tarefa task termine; a execução retorna +// ao núcleo/dispatcher. Se a tarefa task já terminou, retorna sem suspender. +// Retorno: exit code tarefa que terminou ou ERROR. +int task_wait(struct task_t *task); + +// suspende a tarefa atual por t milissegundos; a execução retorna ao +// núcleo/dispatcher. +void task_sleep(int t); + +// encerra a execução da tarefa atual, informando um código de encerramento +// (exit_code); a execução retorna ao núcleo/dispatcher. +void task_exit(int exit_code); + +#endif diff --git a/kernel/tcb.h b/kernel/tcb.h @@ -0,0 +1,22 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// Este arquivo PODE/DEVE ser alterado. + +// Descritor de tarefas (TCB - Task Control Block). + +#ifndef __PPOS_TCB__ +#define __PPOS_TCB__ + +// Task Control Block (TCB), infos sobre uma tarefa +struct task_t +{ + int id; // identificador da tarefa + char *name; // nome da tarefa + ctx_t context; // contexto da tarefa + int status; // pronta, executando, ... + ... // demais informações, a completar +}; + +#endif diff --git a/kernel/time.c b/kernel/time.c @@ -0,0 +1,19 @@ +// PingPongOS - PingPong Operating System + +// Este arquivo PODE/DEVE ser alterado. + +// Gerência básica do tempo. + +void time_init() +{ +} + +void time_term() +{ +} + +unsigned int time() +{ + return (0); +} + diff --git a/kernel/time.h b/kernel/time.h @@ -0,0 +1,27 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Gerência básica do tempo. + +#ifndef __PPOS_TIME__ +#define __PPOS_TIME__ + +#define TICK 1 // duração do tick em milissegundos +#define QUANTUM 10 // duracao default do quantum em ticks + +// inicia o subsistema de gestão do tempo +// (chamada pelo núcleo na inicialização). +void time_init(); + +// encerra o subsistema de gestão do tempo +// (chamada pelo núcleo no encerramento). +void time_term(); + +// informa o valor atual do relógio (milissegundos) +unsigned int time(); + +#endif diff --git a/leia-me.txt b/leia-me.txt @@ -0,0 +1,49 @@ +Ping-Pong Operating Systema - PPOS +Versão 2.1, Julho de 2026 + +Este diretório contém o código-fonte do Sistema Operacional Ping-Pong, ou PPOS, um projeto que visa construir um sistema operacional didático ("toy operating system"). + +Ao contrário de projetos similares, o PPOS executa inteiramente dentro de um processo do Linux. A maior vantagem em executar um SO dentro de um processo em modo usuário é a possibilidade de usar ferramentas padrão de depuração, como o Valgrind e o GDB no modo default, o que reduz a curva de aprendizado do aluno. + +O PPOS tem uma estrutura típica de um RTOS (Real-Time Operating System), um sistema operacional com espaço de memória único, no qual o núcleo e as aplicações são compilados juntos, formando uma única imagem binária. + +As seguintes funcionalidades são suportadas pelo PPOS: + +- tarefas com troca de contexto +- escalonador FCFS e por prioridades +- preempção por tempo (quantum) +- gestão do tempo e contabilização +- sincronização de tarefas +- semáforos genéricos +- filas de mensagens +- alocador de memória heap +- driver de disco +- escalonador de E/S + +Estas funcionalidades estão sendo desenvolvidas: + +- cache de blocos para o driver de disco +- sistema de arquivos (inodes, diretórios, nomes) +- driver de interface de rede + +Estas funcionalidades NÃO SÃO suportadas pelo PPOS: + +- memória virtual +- separação userspace/kernelspace +- chamadas de sistema usando traps + +O desenvolvimento do PPOS está organizado em projetos incrementais, que visam implementar cada uma das funcionalidades do sistema. Geralmente, cada projeto depende de funcionalidades desenvolvidas em projetos anteriores. Os detalhes de cada projeto estão descritos com maior detalhe na página web do docente: http://wiki.inf.ufpr.br/maziero. + +Este diretório tem a seguinte estrutura: + +hardware/: hardware virtual (emuladores) +lib/ : bibliotecas de apoio +kernel/ : código-fonte do PPOS, a ser desenvolvido pelo aluno +test/ : programas de teste dos projetos +makefile : para compilar o sistema + +Alguns arquivos (sobretudo os headers, os arquivos no diretório hardware, a mini-biblioteca C e os makefiles) estão prontos e não devem ser alterados (essa restrição está claramente indicada no início de cada arquivo). Esses arquivos serão sobrescritos pelos originais durante a avaliação de cada projeto. + +Os demais arquivos devem ser escritos pelo aluno, para implementar as funcionalidades solicitadas em cada projeto. + +Prof. Carlos A. Maziero, DINF UFPR diff --git a/lib/makefile b/lib/makefile @@ -0,0 +1,22 @@ +# PingPongOS - PingPong Operating System +# © Prof. Carlos A. Maziero, DINF UFPR +# Versão 2.1 -- 06/2026 + +# ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +# ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +# flags são importados do makefile superior + +# flags adicionais +CPPFLAGS += -I../ -I../kernel + +# arquivos a compilar +HDR = $(wildcard *.h) # headers +SRC = $(wildcard *.c) # fontes C +ASM = $(wildcard *.s) # fontes assembly +OBJ = $(patsubst %.c,%.o,$(SRC)) # objetos .o +OBJ+= $(patsubst %.s,%.o,$(ASM)) # idem + +# regra default: reconstruir tudo +all : $(OBJ) +$(OBJ): $(SRC) $(HDR) diff --git a/lib/map.c b/lib/map.c @@ -0,0 +1,8 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// Este arquivo PODE/DEVE ser alterado. + +// Implementação do TAD Mapa de objetos + diff --git a/lib/map.h b/lib/map.h @@ -0,0 +1,61 @@ +// PingPongOS - PingPong Operating System +// Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 07/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +/* +TAD mapa de objetos, que registra objetos de tipo "void *". Um mapa de tamanho +SIZE registra cada objeto sob um identificador único (ID), que varia entre 0 +e SIZE-1 de forma crescente (0, 1, 2, ...). Ao registrar um objeto deve ser +usado o próximo ID livre, com comportamento circular caso não existam mais +IDs livres no final do mapa. +*/ + +#ifndef __MAP__ +#define __MAP__ + +#define ERROR -1 +#define NOERROR 0 + +// Struct opaco que representa um mapa de objetos. +struct map_t; + +// Cria um mapa para até N objetos, com IDs entre 0 e N-1. +// Retorno: ponteiro para o mapa ou NULL (erro) +struct map_t *map_create(int size); + +// destrói um mapa existente (mas não destrói os objetos). +// Retorno: 0 em sucesso ou -1 (erro) +int map_destroy(struct map_t *map); + +// Registra um objeto no mapa, retornando seu ID. +// Retorno: ID atribuído ao objeto ou -1 (erro). +int map_put(struct map_t *map, void *object); + +// Informa o objeto registrado no ID indicado do mapa. +// Retorno: ponteiro para o objeto ou NULL (erro) +void *map_get(struct map_t *map, int id); + +// Libera um ID do mapa e devolve o objeto associado. +// Retorno: ponteiro para o objeto ou NULL (erro) +void *map_del(struct map_t *map, int id); + +// Informa o número de objetos registrados no mapa. +// Retorno: número de objetos registrados ou -1 (erro) +int map_items(struct map_t *map); + +// Informa o número de objetos que o mapa pode registrar. +// Retorno: número de objetos ou -1 (erro) +int map_size(struct map_t *map); + +// Imprime o conteúdo do mapa, no seguinte formato: +// Mapa nulo: nome: undef +// Mapa vazio: nome: [ - - - - - ] (0/5) +// Mapa qualquer: nome: [ - * - * * ] (3/5) +// As posições "*" no vetor impresso correspondem aos IDs em uso no mapa; +// (3/5) indica que o mapa tem 3 objetos e pode registrar até 5 objetos. +void map_print(char *name, struct map_t *map); + +#endif diff --git a/lib/pplibc.c b/lib/pplibc.c @@ -0,0 +1,357 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Implementação simplificada de algumas funções básicas da biblioteca C, +// que devem ser definidas aqui para nos liberar da GLibC. + +#define __PPOS__ + +#ifdef __PPOS__ +#include "hardware/cpu.h" +#include "hardware/serial.h" +#define PUTCHAR hw_putchar +#define IRQ_ENABLE hw_irq_enable +#else +#include <stdio.h> +#define PUTCHAR putchar +#define IRQ_ENABLE(x) +#endif + +#include <stdbool.h> +#include "pplibc.h" + +// macros do compilador para funções variádicas (usadas no printk) +#define va_list __builtin_va_list +#define va_start __builtin_va_start +#define va_end __builtin_va_end +#define va_arg __builtin_va_arg + +// estado interno do gerador de números pseudoaleatórios +// https://en.wikipedia.org/wiki/Linear_congruential_generator +static unsigned int rand_number = 0; + +//---------------------------------------------------------------------- + +void randseed(unsigned long seed) +{ + rand_number = seed; +} + +//---------------------------------------------------------------------- + +unsigned long randnum(void) +{ + // gerador pseudo-aleatorio simples por congruência linear + rand_number = (1664525L * rand_number + 1013904223L) % (1L << 31); + return (rand_number); +} + +//---------------------------------------------------------------------- + +int abs(int num) +{ + if (num < 0) + return (-num); + else + return (num); +} + +//---------------------------------------------------------------------- + +int mem_copy(const char *orig, char *dest, int size) +{ + if (!orig || !dest || size <= 0) + return (ERROR); + + for (int i = 0; i < size; i++) + dest[i] = orig[i]; + + return (NOERROR); +} + +//---------------------------------------------------------------------- + +void putch(char c) +{ + PUTCHAR(c); // macro +} + +//---------------------------------------------------------------------- + +void putst(const char *s) +{ + if (!s) + s = "NULL"; + + while (*s) + { + PUTCHAR(*s); // macro + s++; + } +} + +//---------------------------------------------------------------------- + +// adaptado de https://operating-system-in-1000-lines.vercel.app/en/ +void printk(const char *fmt, ...) +{ + bool left_align; + //bool fill_zeros = false; + //bool signal_space = false; + short width; + va_list vargs; + + // inibe "interrupções" do hardware + IRQ_ENABLE(0); + + va_start(vargs, fmt); + + while (*fmt) + { + // find a % mark, process it + if (*fmt == '%') + { + // skip '%' + fmt++; + + // space for signal (% ) + /*if (*fmt == ' ') + { + signal_space = true; + fmt++; + }*/ + + // left alignment (%-) + left_align = false; + if (*fmt == '-') + { + left_align = true; + fmt++; + } + + // fill with zeros (%0) + /*if (*fmt == '0') + { + fill_zeros = true; + fmt++; + }*/ + + // width modifier (%NN) + width = 0; + while (*fmt && *fmt >= '1' && *fmt <= '9') + { + width = 10 * width + (*fmt - '0'); + fmt++; + } + + switch (*fmt) + { + + // "%%" or '%' at the end of the format string + case '%': + case '\0': + putch('%'); + break; + + // %c: char + case 'c': + { + int c = va_arg(vargs, int); + putch(c); + break; + } + + // %s: string + case 's': + { + const char *s = va_arg(vargs, const char *); + char *aux; + + // null string + if (!s) + s = "(null)"; + + // decrement width according to string size + aux = (char *) s; + while (*aux) + { + width--; + aux++; + } + + // print whitespaces before + if (!left_align) + while (width > 0) + { + putch(' '); + width--; + } + + // print string chars + while (*s) + { + putch(*s); + s++; + } + + // print whitespaces after + if (left_align) + while (width > 0) + { + putch(' '); + width--; + } + + break; + } + + // %d %i: signed integer, printed in decimal + case 'i': + case 'd': + { + bool negative; + int divisor; + int value = va_arg(vargs, int); + + width--; + + // treat negative number + negative = false; + if (value < 0) + { + value = -value; + negative = true; + width--; + } + + // calculate number of digits to print + divisor = 1; + while (value / divisor > 9) + { + divisor *= 10; + width--; + } + + // print whitespaces before + if (!left_align) + while (width > 0) + { + putch(' '); + width--; + } + + // print number signal + if (negative) + putch('-'); + + // print number digits + while (divisor > 0) + { + putch('0' + value / divisor); + value %= divisor; + divisor /= 10; + } + + // print whitespaces after + if (left_align) + while (width > 0) + { + putch(' '); + width--; + } + + break; + } + + // %u: unsigned integer, printed in decimal + case 'u': + { + int divisor; + unsigned int value = va_arg(vargs, unsigned int); + + width--; + + // calculate number of digits to print + divisor = 1; + while (value / divisor > 9) + { + divisor *= 10; + width--; + } + + // print whitespaces before + if (!left_align) + while (width > 0) + { + putch(' '); + width--; + } + + // print number digits + while (divisor > 0) + { + putch('0' + value / divisor); + value %= divisor; + divisor /= 10; + } + + // print whitespaces after + if (left_align) + while (width > 0) + { + putch(' '); + width--; + } + + break; + } + + // %p: long, printed in hexadecimal + case 'p': + { + unsigned nibble; + unsigned long value = va_arg(vargs, unsigned long); + + if (value) + { + putst("0x"); + for (int i = 15; i >= 0; i--) + { + nibble = (value >> (i * 4)) & 0xf; + putch("0123456789abcdef"[nibble]); + } + } + else + putst("(nil)"); + + break; + } + + // %? unrecognized + default: + { + putst("%?"); + } + } + } + // not a placeholder, just print it + else + { + putch(*fmt); + } + + // take the next char in format + if (*fmt) + fmt++; + } + va_end(vargs); + + // libera "interrupções" do hardware + IRQ_ENABLE(1); +} + +//---------------------------------------------------------------------- diff --git a/lib/pplibc.h b/lib/pplibc.h @@ -0,0 +1,59 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Implementação simplificada de algumas funções básicas da biblioteca C, +// que devem ser definidas aqui para nos liberar da GLibC. + +#ifndef __PPLIBC__ +#define __PPLIBC__ + +// códigos de retorno das funções +#ifndef ERROR +#define ERROR -1 +#define NOERROR 0 +#endif + +// ponteiro nulo +#ifndef NULL +#define NULL ((void *)0) +#endif + +// Substitui o printf da LibC onde este arquivo for incluído. +//#define printf printk + +// Copia "size" bytes da área de memória apontada por "orig" +// para a área apontada por "dest". +// Retorno: NOERROR ou ERROR. +int mem_copy(const char *orig, char *dest, int size); + +// Envia um caractere para o console. +void putch(const char c); + +// Envia uma string para o console. +void putst(const char *s); + +// Imprime uma mensagem no console, de forma similar a printk. +// Suporta os formatos %d %i %u %c %s %p %% +// e os modificadores %NN (tamanho) e %- (alinhamento). +void printk(const char *fmt, ...); + +// retorna o número sem sinal +int abs(int num); + +// define a semente do gerador de aleatórios +void randseed(unsigned long seed); + +// gera um inteiro aleatório entre 0 e MAX_INT +unsigned long randnum(void); + +// Encerra o programa normalmente, com o exit code informado. +//void exit(int exit_code); + +// Encerra o programa com erro +//void abort(); + +#endif diff --git a/lib/queue.c b/lib/queue.c @@ -0,0 +1,143 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// Este arquivo PODE/DEVE ser alterado. + +// Implementação do TAD fila genérica + +#include "queue.h" + +#include <stdlib.h> + +typedef struct node_t { + node_t* next; + void* item; +} node_t; + +typedef struct { + node_t* head; + node_t* tail; + node_t* it; +} queue_t; + +queue_t* queue_create() +{ + return (queue_t*) calloc(1, sizeof(*queue)); +} + +int queue_destroy(queue_t* queue) +{ + if (queue == NULL) + return ERROR; + + node_t* node = queue->head; + while (node != NULL) { + node_t* n = node; + node = node->next; + free(n); + } + + free(queue); + + return NOERROR; +} + +int queue_add(queue_t* queue, void* item) +{ + if (queue == NULL) + return ERROR; + + node_t* new = malloc(sizeof(*new)); + new->item = item; + new->next = NULL; + + if (queue->tail == NULL) { + queue->tail = new; + queue->head = new; + queue->it = new; + } else { + queue->tail->next = new; + } + + return NOERROR; +} + +int queue_del(queue_t* queue, void* item) +{ + node_t** prev = &queue->head; + node_t* node = queue->head; + while (node != NULL) { + if (node->item == item) { + *prev = node->next; + free(node); + return NOERROR; + } + prev = &node->next; + node = node->next; + } + + return ERROR; +} + +bool queue_has(queue_t* queue, void* item) +{ + for (node_t* node = queue->head; node != NULL; node = node->next) { + if (node->item == item) + return true; + } + return false; +} + +int queue_size(queue_t* queue) +{ + int n = 0; + for (node_t* node = queue->head; node != NULL; node = node->next) + n += 1; + return n; +} + +void* queue_head(queue_t* queue) +{ + return queue->head; +} + +void* queue_next(queue_t* queue) +{ + if (queue->it == NULL) + return NULL; + + void* item = queue->it->item; + + queue->it = queue->it->next; + if (queue->it == NULL) + queue->it = queue->head; + + return item; +} + +void* queue_item(queue_t* queue) +{ + if (queue->it == NULL) + return NULL; + return queue->it->item; +} + +void queue_print(char* name, queue_t* queue, void(func)(void*)) +{ + printf("%s: ", name); + if (queue == NULL) { + printf("undef\n"); + return; + } + printf("[ "); + + int i = 0; + for (node_t* node = queue->head; node != NULL; node = node->next) { + i += 1; + func(node->item); + printf(" "); + } + + printf("] (%d ite%s)\n", i, i == 1 ? "em" : "ns"); +} diff --git a/lib/queue.h b/lib/queue.h @@ -0,0 +1,94 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +/* +TAD fila genérica de ponteiros, que armazena itens de tipo "void *". +A fila mantém um iterador que aponta para um item da fila (ou para NULL). +O iterador pode ser ajustado usando as funções queue_head() e queue_next() +e ter seu item consultado com a função queue_item(). Inicialmente o iterador +aponta para o começo da fila. +*/ + +#ifndef __QUEUE__ +#define __QUEUE__ + +#include <stdbool.h> + +// códigos de retorno das funções +#ifndef ERROR +#define ERROR -1 +#define NOERROR 0 +#endif + +// ponteiro nulo +#ifndef NULL +#define NULL ((void *)0) +#endif + +// struct que representa uma fila; este é um struct "opaco", +// que deve ser redefinido completamente em queue.c +struct queue_t; + +// Cria uma fila inicialmente vazia. +// Retorno: ponteiro p/ a nova fila +// NULL se houver erro +struct queue_t *queue_create(); + +// Destroi uma fila, liberando a memória alocada por ela. +// IMPORTANTE: os itens apontados pela fila NÃO devem ser liberados, +// pois a aplicação que os criou e pôs na fila é responsável por eles. +// Retorno: NOERROR ou ERROR (se a fila não existir) +int queue_destroy(struct queue_t *queue); + +// Adiciona um item no fim da fila; ajusta o iterador para ele +// se for o primeiro item (ou seja, se a fila estiver vazia). +// Retorno: NOERROR ou ERROR (se fila ou item não existir) +int queue_add(struct queue_t *queue, void *item); + +// Retira da fila o item com o valor indicado; se o item estiver +// em mais de uma posição da fila, retira apenas da primeira posição +// encontrada; se o item estiver apontado pelo iterador, este avança +// para o próximo item da fila (ou para NULL, se for o último). +// Retorno: NOERROR ou ERROR (não encontrou ou outro erro). +int queue_del(struct queue_t *queue, void *item); + +// Informa se o item indicado está na fila. +// Retorno: true/false (error: false). +bool queue_has(struct queue_t *queue, void *item); + +// Informa o número de itens na fila. +// Retorno: número de itens na fila (>= 0) +// ERROR se a fila não existir +int queue_size(struct queue_t *queue); + +// Põe o iterador no início da fila. +// Retorno: ptr para o item apontado pelo iterador +// NULL se a fila estiver vazia ou não existir +void *queue_head(struct queue_t *queue); + +// Avança o iterador ao próximo item na fila. +// Retorno: ptr para o item apontado pelo iterador após avançar +// NULL se o iterador passou do último item da fila +// NULL se a fila estiver vazia ou não existir +void *queue_next(struct queue_t *queue); + +// Informa o item atualmente sob o iterador na fila. +// Retorno: ptr para o item apontado pelo iterador +// NULL se a fila estiver vazia ou não existir +// NULL se o iterador passou do fim da fila +void *queue_item(struct queue_t *queue); + +// Imprime os elementos de uma fila; a função externa "func" +// deve ser chamada para imprimir cada item. +// Exemplos de saída, com name == "Frutas": +// Frutas: [ banana pera ameixa uva ] (4 items) +// Frutas: [ ] (0 items) +// Frutas: undef se queue == NULL +// Frutas: [ undef undef undef ] (3 items) se func == NULL +void queue_print(char *name, struct queue_t *queue, void(func)(void *)); + +#endif diff --git a/makefile b/makefile @@ -0,0 +1,102 @@ +# PingPongOS - PingPong Operating System +# © Prof. Carlos A. Maziero, DINF UFPR +# Versão 2.1 -- 06/2026 + +# ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +# ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +# flags de compilação e ligação +CC = gcc +CPPFLAGS = +CFLAGS = -std=c99 -Wall -Wextra -O0 -g3 -Wno-unused-parameter +LDFLAGS = -z noexecstack +LDLIBS = -lrt -lm +export CC CPPFLAGS CFLAGS LDFLAGS LDLIBS + +# arquivo .tgz para envio +TGZ = ppos-${USER}.tgz + +# estes alvos não são arquivos +.PHONY: all help debug clean purge hardware lib kernel reset + +# regra default +help: + @echo "Makefile para compilação do PPOS" + @echo "Uso:" + @echo " make p1 : compila o projeto p1 (idem para p2, ...)" + @echo " make debug p1 : idem, com o flag -DDEBUG" + @echo " make clean : remove objetos e backups" + @echo " make purge : remove objetos, backups e executáveis" + @echo " make tgz : gera um arquivo .tgz para entrega" + @echo " make reset : reinicia o conteúdo do disco simulado" + +# programas de teste de cada projeto +P1 = pingpong-task1 pingpong-task2 pingpong-task3 +P2 = pingpong-dispatcher +P3 = pingpong-scheduler +P4 = pingpong-preempcao +P5 = pingpong-contab pingpong-contab-prio pingpong-contab-stress +P6 = pingpong-wait pingpong-wait-stress +P7 = pingpong-sleep +P8 = pingpong-semaphore pingpong-semaphore-stress +P9 = pingpong-prodcons +P10 = pingpong-mqueue +P11 = pingpong-memoria pingpong-mqueue +P12 = pingpong-disco pingpong-disco-stress +P13 = pingpong-disco-stress +P14 = pingpong-cache-on pingpong-cache-off + +BIN = $(P1) $(P2) $(P3) $(P4) $(P5) $(P6) $(P7) $(P8) \ + $(P9) $(P10) $(P11) $(P12) $(P13) $(P14) + +# alvos: testes de cada projeto; como criar uma receita genérica aqui? +p1: $(P1) +p2: $(P2) +p3: $(P3) +p4: $(P4) +p5: $(P5) +p6: $(P6) +p7: $(P7) +p8: $(P8) +p9: $(P9) +p10: $(P10) +p11: $(P11) +p12: $(P12) +p13: $(P13) +p14: $(P14) + +# compila e liga um programa de teste ping* +ping%: hardware kernel lib + @echo "=== Compilando $@ ===" + $(MAKE) -C test $@ + @echo "=== Ligando $@ ===" + $(eval OBJS = $(wildcard hardware/*.o kernel/*.o lib/*.o)) + $(CC) $(LDFLAGS) $(OBJS) test/$@.o -o $@ $(LDLIBS) + +# compila o hardware virtual, bibliotecas e kernel +hardware kernel lib: + @echo "=== Compilando $@ ===" + -test -s $@/makefile && $(MAKE) -C $@ + +# ativa modo de depuração +debug: + $(eval CPPFLAGS += -DDEBUG) + +# limpa arquivos temporários +clean: + -rm -f *.o *~ */*.o */*~ + +# reinicia o conteúdo do disco virtual +reset: + -test -s hardware/makefile && $(MAKE) -C hardware reset + +# limpa tudo, deixa só o o código-fonte +purge: clean + -rm -f $(BIN) $(TGZ) + +# gera arquivo .tgz para entrega +tgz: purge + -rm -f $(TGZ) + -tar --ignore-failed-read -czvf $(TGZ) lib/ kernel/ test/$(P9).c + @echo "" + @echo "Arquivo $(TGZ) pronto para entrega" diff --git a/test/makefile b/test/makefile @@ -0,0 +1,13 @@ +# PingPongOS - PingPong Operating System +# © Prof. Carlos A. Maziero, DINF UFPR +# Versão 2.1 -- 06/2026 + +# ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +# ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +# flags adicionais +CPPFLAGS += -I../ -I../kernel/ -I../lib/ + +# compila arquivo de teste +ping%: + $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@.o $@.c diff --git a/test/pingpong-contab-prio.c b/test/pingpong-contab-prio.c @@ -0,0 +1,71 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Teste da contabilização com tarefas de prioridades distintas + +#include <assert.h> +#include "lib/pplibc.h" +#include "syscall.h" + +#define WORKLOAD 40000 + +struct task_t *pang, *peng, *ping, *pong, *pung; + +// simula um processamento pesado +int hardwork(int n) +{ + int soma = 0; + + for (int i = 0; i < n; i++) + for (int j = 0; j < n; j++) + soma += j; + return (soma); +} + +// corpo das tarefas +void body(void *arg) +{ + printk("%5u ms: %s inicia (prio: %d)\n", time(), + (char *)arg, sched_getprio(0)); + hardwork(WORKLOAD); + printk("%5u ms: %s termina\n", time(), (char *)arg); + task_exit(NOERROR); +} + +// corpo da tarefa principal +void user_main(void *arg) +{ + int id; + char *name; + + name = task_name(NULL); + id = task_id(NULL); + printk("%5u ms: %s (id %d): inicio\n", time(), name, id); + + // cria tarefas + pang = task_create("pang", body, "\tPang"); + assert(pang); + peng = task_create("peng", body, "\t\tPeng"); + assert(peng); + ping = task_create("ping", body, "\t\t\tPing"); + assert(ping); + pong = task_create("pong", body, "\t\t\t\tPong"); + assert(pong); + pung = task_create("pung", body, "\t\t\t\t\tPung"); + assert(pung); + + // ajusta prioridades + sched_setprio(pang, 0); + sched_setprio(peng, -2); + sched_setprio(ping, -4); + sched_setprio(pong, -6); + sched_setprio(pung, -8); + + printk("%5u ms: %s fim\n", time(), name); + + task_exit(NOERROR); +} diff --git a/test/pingpong-contab-prio.txt b/test/pingpong-contab-prio.txt @@ -0,0 +1,23 @@ +PPOS: system initializing +PPOS: system ready (uptime 0 ms) + 0 ms: user_main (id 1): inicio + 0 ms: user_main fim +PPOS: task 1 (user_main), 0 ms run, 0 ms cpu, 1 acts, exit code 0 + 0 ms: Pung inicia (prio: -8) + 20 ms: Pong inicia (prio: -6) + 40 ms: Ping inicia (prio: -4) + 70 ms: Peng inicia (prio: -2) + 90 ms: Pang inicia (prio: 0) + 7116 ms: Pung termina +PPOS: task 6 (pung), 7116 ms run, 2786 ms cpu, 279 acts, exit code 0 + 9773 ms: Pong termina +PPOS: task 5 (pong), 9773 ms run, 2797 ms cpu, 280 acts, exit code 0 +11524 ms: Ping termina +PPOS: task 4 (ping), 11524 ms run, 2791 ms cpu, 280 acts, exit code 0 +13143 ms: Peng termina +PPOS: task 3 (peng), 13143 ms run, 2789 ms cpu, 279 acts, exit code 0 +13955 ms: Pang termina +PPOS: task 2 (pang), 13955 ms run, 2792 ms cpu, 280 acts, exit code 0 +PPOS: task 0 (kernel), 13955 ms run, 0 ms cpu, 1400 acts, exit code 0 +PPOS: system terminating +PPOS: system terminated (uptime 13955 ms) diff --git a/test/pingpong-contab-stress.c b/test/pingpong-contab-stress.c @@ -0,0 +1,59 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Teste da contabilização com muitas tarefas (stress) + +#include <assert.h> +#include "lib/pplibc.h" +#include "syscall.h" + +#define WORKLOAD 5000 +#define NUMTASKS 512 + +struct task_t *task[NUMTASKS]; + +// simula um processamento pesado +int hardwork(int n) +{ + int soma = 0; + + for (int i = 0; i < n; i++) + for (int j = 0; j < n; j++) + soma += j; + return (soma); +} + +// corpo das tarefas +void body() +{ + for (int i = 0; i < 3; i++) + hardwork(WORKLOAD); + task_exit(NOERROR); +} + +// corpo da tarefa principal +void user_main(void *arg) +{ + int id; + char *name; + + name = task_name(NULL); + id = task_id(NULL); + printk("%5u ms: %s (id %d): inicio\n", time(), name, id); + + // cria tarefas + printk("Creating %d tasks\n", NUMTASKS); + for (int i = 0; i < NUMTASKS; i++) + { + task[i] = task_create(NULL, body, NULL); + assert(task[i]); + } + + printk("%5u ms: %s fim\n", time(), name); + + task_exit(NOERROR); +} diff --git a/test/pingpong-contab.c b/test/pingpong-contab.c @@ -0,0 +1,63 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Teste da contabilização com tarefas de prioridades iguais + +#include <assert.h> +#include "lib/pplibc.h" +#include "syscall.h" + +#define WORKLOAD 40000 + +struct task_t *pang, *peng, *ping, *pong, *pung; + +// simula um processamento pesado +int hardwork(int n) +{ + int soma = 0; + + for (int i = 0; i < n; i++) + for (int j = 0; j < n; j++) + soma += j; + return (soma); +} + +// corpo das tarefas +void body(void *arg) +{ + printk("%5u ms: %s inicia\n", time(), (char *)arg); + hardwork(WORKLOAD); + printk("%5u ms: %s termina\n", time(), (char *)arg); + task_exit(NOERROR); +} + +// corpo da tarefa principal +void user_main(void *arg) +{ + int id; + char *name; + + name = task_name(NULL); + id = task_id(NULL); + printk("%5u ms: %s (id %d): inicio\n", time(), name, id); + + // cria tarefas + pang = task_create("pang", body, "\tPang"); + assert(pang); + peng = task_create("peng", body, "\t\tPeng"); + assert(peng); + ping = task_create("ping", body, "\t\t\tPing"); + assert(ping); + pong = task_create("pong", body, "\t\t\t\tPong"); + assert(pong); + pung = task_create("pung", body, "\t\t\t\t\tPung"); + assert(pung); + + printk("%5u ms: %s fim\n", time(), name); + + task_exit(NOERROR); +} diff --git a/test/pingpong-contab.txt b/test/pingpong-contab.txt @@ -0,0 +1,23 @@ +PPOS: system initializing +PPOS: system ready (uptime 0 ms) + 0 ms: user_main (id 1): inicio + 0 ms: user_main fim +PPOS: task 1 (user_main), 0 ms run, 0 ms cpu, 1 acts, exit code 0 + 0 ms: Pang inicia + 10 ms: Peng inicia + 20 ms: Ping inicia + 30 ms: Pong inicia + 40 ms: Pung inicia +13801 ms: Pang termina +PPOS: task 2 (pang), 13801 ms run, 2761 ms cpu, 277 acts, exit code 0 +13846 ms: Peng termina +PPOS: task 3 (peng), 13846 ms run, 2775 ms cpu, 278 acts, exit code 0 +13853 ms: Ping termina +PPOS: task 4 (ping), 13853 ms run, 2777 ms cpu, 278 acts, exit code 0 +13868 ms: Pung termina +PPOS: task 6 (pung), 13868 ms run, 2775 ms cpu, 278 acts, exit code 0 +13876 ms: Pong termina +PPOS: task 5 (pong), 13876 ms run, 2787 ms cpu, 279 acts, exit code 0 +PPOS: task 0 (kernel), 13876 ms run, 1 ms cpu, 1392 acts, exit code 0 +PPOS: system terminating +PPOS: system terminated (uptime 13876 ms) diff --git a/test/pingpong-disco-stress.c b/test/pingpong-disco-stress.c @@ -0,0 +1,151 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Teste das operações de acesso a disco com múltiplas tarefas +// fazendo operações de leitura e escrita simultâneas. + +#include <assert.h> +#include "lib/pplibc.h" +#include "syscall.h" + +#define NUMTASKS 8 + +// tarefas +struct task_t *mover[NUMTASKS]; // tarefas movedoras de blocos +static int num_blk; // numero de blocos no disco +static int blk_size; // tamanho de cada bloco (bytes) + +// lê um bloco do disco +void le_bloco(int task, int block, char *buffer) +{ + int status; + + printk("%5u ms: T%-2d lendo bloco %3d\n", time(), task, block); + status = block_read(block, buffer); + if (status == 0) + printk("%5u ms: T%-2d leu bloco %3d\n", time(), task, block); + else + printk("%5u ms: T%-2d erro ao ler bloco %3d\n", time(), task, block); +} + +// escreve um bloco no disco +void escreve_bloco(int task, int block, char *buffer) +{ + int status; + + printk("%5u ms: T%-2d escrevendo bloco %3d\n", time(), task, block); + status = block_write(block, buffer); + if (status == 0) + printk("%5u ms: T%-2d escreveu bloco %3d\n", time(), task, block); + else + printk("%5u ms: T%-2d erro ao escrever bloco %3d\n", + time(), task, block); +} + +// mostra o conteudo do bloco +void mostra_bloco(int task, int block, char *buffer) +{ + printk("%5u ms: T%-2d bloco %3d tem: [", time(), task, block); + for (int j = 0; j < blk_size; j++) + printk("%c", buffer[j]); + printk("]\n"); +} + +// corpo das tarefas "mover" +void body(void *arg) +{ + int my_id, blk_orig, blk_dest; + int tid, blk_per_task; + char *buf1, *buf2; + + tid = task_id(NULL); + blk_per_task = (num_blk / NUMTASKS / 2); + + // aloca espaço para os buffers + buf1 = mem_alloc(blk_size); + assert(buf1); + buf2 = mem_alloc(blk_size); + assert(buf2); + + // define os blocos iniciais + my_id = (long)arg; + blk_orig = my_id * blk_per_task; + blk_dest = num_blk - 1 - (my_id * blk_per_task); + + printk("%5u ms: T%-2d movendo %2d blocos entre blocos %3d e %3d\n", + time(), tid, blk_per_task, blk_orig, blk_dest); + + // move blk_per_task blocos + for (int i = 0; i < blk_per_task; i++) + { + // lê dois blocos do disco + le_bloco(tid, blk_orig, buf1); + le_bloco(tid, blk_dest, buf2); + + // mostra o conteudo dos blocos + mostra_bloco(tid, blk_orig, buf1); + mostra_bloco(tid, blk_dest, buf2); + + // escreve os blocos trocados no disco + escreve_bloco(tid, blk_dest, buf1); + escreve_bloco(tid, blk_orig, buf2); + + // define os próximos blocos + blk_orig++; + blk_dest--; + } + printk("%5u ms: T%-2d terminou\n", time(), tid); + + mem_free(buf1); + mem_free(buf2); + task_exit(NOERROR); +} + +// corpo da tarefa principal +void user_main(void *arg) +{ + int status, id; + char *name; + + name = task_name(NULL); + id = task_id(NULL); + printk("%5u ms: %s (id %d): inicio\n", time(), name, id); + + // busca geometria do disco + num_blk = block_blocks(); + assert(num_blk); + blk_size = block_size(); + assert(blk_size); + + printk("%5u ms: disco contem %d blocos de %d bytes cada\n", + time(), num_blk, blk_size); + + // cria as tarefas + for (long i = 0; i < NUMTASKS; i++) + { + mover[i] = task_create(NULL, body, (void *)i); + assert(mover[i]); + } + + // aguarda as tarefas encerrarem + for (int i = 0; i < NUMTASKS; i++) + { + status = task_wait(mover[i]); + assert(status == NOERROR); + } + + // destrói as tarefas + for (int i = 0; i < NUMTASKS; i++) + { + status = task_destroy(mover[i]); + assert(status == NOERROR); + } + + printk("%5u ms: %s fim\n", time(), name); + + task_exit(NOERROR); +} diff --git a/test/pingpong-disco-stress.txt b/test/pingpong-disco-stress.txt @@ -0,0 +1,1315 @@ +PPOS: system initializing +PPOS: disk driver ready (disk has 256 blocks of 64 bytes each) +PPOS: system ready (uptime 0 ms) + 0 ms: user_main (id 1): inicio + 0 ms: disco contem 256 blocos de 64 bytes cada + 0 ms: T3 movendo 16 blocos entre blocos 0 e 255 + 0 ms: T3 lendo bloco 0 + 0 ms: T4 movendo 16 blocos entre blocos 16 e 239 + 0 ms: T4 lendo bloco 16 + 0 ms: T5 movendo 16 blocos entre blocos 32 e 223 + 0 ms: T5 lendo bloco 32 + 0 ms: T6 movendo 16 blocos entre blocos 48 e 207 + 0 ms: T6 lendo bloco 48 + 0 ms: T7 movendo 16 blocos entre blocos 64 e 191 + 0 ms: T7 lendo bloco 64 + 0 ms: T8 movendo 16 blocos entre blocos 80 e 175 + 0 ms: T8 lendo bloco 80 + 0 ms: T9 movendo 16 blocos entre blocos 96 e 159 + 0 ms: T9 lendo bloco 96 + 0 ms: T10 movendo 16 blocos entre blocos 112 e 143 + 0 ms: T10 lendo bloco 112 + 37 ms: T3 leu bloco 0 + 37 ms: T3 lendo bloco 255 + 85 ms: T4 leu bloco 16 + 85 ms: T4 lendo bloco 239 + 151 ms: T5 leu bloco 32 + 151 ms: T5 lendo bloco 223 + 199 ms: T6 leu bloco 48 + 199 ms: T6 lendo bloco 207 + 265 ms: T7 leu bloco 64 + 265 ms: T7 lendo bloco 191 + 313 ms: T8 leu bloco 80 + 313 ms: T8 lendo bloco 175 + 363 ms: T9 leu bloco 96 + 363 ms: T9 lendo bloco 159 + 411 ms: T10 leu bloco 112 + 411 ms: T10 lendo bloco 143 + 615 ms: T3 leu bloco 255 + 615 ms: T3 bloco 0 tem: [<--bloco 0000-------------------------------------------------->] + 615 ms: T3 bloco 255 tem: [<--bloco 0255-------------------------------------------------->] + 615 ms: T3 escrevendo bloco 255 + 670 ms: T4 leu bloco 239 + 670 ms: T4 bloco 16 tem: [<--bloco 0016-------------------------------------------------->] + 670 ms: T4 bloco 239 tem: [<--bloco 0239-------------------------------------------------->] + 670 ms: T4 escrevendo bloco 239 + 737 ms: T5 leu bloco 223 + 737 ms: T5 bloco 32 tem: [<--bloco 0032-------------------------------------------------->] + 737 ms: T5 bloco 223 tem: [<--bloco 0223-------------------------------------------------->] + 737 ms: T5 escrevendo bloco 223 + 807 ms: T6 leu bloco 207 + 807 ms: T6 bloco 48 tem: [<--bloco 0048-------------------------------------------------->] + 807 ms: T6 bloco 207 tem: [<--bloco 0207-------------------------------------------------->] + 807 ms: T6 escrevendo bloco 207 + 867 ms: T7 leu bloco 191 + 867 ms: T7 bloco 64 tem: [<--bloco 0064-------------------------------------------------->] + 868 ms: T7 bloco 191 tem: [<--bloco 0191-------------------------------------------------->] + 868 ms: T7 escrevendo bloco 191 + 930 ms: T8 leu bloco 175 + 930 ms: T8 bloco 80 tem: [<--bloco 0080-------------------------------------------------->] + 930 ms: T8 bloco 175 tem: [<--bloco 0175-------------------------------------------------->] + 930 ms: T8 escrevendo bloco 175 + 987 ms: T9 leu bloco 159 + 987 ms: T9 bloco 96 tem: [<--bloco 0096-------------------------------------------------->] + 987 ms: T9 bloco 159 tem: [<--bloco 0159-------------------------------------------------->] + 987 ms: T9 escrevendo bloco 159 + 1049 ms: T10 leu bloco 143 + 1049 ms: T10 bloco 112 tem: [<--bloco 0112-------------------------------------------------->] + 1049 ms: T10 bloco 143 tem: [<--bloco 0143-------------------------------------------------->] + 1049 ms: T10 escrevendo bloco 143 + 1204 ms: T3 escreveu bloco 255 + 1205 ms: T3 escrevendo bloco 0 + 1273 ms: T4 escreveu bloco 239 + 1273 ms: T4 escrevendo bloco 16 + 1325 ms: T5 escreveu bloco 223 + 1325 ms: T5 escrevendo bloco 32 + 1394 ms: T6 escreveu bloco 207 + 1394 ms: T6 escrevendo bloco 48 + 1466 ms: T7 escreveu bloco 191 + 1466 ms: T7 escrevendo bloco 64 + 1531 ms: T8 escreveu bloco 175 + 1531 ms: T8 escrevendo bloco 80 + 1604 ms: T9 escreveu bloco 159 + 1604 ms: T9 escrevendo bloco 96 + 1675 ms: T10 escreveu bloco 143 + 1676 ms: T10 escrevendo bloco 112 + 1872 ms: T3 escreveu bloco 0 + 1872 ms: T3 lendo bloco 1 + 1936 ms: T4 escreveu bloco 16 + 1936 ms: T4 lendo bloco 17 + 2007 ms: T5 escreveu bloco 32 + 2007 ms: T5 lendo bloco 33 + 2064 ms: T6 escreveu bloco 48 + 2064 ms: T6 lendo bloco 49 + 2114 ms: T7 escreveu bloco 64 + 2114 ms: T7 lendo bloco 65 + 2175 ms: T8 escreveu bloco 80 + 2175 ms: T8 lendo bloco 81 + 2227 ms: T9 escreveu bloco 96 + 2228 ms: T9 lendo bloco 97 + 2282 ms: T10 escreveu bloco 112 + 2282 ms: T10 lendo bloco 113 + 2446 ms: T3 leu bloco 1 + 2446 ms: T3 lendo bloco 254 + 2514 ms: T4 leu bloco 17 + 2514 ms: T4 lendo bloco 238 + 2565 ms: T5 leu bloco 33 + 2565 ms: T5 lendo bloco 222 + 2616 ms: T6 leu bloco 49 + 2616 ms: T6 lendo bloco 206 + 2687 ms: T7 leu bloco 65 + 2687 ms: T7 lendo bloco 190 + 2743 ms: T8 leu bloco 81 + 2743 ms: T8 lendo bloco 174 + 2792 ms: T9 leu bloco 97 + 2792 ms: T9 lendo bloco 158 + 2862 ms: T10 leu bloco 113 + 2862 ms: T10 lendo bloco 142 + 3055 ms: T3 leu bloco 254 + 3055 ms: T3 bloco 1 tem: [<--bloco 0001-------------------------------------------------->] + 3055 ms: T3 bloco 254 tem: [<--bloco 0254-------------------------------------------------->] + 3055 ms: T3 escrevendo bloco 254 + 3125 ms: T4 leu bloco 238 + 3125 ms: T4 bloco 17 tem: [<--bloco 0017-------------------------------------------------->] + 3125 ms: T4 bloco 238 tem: [<--bloco 0238-------------------------------------------------->] + 3125 ms: T4 escrevendo bloco 238 + 3188 ms: T5 leu bloco 222 + 3188 ms: T5 bloco 33 tem: [<--bloco 0033-------------------------------------------------->] + 3188 ms: T5 bloco 222 tem: [<--bloco 0222-------------------------------------------------->] + 3189 ms: T5 escrevendo bloco 222 + 3237 ms: T6 leu bloco 206 + 3237 ms: T6 bloco 49 tem: [<--bloco 0049-------------------------------------------------->] + 3237 ms: T6 bloco 206 tem: [<--bloco 0206-------------------------------------------------->] + 3237 ms: T6 escrevendo bloco 206 + 3293 ms: T7 leu bloco 190 + 3293 ms: T7 bloco 65 tem: [<--bloco 0065-------------------------------------------------->] + 3293 ms: T7 bloco 190 tem: [<--bloco 0190-------------------------------------------------->] + 3293 ms: T7 escrevendo bloco 190 + 3363 ms: T8 leu bloco 174 + 3363 ms: T8 bloco 81 tem: [<--bloco 0081-------------------------------------------------->] + 3363 ms: T8 bloco 174 tem: [<--bloco 0174-------------------------------------------------->] + 3363 ms: T8 escrevendo bloco 174 + 3424 ms: T9 leu bloco 158 + 3424 ms: T9 bloco 97 tem: [<--bloco 0097-------------------------------------------------->] + 3424 ms: T9 bloco 158 tem: [<--bloco 0158-------------------------------------------------->] + 3424 ms: T9 escrevendo bloco 158 + 3486 ms: T10 leu bloco 142 + 3486 ms: T10 bloco 113 tem: [<--bloco 0113-------------------------------------------------->] + 3486 ms: T10 bloco 142 tem: [<--bloco 0142-------------------------------------------------->] + 3486 ms: T10 escrevendo bloco 142 + 3650 ms: T3 escreveu bloco 254 + 3650 ms: T3 escrevendo bloco 1 + 3718 ms: T4 escreveu bloco 238 + 3718 ms: T4 escrevendo bloco 17 + 3773 ms: T5 escreveu bloco 222 + 3773 ms: T5 escrevendo bloco 33 + 3834 ms: T6 escreveu bloco 206 + 3834 ms: T6 escrevendo bloco 49 + 3890 ms: T7 escreveu bloco 190 + 3890 ms: T7 escrevendo bloco 65 + 3945 ms: T8 escreveu bloco 174 + 3945 ms: T8 escrevendo bloco 81 + 4003 ms: T9 escreveu bloco 158 + 4003 ms: T9 escrevendo bloco 97 + 4075 ms: T10 escreveu bloco 142 + 4075 ms: T10 escrevendo bloco 113 + 4275 ms: T3 escreveu bloco 1 + 4275 ms: T3 lendo bloco 2 + 4327 ms: T4 escreveu bloco 17 + 4327 ms: T4 lendo bloco 18 + 4381 ms: T5 escreveu bloco 33 + 4381 ms: T5 lendo bloco 34 + 4449 ms: T6 escreveu bloco 49 + 4449 ms: T6 lendo bloco 50 + 4516 ms: T7 escreveu bloco 65 + 4516 ms: T7 lendo bloco 66 + 4577 ms: T8 escreveu bloco 81 + 4577 ms: T8 lendo bloco 82 + 4625 ms: T9 escreveu bloco 97 + 4625 ms: T9 lendo bloco 98 + 4680 ms: T10 escreveu bloco 113 + 4680 ms: T10 lendo bloco 114 + 4832 ms: T3 leu bloco 2 + 4832 ms: T3 lendo bloco 253 + 4881 ms: T4 leu bloco 18 + 4881 ms: T4 lendo bloco 237 + 4938 ms: T5 leu bloco 34 + 4938 ms: T5 lendo bloco 221 + 4987 ms: T6 leu bloco 50 + 4987 ms: T6 lendo bloco 205 + 5043 ms: T7 leu bloco 66 + 5043 ms: T7 lendo bloco 189 + 5102 ms: T8 leu bloco 82 + 5102 ms: T8 lendo bloco 173 + 5171 ms: T9 leu bloco 98 + 5171 ms: T9 lendo bloco 157 + 5239 ms: T10 leu bloco 114 + 5239 ms: T10 lendo bloco 141 + 5422 ms: T3 leu bloco 253 + 5422 ms: T3 bloco 2 tem: [<--bloco 0002-------------------------------------------------->] + 5422 ms: T3 bloco 253 tem: [<--bloco 0253-------------------------------------------------->] + 5422 ms: T3 escrevendo bloco 253 + 5482 ms: T4 leu bloco 237 + 5482 ms: T4 bloco 18 tem: [<--bloco 0018-------------------------------------------------->] + 5482 ms: T4 bloco 237 tem: [<--bloco 0237-------------------------------------------------->] + 5482 ms: T4 escrevendo bloco 237 + 5553 ms: T5 leu bloco 221 + 5553 ms: T5 bloco 34 tem: [<--bloco 0034-------------------------------------------------->] + 5553 ms: T5 bloco 221 tem: [<--bloco 0221-------------------------------------------------->] + 5553 ms: T5 escrevendo bloco 221 + 5616 ms: T6 leu bloco 205 + 5616 ms: T6 bloco 50 tem: [<--bloco 0050-------------------------------------------------->] + 5616 ms: T6 bloco 205 tem: [<--bloco 0205-------------------------------------------------->] + 5616 ms: T6 escrevendo bloco 205 + 5669 ms: T7 leu bloco 189 + 5669 ms: T7 bloco 66 tem: [<--bloco 0066-------------------------------------------------->] + 5669 ms: T7 bloco 189 tem: [<--bloco 0189-------------------------------------------------->] + 5669 ms: T7 escrevendo bloco 189 + 5725 ms: T8 leu bloco 173 + 5725 ms: T8 bloco 82 tem: [<--bloco 0082-------------------------------------------------->] + 5725 ms: T8 bloco 173 tem: [<--bloco 0173-------------------------------------------------->] + 5725 ms: T8 escrevendo bloco 173 + 5774 ms: T9 leu bloco 157 + 5774 ms: T9 bloco 98 tem: [<--bloco 0098-------------------------------------------------->] + 5774 ms: T9 bloco 157 tem: [<--bloco 0157-------------------------------------------------->] + 5774 ms: T9 escrevendo bloco 157 + 5843 ms: T10 leu bloco 141 + 5843 ms: T10 bloco 114 tem: [<--bloco 0114-------------------------------------------------->] + 5843 ms: T10 bloco 141 tem: [<--bloco 0141-------------------------------------------------->] + 5843 ms: T10 escrevendo bloco 141 + 5992 ms: T3 escreveu bloco 253 + 5992 ms: T3 escrevendo bloco 2 + 6046 ms: T4 escreveu bloco 237 + 6046 ms: T4 escrevendo bloco 18 + 6102 ms: T5 escreveu bloco 221 + 6102 ms: T5 escrevendo bloco 34 + 6159 ms: T6 escreveu bloco 205 + 6159 ms: T6 escrevendo bloco 50 + 6221 ms: T7 escreveu bloco 189 + 6221 ms: T7 escrevendo bloco 66 + 6286 ms: T8 escreveu bloco 173 + 6286 ms: T8 escrevendo bloco 82 + 6336 ms: T9 escreveu bloco 157 + 6336 ms: T9 escrevendo bloco 98 + 6394 ms: T10 escreveu bloco 141 + 6394 ms: T10 escrevendo bloco 114 + 6593 ms: T3 escreveu bloco 2 + 6593 ms: T3 lendo bloco 3 + 6650 ms: T4 escreveu bloco 18 + 6650 ms: T4 lendo bloco 19 + 6701 ms: T5 escreveu bloco 34 + 6701 ms: T5 lendo bloco 35 + 6763 ms: T6 escreveu bloco 50 + 6763 ms: T6 lendo bloco 51 + 6830 ms: T7 escreveu bloco 66 + 6830 ms: T7 lendo bloco 67 + 6878 ms: T8 escreveu bloco 82 + 6878 ms: T8 lendo bloco 83 + 6945 ms: T9 escreveu bloco 98 + 6945 ms: T9 lendo bloco 99 + 7018 ms: T10 escreveu bloco 114 + 7018 ms: T10 lendo bloco 115 + 7166 ms: T3 leu bloco 3 + 7166 ms: T3 lendo bloco 252 + 7215 ms: T4 leu bloco 19 + 7215 ms: T4 lendo bloco 236 + 7287 ms: T5 leu bloco 35 + 7287 ms: T5 lendo bloco 220 + 7345 ms: T6 leu bloco 51 + 7345 ms: T6 lendo bloco 204 + 7404 ms: T7 leu bloco 67 + 7404 ms: T7 lendo bloco 188 + 7469 ms: T8 leu bloco 83 + 7469 ms: T8 lendo bloco 172 + 7522 ms: T9 leu bloco 99 + 7522 ms: T9 lendo bloco 156 + 7588 ms: T10 leu bloco 115 + 7588 ms: T10 lendo bloco 140 + 7763 ms: T3 leu bloco 252 + 7763 ms: T3 bloco 3 tem: [<--bloco 0003-------------------------------------------------->] + 7763 ms: T3 bloco 252 tem: [<--bloco 0252-------------------------------------------------->] + 7763 ms: T3 escrevendo bloco 252 + 7811 ms: T4 leu bloco 236 + 7811 ms: T4 bloco 19 tem: [<--bloco 0019-------------------------------------------------->] + 7811 ms: T4 bloco 236 tem: [<--bloco 0236-------------------------------------------------->] + 7811 ms: T4 escrevendo bloco 236 + 7864 ms: T5 leu bloco 220 + 7864 ms: T5 bloco 35 tem: [<--bloco 0035-------------------------------------------------->] + 7864 ms: T5 bloco 220 tem: [<--bloco 0220-------------------------------------------------->] + 7864 ms: T5 escrevendo bloco 220 + 7919 ms: T6 leu bloco 204 + 7919 ms: T6 bloco 51 tem: [<--bloco 0051-------------------------------------------------->] + 7919 ms: T6 bloco 204 tem: [<--bloco 0204-------------------------------------------------->] + 7920 ms: T6 escrevendo bloco 204 + 7974 ms: T7 leu bloco 188 + 7974 ms: T7 bloco 67 tem: [<--bloco 0067-------------------------------------------------->] + 7974 ms: T7 bloco 188 tem: [<--bloco 0188-------------------------------------------------->] + 7974 ms: T7 escrevendo bloco 188 + 8027 ms: T8 leu bloco 172 + 8027 ms: T8 bloco 83 tem: [<--bloco 0083-------------------------------------------------->] + 8027 ms: T8 bloco 172 tem: [<--bloco 0172-------------------------------------------------->] + 8027 ms: T8 escrevendo bloco 172 + 8078 ms: T9 leu bloco 156 + 8078 ms: T9 bloco 99 tem: [<--bloco 0099-------------------------------------------------->] + 8078 ms: T9 bloco 156 tem: [<--bloco 0156-------------------------------------------------->] + 8078 ms: T9 escrevendo bloco 156 + 8129 ms: T10 leu bloco 140 + 8129 ms: T10 bloco 115 tem: [<--bloco 0115-------------------------------------------------->] + 8129 ms: T10 bloco 140 tem: [<--bloco 0140-------------------------------------------------->] + 8129 ms: T10 escrevendo bloco 140 + 8293 ms: T3 escreveu bloco 252 + 8293 ms: T3 escrevendo bloco 3 + 8351 ms: T4 escreveu bloco 236 + 8351 ms: T4 escrevendo bloco 19 + 8409 ms: T5 escreveu bloco 220 + 8409 ms: T5 escrevendo bloco 35 + 8456 ms: T6 escreveu bloco 204 + 8456 ms: T6 escrevendo bloco 51 + 8504 ms: T7 escreveu bloco 188 + 8504 ms: T7 escrevendo bloco 67 + 8565 ms: T8 escreveu bloco 172 + 8565 ms: T8 escrevendo bloco 83 + 8618 ms: T9 escreveu bloco 156 + 8618 ms: T9 escrevendo bloco 99 + 8688 ms: T10 escreveu bloco 140 + 8688 ms: T10 escrevendo bloco 115 + 8885 ms: T3 escreveu bloco 3 + 8885 ms: T3 lendo bloco 4 + 8938 ms: T4 escreveu bloco 19 + 8938 ms: T4 lendo bloco 20 + 8993 ms: T5 escreveu bloco 35 + 8993 ms: T5 lendo bloco 36 + 9055 ms: T6 escreveu bloco 51 + 9055 ms: T6 lendo bloco 52 + 9110 ms: T7 escreveu bloco 67 + 9110 ms: T7 lendo bloco 68 + 9158 ms: T8 escreveu bloco 83 + 9159 ms: T8 lendo bloco 84 + 9217 ms: T9 escreveu bloco 99 + 9217 ms: T9 lendo bloco 100 + 9270 ms: T10 escreveu bloco 115 + 9270 ms: T10 lendo bloco 116 + 9417 ms: T3 leu bloco 4 + 9417 ms: T3 lendo bloco 251 + 9469 ms: T4 leu bloco 20 + 9469 ms: T4 lendo bloco 235 + 9529 ms: T5 leu bloco 36 + 9529 ms: T5 lendo bloco 219 + 9585 ms: T6 leu bloco 52 + 9585 ms: T6 lendo bloco 203 + 9656 ms: T7 leu bloco 68 + 9656 ms: T7 lendo bloco 187 + 9720 ms: T8 leu bloco 84 + 9720 ms: T8 lendo bloco 171 + 9766 ms: T9 leu bloco 100 + 9766 ms: T9 lendo bloco 155 + 9812 ms: T10 leu bloco 116 + 9812 ms: T10 lendo bloco 139 +10000 ms: T3 leu bloco 251 +10000 ms: T3 bloco 4 tem: [<--bloco 0004-------------------------------------------------->] +10000 ms: T3 bloco 251 tem: [<--bloco 0251-------------------------------------------------->] +10000 ms: T3 escrevendo bloco 251 +10054 ms: T4 leu bloco 235 +10054 ms: T4 bloco 20 tem: [<--bloco 0020-------------------------------------------------->] +10054 ms: T4 bloco 235 tem: [<--bloco 0235-------------------------------------------------->] +10054 ms: T4 escrevendo bloco 235 +10105 ms: T5 leu bloco 219 +10105 ms: T5 bloco 36 tem: [<--bloco 0036-------------------------------------------------->] +10105 ms: T5 bloco 219 tem: [<--bloco 0219-------------------------------------------------->] +10106 ms: T5 escrevendo bloco 219 +10177 ms: T6 leu bloco 203 +10177 ms: T6 bloco 52 tem: [<--bloco 0052-------------------------------------------------->] +10177 ms: T6 bloco 203 tem: [<--bloco 0203-------------------------------------------------->] +10177 ms: T6 escrevendo bloco 203 +10234 ms: T7 leu bloco 187 +10234 ms: T7 bloco 68 tem: [<--bloco 0068-------------------------------------------------->] +10234 ms: T7 bloco 187 tem: [<--bloco 0187-------------------------------------------------->] +10234 ms: T7 escrevendo bloco 187 +10291 ms: T8 leu bloco 171 +10291 ms: T8 bloco 84 tem: [<--bloco 0084-------------------------------------------------->] +10291 ms: T8 bloco 171 tem: [<--bloco 0171-------------------------------------------------->] +10291 ms: T8 escrevendo bloco 171 +10337 ms: T9 leu bloco 155 +10337 ms: T9 bloco 100 tem: [<--bloco 0100-------------------------------------------------->] +10337 ms: T9 bloco 155 tem: [<--bloco 0155-------------------------------------------------->] +10337 ms: T9 escrevendo bloco 155 +10409 ms: T10 leu bloco 139 +10409 ms: T10 bloco 116 tem: [<--bloco 0116-------------------------------------------------->] +10409 ms: T10 bloco 139 tem: [<--bloco 0139-------------------------------------------------->] +10409 ms: T10 escrevendo bloco 139 +10576 ms: T3 escreveu bloco 251 +10576 ms: T3 escrevendo bloco 4 +10634 ms: T4 escreveu bloco 235 +10634 ms: T4 escrevendo bloco 20 +10681 ms: T5 escreveu bloco 219 +10681 ms: T5 escrevendo bloco 36 +10747 ms: T6 escreveu bloco 203 +10747 ms: T6 escrevendo bloco 52 +10820 ms: T7 escreveu bloco 187 +10820 ms: T7 escrevendo bloco 68 +10873 ms: T8 escreveu bloco 171 +10873 ms: T8 escrevendo bloco 84 +10933 ms: T9 escreveu bloco 155 +10933 ms: T9 escrevendo bloco 100 +11001 ms: T10 escreveu bloco 139 +11001 ms: T10 escrevendo bloco 116 +11184 ms: T3 escreveu bloco 4 +11184 ms: T3 lendo bloco 5 +11248 ms: T4 escreveu bloco 20 +11248 ms: T4 lendo bloco 21 +11301 ms: T5 escreveu bloco 36 +11301 ms: T5 lendo bloco 37 +11362 ms: T6 escreveu bloco 52 +11362 ms: T6 lendo bloco 53 +11423 ms: T7 escreveu bloco 68 +11423 ms: T7 lendo bloco 69 +11484 ms: T8 escreveu bloco 84 +11484 ms: T8 lendo bloco 85 +11552 ms: T9 escreveu bloco 100 +11552 ms: T9 lendo bloco 101 +11614 ms: T10 escreveu bloco 116 +11614 ms: T10 lendo bloco 117 +11781 ms: T3 leu bloco 5 +11781 ms: T3 lendo bloco 250 +11835 ms: T4 leu bloco 21 +11835 ms: T4 lendo bloco 234 +11904 ms: T5 leu bloco 37 +11904 ms: T5 lendo bloco 218 +11965 ms: T6 leu bloco 53 +11965 ms: T6 lendo bloco 202 +12011 ms: T7 leu bloco 69 +12011 ms: T7 lendo bloco 186 +12080 ms: T8 leu bloco 85 +12080 ms: T8 lendo bloco 170 +12142 ms: T9 leu bloco 101 +12142 ms: T9 lendo bloco 154 +12201 ms: T10 leu bloco 117 +12201 ms: T10 lendo bloco 138 +12375 ms: T3 leu bloco 250 +12375 ms: T3 bloco 5 tem: [<--bloco 0005-------------------------------------------------->] +12375 ms: T3 bloco 250 tem: [<--bloco 0250-------------------------------------------------->] +12375 ms: T3 escrevendo bloco 250 +12439 ms: T4 leu bloco 234 +12439 ms: T4 bloco 21 tem: [<--bloco 0021-------------------------------------------------->] +12439 ms: T4 bloco 234 tem: [<--bloco 0234-------------------------------------------------->] +12439 ms: T4 escrevendo bloco 234 +12496 ms: T5 leu bloco 218 +12496 ms: T5 bloco 37 tem: [<--bloco 0037-------------------------------------------------->] +12496 ms: T5 bloco 218 tem: [<--bloco 0218-------------------------------------------------->] +12496 ms: T5 escrevendo bloco 218 +12554 ms: T6 leu bloco 202 +12554 ms: T6 bloco 53 tem: [<--bloco 0053-------------------------------------------------->] +12554 ms: T6 bloco 202 tem: [<--bloco 0202-------------------------------------------------->] +12554 ms: T6 escrevendo bloco 202 +12625 ms: T7 leu bloco 186 +12625 ms: T7 bloco 69 tem: [<--bloco 0069-------------------------------------------------->] +12625 ms: T7 bloco 186 tem: [<--bloco 0186-------------------------------------------------->] +12625 ms: T7 escrevendo bloco 186 +12682 ms: T8 leu bloco 170 +12682 ms: T8 bloco 85 tem: [<--bloco 0085-------------------------------------------------->] +12682 ms: T8 bloco 170 tem: [<--bloco 0170-------------------------------------------------->] +12682 ms: T8 escrevendo bloco 170 +12741 ms: T9 leu bloco 154 +12741 ms: T9 bloco 101 tem: [<--bloco 0101-------------------------------------------------->] +12741 ms: T9 bloco 154 tem: [<--bloco 0154-------------------------------------------------->] +12741 ms: T9 escrevendo bloco 154 +12804 ms: T10 leu bloco 138 +12804 ms: T10 bloco 117 tem: [<--bloco 0117-------------------------------------------------->] +12804 ms: T10 bloco 138 tem: [<--bloco 0138-------------------------------------------------->] +12804 ms: T10 escrevendo bloco 138 +12972 ms: T3 escreveu bloco 250 +12972 ms: T3 escrevendo bloco 5 +13027 ms: T4 escreveu bloco 234 +13027 ms: T4 escrevendo bloco 21 +13083 ms: T5 escreveu bloco 218 +13083 ms: T5 escrevendo bloco 37 +13149 ms: T6 escreveu bloco 202 +13149 ms: T6 escrevendo bloco 53 +13207 ms: T7 escreveu bloco 186 +13207 ms: T7 escrevendo bloco 69 +13273 ms: T8 escreveu bloco 170 +13273 ms: T8 escrevendo bloco 85 +13330 ms: T9 escreveu bloco 154 +13330 ms: T9 escrevendo bloco 101 +13397 ms: T10 escreveu bloco 138 +13397 ms: T10 escrevendo bloco 117 +13577 ms: T3 escreveu bloco 5 +13577 ms: T3 lendo bloco 6 +13637 ms: T4 escreveu bloco 21 +13637 ms: T4 lendo bloco 22 +13693 ms: T5 escreveu bloco 37 +13693 ms: T5 lendo bloco 38 +13764 ms: T6 escreveu bloco 53 +13764 ms: T6 lendo bloco 54 +13811 ms: T7 escreveu bloco 69 +13811 ms: T7 lendo bloco 70 +13860 ms: T8 escreveu bloco 85 +13860 ms: T8 lendo bloco 86 +13915 ms: T9 escreveu bloco 101 +13915 ms: T9 lendo bloco 102 +13983 ms: T10 escreveu bloco 117 +13983 ms: T10 lendo bloco 118 +14138 ms: T3 leu bloco 6 +14138 ms: T3 lendo bloco 249 +14188 ms: T4 leu bloco 22 +14188 ms: T4 lendo bloco 233 +14240 ms: T5 leu bloco 38 +14240 ms: T5 lendo bloco 217 +14289 ms: T6 leu bloco 54 +14289 ms: T6 lendo bloco 201 +14335 ms: T7 leu bloco 70 +14335 ms: T7 lendo bloco 185 +14404 ms: T8 leu bloco 86 +14404 ms: T8 lendo bloco 169 +14466 ms: T9 leu bloco 102 +14466 ms: T9 lendo bloco 153 +14513 ms: T10 leu bloco 118 +14513 ms: T10 lendo bloco 137 +14695 ms: T3 leu bloco 249 +14695 ms: T3 bloco 6 tem: [<--bloco 0006-------------------------------------------------->] +14695 ms: T3 bloco 249 tem: [<--bloco 0249-------------------------------------------------->] +14695 ms: T3 escrevendo bloco 249 +14765 ms: T4 leu bloco 233 +14765 ms: T4 bloco 22 tem: [<--bloco 0022-------------------------------------------------->] +14765 ms: T4 bloco 233 tem: [<--bloco 0233-------------------------------------------------->] +14765 ms: T4 escrevendo bloco 233 +14824 ms: T5 leu bloco 217 +14824 ms: T5 bloco 38 tem: [<--bloco 0038-------------------------------------------------->] +14824 ms: T5 bloco 217 tem: [<--bloco 0217-------------------------------------------------->] +14824 ms: T5 escrevendo bloco 217 +14883 ms: T6 leu bloco 201 +14883 ms: T6 bloco 54 tem: [<--bloco 0054-------------------------------------------------->] +14883 ms: T6 bloco 201 tem: [<--bloco 0201-------------------------------------------------->] +14883 ms: T6 escrevendo bloco 201 +14934 ms: T7 leu bloco 185 +14934 ms: T7 bloco 70 tem: [<--bloco 0070-------------------------------------------------->] +14934 ms: T7 bloco 185 tem: [<--bloco 0185-------------------------------------------------->] +14934 ms: T7 escrevendo bloco 185 +15001 ms: T8 leu bloco 169 +15001 ms: T8 bloco 86 tem: [<--bloco 0086-------------------------------------------------->] +15001 ms: T8 bloco 169 tem: [<--bloco 0169-------------------------------------------------->] +15001 ms: T8 escrevendo bloco 169 +15073 ms: T9 leu bloco 153 +15073 ms: T9 bloco 102 tem: [<--bloco 0102-------------------------------------------------->] +15073 ms: T9 bloco 153 tem: [<--bloco 0153-------------------------------------------------->] +15073 ms: T9 escrevendo bloco 153 +15144 ms: T10 leu bloco 137 +15144 ms: T10 bloco 118 tem: [<--bloco 0118-------------------------------------------------->] +15144 ms: T10 bloco 137 tem: [<--bloco 0137-------------------------------------------------->] +15145 ms: T10 escrevendo bloco 137 +15296 ms: T3 escreveu bloco 249 +15296 ms: T3 escrevendo bloco 6 +15348 ms: T4 escreveu bloco 233 +15348 ms: T4 escrevendo bloco 22 +15409 ms: T5 escreveu bloco 217 +15409 ms: T5 escrevendo bloco 38 +15466 ms: T6 escreveu bloco 201 +15466 ms: T6 escrevendo bloco 54 +15538 ms: T7 escreveu bloco 185 +15538 ms: T7 escrevendo bloco 70 +15605 ms: T8 escreveu bloco 169 +15605 ms: T8 escrevendo bloco 86 +15656 ms: T9 escreveu bloco 153 +15656 ms: T9 escrevendo bloco 102 +15706 ms: T10 escreveu bloco 137 +15706 ms: T10 escrevendo bloco 118 +15882 ms: T3 escreveu bloco 6 +15882 ms: T3 lendo bloco 7 +15938 ms: T4 escreveu bloco 22 +15938 ms: T4 lendo bloco 23 +16010 ms: T5 escreveu bloco 38 +16010 ms: T5 lendo bloco 39 +16065 ms: T6 escreveu bloco 54 +16065 ms: T6 lendo bloco 55 +16121 ms: T7 escreveu bloco 70 +16121 ms: T7 lendo bloco 71 +16173 ms: T8 escreveu bloco 86 +16173 ms: T8 lendo bloco 87 +16246 ms: T9 escreveu bloco 102 +16246 ms: T9 lendo bloco 103 +16308 ms: T10 escreveu bloco 118 +16308 ms: T10 lendo bloco 119 +16461 ms: T3 leu bloco 7 +16461 ms: T3 lendo bloco 248 +16513 ms: T4 leu bloco 23 +16513 ms: T4 lendo bloco 232 +16574 ms: T5 leu bloco 39 +16574 ms: T5 lendo bloco 216 +16622 ms: T6 leu bloco 55 +16622 ms: T6 lendo bloco 200 +16693 ms: T7 leu bloco 71 +16693 ms: T7 lendo bloco 184 +16740 ms: T8 leu bloco 87 +16740 ms: T8 lendo bloco 168 +16789 ms: T9 leu bloco 103 +16789 ms: T9 lendo bloco 152 +16844 ms: T10 leu bloco 119 +16845 ms: T10 lendo bloco 136 +17032 ms: T3 leu bloco 248 +17033 ms: T3 bloco 7 tem: [<--bloco 0007-------------------------------------------------->] +17033 ms: T3 bloco 248 tem: [<--bloco 0248-------------------------------------------------->] +17033 ms: T3 escrevendo bloco 248 +17092 ms: T4 leu bloco 232 +17092 ms: T4 bloco 23 tem: [<--bloco 0023-------------------------------------------------->] +17092 ms: T4 bloco 232 tem: [<--bloco 0232-------------------------------------------------->] +17092 ms: T4 escrevendo bloco 232 +17156 ms: T5 leu bloco 216 +17156 ms: T5 bloco 39 tem: [<--bloco 0039-------------------------------------------------->] +17156 ms: T5 bloco 216 tem: [<--bloco 0216-------------------------------------------------->] +17156 ms: T5 escrevendo bloco 216 +17225 ms: T6 leu bloco 200 +17225 ms: T6 bloco 55 tem: [<--bloco 0055-------------------------------------------------->] +17225 ms: T6 bloco 200 tem: [<--bloco 0200-------------------------------------------------->] +17225 ms: T6 escrevendo bloco 200 +17275 ms: T7 leu bloco 184 +17275 ms: T7 bloco 71 tem: [<--bloco 0071-------------------------------------------------->] +17275 ms: T7 bloco 184 tem: [<--bloco 0184-------------------------------------------------->] +17275 ms: T7 escrevendo bloco 184 +17339 ms: T8 leu bloco 168 +17339 ms: T8 bloco 87 tem: [<--bloco 0087-------------------------------------------------->] +17339 ms: T8 bloco 168 tem: [<--bloco 0168-------------------------------------------------->] +17339 ms: T8 escrevendo bloco 168 +17406 ms: T9 leu bloco 152 +17406 ms: T9 bloco 103 tem: [<--bloco 0103-------------------------------------------------->] +17406 ms: T9 bloco 152 tem: [<--bloco 0152-------------------------------------------------->] +17407 ms: T9 escrevendo bloco 152 +17456 ms: T10 leu bloco 136 +17456 ms: T10 bloco 119 tem: [<--bloco 0119-------------------------------------------------->] +17456 ms: T10 bloco 136 tem: [<--bloco 0136-------------------------------------------------->] +17457 ms: T10 escrevendo bloco 136 +17629 ms: T3 escreveu bloco 248 +17629 ms: T3 escrevendo bloco 7 +17680 ms: T4 escreveu bloco 232 +17680 ms: T4 escrevendo bloco 23 +17742 ms: T5 escreveu bloco 216 +17742 ms: T5 escrevendo bloco 39 +17807 ms: T6 escreveu bloco 200 +17807 ms: T6 escrevendo bloco 55 +17879 ms: T7 escreveu bloco 184 +17879 ms: T7 escrevendo bloco 71 +17941 ms: T8 escreveu bloco 168 +17941 ms: T8 escrevendo bloco 87 +18010 ms: T9 escreveu bloco 152 +18010 ms: T9 escrevendo bloco 103 +18059 ms: T10 escreveu bloco 136 +18059 ms: T10 escrevendo bloco 119 +18251 ms: T3 escreveu bloco 7 +18251 ms: T3 lendo bloco 8 +18317 ms: T4 escreveu bloco 23 +18317 ms: T4 lendo bloco 24 +18374 ms: T5 escreveu bloco 39 +18374 ms: T5 lendo bloco 40 +18427 ms: T6 escreveu bloco 55 +18427 ms: T6 lendo bloco 56 +18495 ms: T7 escreveu bloco 71 +18495 ms: T7 lendo bloco 72 +18548 ms: T8 escreveu bloco 87 +18548 ms: T8 lendo bloco 88 +18612 ms: T9 escreveu bloco 103 +18612 ms: T9 lendo bloco 104 +18659 ms: T10 escreveu bloco 119 +18659 ms: T10 lendo bloco 120 +18818 ms: T3 leu bloco 8 +18818 ms: T3 lendo bloco 247 +18866 ms: T4 leu bloco 24 +18866 ms: T4 lendo bloco 231 +18915 ms: T5 leu bloco 40 +18916 ms: T5 lendo bloco 215 +18968 ms: T6 leu bloco 56 +18968 ms: T6 lendo bloco 199 +19018 ms: T7 leu bloco 72 +19018 ms: T7 lendo bloco 183 +19067 ms: T8 leu bloco 88 +19067 ms: T8 lendo bloco 167 +19128 ms: T9 leu bloco 104 +19128 ms: T9 lendo bloco 151 +19196 ms: T10 leu bloco 120 +19196 ms: T10 lendo bloco 135 +19372 ms: T3 leu bloco 247 +19372 ms: T3 bloco 8 tem: [<--bloco 0008-------------------------------------------------->] +19372 ms: T3 bloco 247 tem: [<--bloco 0247-------------------------------------------------->] +19372 ms: T3 escrevendo bloco 247 +19421 ms: T4 leu bloco 231 +19421 ms: T4 bloco 24 tem: [<--bloco 0024-------------------------------------------------->] +19421 ms: T4 bloco 231 tem: [<--bloco 0231-------------------------------------------------->] +19422 ms: T4 escrevendo bloco 231 +19487 ms: T5 leu bloco 215 +19487 ms: T5 bloco 40 tem: [<--bloco 0040-------------------------------------------------->] +19487 ms: T5 bloco 215 tem: [<--bloco 0215-------------------------------------------------->] +19487 ms: T5 escrevendo bloco 215 +19550 ms: T6 leu bloco 199 +19550 ms: T6 bloco 56 tem: [<--bloco 0056-------------------------------------------------->] +19550 ms: T6 bloco 199 tem: [<--bloco 0199-------------------------------------------------->] +19550 ms: T6 escrevendo bloco 199 +19618 ms: T7 leu bloco 183 +19618 ms: T7 bloco 72 tem: [<--bloco 0072-------------------------------------------------->] +19618 ms: T7 bloco 183 tem: [<--bloco 0183-------------------------------------------------->] +19618 ms: T7 escrevendo bloco 183 +19674 ms: T8 leu bloco 167 +19674 ms: T8 bloco 88 tem: [<--bloco 0088-------------------------------------------------->] +19674 ms: T8 bloco 167 tem: [<--bloco 0167-------------------------------------------------->] +19674 ms: T8 escrevendo bloco 167 +19738 ms: T9 leu bloco 151 +19738 ms: T9 bloco 104 tem: [<--bloco 0104-------------------------------------------------->] +19738 ms: T9 bloco 151 tem: [<--bloco 0151-------------------------------------------------->] +19738 ms: T9 escrevendo bloco 151 +19799 ms: T10 leu bloco 135 +19799 ms: T10 bloco 120 tem: [<--bloco 0120-------------------------------------------------->] +19799 ms: T10 bloco 135 tem: [<--bloco 0135-------------------------------------------------->] +19799 ms: T10 escrevendo bloco 135 +19963 ms: T3 escreveu bloco 247 +19963 ms: T3 escrevendo bloco 8 +20015 ms: T4 escreveu bloco 231 +20015 ms: T4 escrevendo bloco 24 +20069 ms: T5 escreveu bloco 215 +20069 ms: T5 escrevendo bloco 40 +20126 ms: T6 escreveu bloco 199 +20126 ms: T6 escrevendo bloco 56 +20194 ms: T7 escreveu bloco 183 +20194 ms: T7 escrevendo bloco 72 +20266 ms: T8 escreveu bloco 167 +20266 ms: T8 escrevendo bloco 88 +20325 ms: T9 escreveu bloco 151 +20325 ms: T9 escrevendo bloco 104 +20388 ms: T10 escreveu bloco 135 +20388 ms: T10 escrevendo bloco 120 +20569 ms: T3 escreveu bloco 8 +20569 ms: T3 lendo bloco 9 +20635 ms: T4 escreveu bloco 24 +20635 ms: T4 lendo bloco 25 +20704 ms: T5 escreveu bloco 40 +20704 ms: T5 lendo bloco 41 +20758 ms: T6 escreveu bloco 56 +20758 ms: T6 lendo bloco 57 +20830 ms: T7 escreveu bloco 72 +20830 ms: T7 lendo bloco 73 +20886 ms: T8 escreveu bloco 88 +20886 ms: T8 lendo bloco 89 +20941 ms: T9 escreveu bloco 104 +20941 ms: T9 lendo bloco 105 +20999 ms: T10 escreveu bloco 120 +20999 ms: T10 lendo bloco 121 +21157 ms: T3 leu bloco 9 +21157 ms: T3 lendo bloco 246 +21210 ms: T4 leu bloco 25 +21210 ms: T4 lendo bloco 230 +21268 ms: T5 leu bloco 41 +21268 ms: T5 lendo bloco 214 +21326 ms: T6 leu bloco 57 +21326 ms: T6 lendo bloco 198 +21379 ms: T7 leu bloco 73 +21379 ms: T7 lendo bloco 182 +21426 ms: T8 leu bloco 89 +21426 ms: T8 lendo bloco 166 +21480 ms: T9 leu bloco 105 +21480 ms: T9 lendo bloco 150 +21547 ms: T10 leu bloco 121 +21547 ms: T10 lendo bloco 134 +21713 ms: T3 leu bloco 246 +21713 ms: T3 bloco 9 tem: [<--bloco 0009-------------------------------------------------->] +21713 ms: T3 bloco 246 tem: [<--bloco 0246-------------------------------------------------->] +21713 ms: T3 escrevendo bloco 246 +21782 ms: T4 leu bloco 230 +21782 ms: T4 bloco 25 tem: [<--bloco 0025-------------------------------------------------->] +21782 ms: T4 bloco 230 tem: [<--bloco 0230-------------------------------------------------->] +21782 ms: T4 escrevendo bloco 230 +21835 ms: T5 leu bloco 214 +21835 ms: T5 bloco 41 tem: [<--bloco 0041-------------------------------------------------->] +21835 ms: T5 bloco 214 tem: [<--bloco 0214-------------------------------------------------->] +21835 ms: T5 escrevendo bloco 214 +21905 ms: T6 leu bloco 198 +21905 ms: T6 bloco 57 tem: [<--bloco 0057-------------------------------------------------->] +21905 ms: T6 bloco 198 tem: [<--bloco 0198-------------------------------------------------->] +21905 ms: T6 escrevendo bloco 198 +21958 ms: T7 leu bloco 182 +21958 ms: T7 bloco 73 tem: [<--bloco 0073-------------------------------------------------->] +21958 ms: T7 bloco 182 tem: [<--bloco 0182-------------------------------------------------->] +21958 ms: T7 escrevendo bloco 182 +22029 ms: T8 leu bloco 166 +22029 ms: T8 bloco 89 tem: [<--bloco 0089-------------------------------------------------->] +22029 ms: T8 bloco 166 tem: [<--bloco 0166-------------------------------------------------->] +22029 ms: T8 escrevendo bloco 166 +22087 ms: T9 leu bloco 150 +22087 ms: T9 bloco 105 tem: [<--bloco 0105-------------------------------------------------->] +22087 ms: T9 bloco 150 tem: [<--bloco 0150-------------------------------------------------->] +22087 ms: T9 escrevendo bloco 150 +22155 ms: T10 leu bloco 134 +22155 ms: T10 bloco 121 tem: [<--bloco 0121-------------------------------------------------->] +22155 ms: T10 bloco 134 tem: [<--bloco 0134-------------------------------------------------->] +22155 ms: T10 escrevendo bloco 134 +22304 ms: T3 escreveu bloco 246 +22304 ms: T3 escrevendo bloco 9 +22366 ms: T4 escreveu bloco 230 +22366 ms: T4 escrevendo bloco 25 +22414 ms: T5 escreveu bloco 214 +22414 ms: T5 escrevendo bloco 41 +22479 ms: T6 escreveu bloco 198 +22479 ms: T6 escrevendo bloco 57 +22539 ms: T7 escreveu bloco 182 +22539 ms: T7 escrevendo bloco 73 +22599 ms: T8 escreveu bloco 166 +22599 ms: T8 escrevendo bloco 89 +22653 ms: T9 escreveu bloco 150 +22653 ms: T9 escrevendo bloco 105 +22700 ms: T10 escreveu bloco 134 +22700 ms: T10 escrevendo bloco 121 +22867 ms: T3 escreveu bloco 9 +22867 ms: T3 lendo bloco 10 +22940 ms: T4 escreveu bloco 25 +22940 ms: T4 lendo bloco 26 +22990 ms: T5 escreveu bloco 41 +22990 ms: T5 lendo bloco 42 +23040 ms: T6 escreveu bloco 57 +23040 ms: T6 lendo bloco 58 +23095 ms: T7 escreveu bloco 73 +23095 ms: T7 lendo bloco 74 +23150 ms: T8 escreveu bloco 89 +23150 ms: T8 lendo bloco 90 +23207 ms: T9 escreveu bloco 105 +23207 ms: T9 lendo bloco 106 +23270 ms: T10 escreveu bloco 121 +23270 ms: T10 lendo bloco 122 +23432 ms: T3 leu bloco 10 +23432 ms: T3 lendo bloco 245 +23501 ms: T4 leu bloco 26 +23501 ms: T4 lendo bloco 229 +23572 ms: T5 leu bloco 42 +23572 ms: T5 lendo bloco 213 +23637 ms: T6 leu bloco 58 +23637 ms: T6 lendo bloco 197 +23704 ms: T7 leu bloco 74 +23704 ms: T7 lendo bloco 181 +23752 ms: T8 leu bloco 90 +23752 ms: T8 lendo bloco 165 +23806 ms: T9 leu bloco 106 +23806 ms: T9 lendo bloco 149 +23874 ms: T10 leu bloco 122 +23874 ms: T10 lendo bloco 133 +24059 ms: T3 leu bloco 245 +24060 ms: T3 bloco 10 tem: [<--bloco 0010-------------------------------------------------->] +24060 ms: T3 bloco 245 tem: [<--bloco 0245-------------------------------------------------->] +24060 ms: T3 escrevendo bloco 245 +24122 ms: T4 leu bloco 229 +24122 ms: T4 bloco 26 tem: [<--bloco 0026-------------------------------------------------->] +24122 ms: T4 bloco 229 tem: [<--bloco 0229-------------------------------------------------->] +24122 ms: T4 escrevendo bloco 229 +24187 ms: T5 leu bloco 213 +24187 ms: T5 bloco 42 tem: [<--bloco 0042-------------------------------------------------->] +24187 ms: T5 bloco 213 tem: [<--bloco 0213-------------------------------------------------->] +24187 ms: T5 escrevendo bloco 213 +24239 ms: T6 leu bloco 197 +24239 ms: T6 bloco 58 tem: [<--bloco 0058-------------------------------------------------->] +24239 ms: T6 bloco 197 tem: [<--bloco 0197-------------------------------------------------->] +24239 ms: T6 escrevendo bloco 197 +24296 ms: T7 leu bloco 181 +24296 ms: T7 bloco 74 tem: [<--bloco 0074-------------------------------------------------->] +24296 ms: T7 bloco 181 tem: [<--bloco 0181-------------------------------------------------->] +24296 ms: T7 escrevendo bloco 181 +24343 ms: T8 leu bloco 165 +24343 ms: T8 bloco 90 tem: [<--bloco 0090-------------------------------------------------->] +24343 ms: T8 bloco 165 tem: [<--bloco 0165-------------------------------------------------->] +24343 ms: T8 escrevendo bloco 165 +24413 ms: T9 leu bloco 149 +24413 ms: T9 bloco 106 tem: [<--bloco 0106-------------------------------------------------->] +24413 ms: T9 bloco 149 tem: [<--bloco 0149-------------------------------------------------->] +24413 ms: T9 escrevendo bloco 149 +24466 ms: T10 leu bloco 133 +24466 ms: T10 bloco 122 tem: [<--bloco 0122-------------------------------------------------->] +24466 ms: T10 bloco 133 tem: [<--bloco 0133-------------------------------------------------->] +24466 ms: T10 escrevendo bloco 133 +24628 ms: T3 escreveu bloco 245 +24628 ms: T3 escrevendo bloco 10 +24701 ms: T4 escreveu bloco 229 +24701 ms: T4 escrevendo bloco 26 +24774 ms: T5 escreveu bloco 213 +24774 ms: T5 escrevendo bloco 42 +24844 ms: T6 escreveu bloco 197 +24844 ms: T6 escrevendo bloco 58 +24900 ms: T7 escreveu bloco 181 +24900 ms: T7 escrevendo bloco 74 +24950 ms: T8 escreveu bloco 165 +24950 ms: T8 escrevendo bloco 90 +25017 ms: T9 escreveu bloco 149 +25017 ms: T9 escrevendo bloco 106 +25078 ms: T10 escreveu bloco 133 +25078 ms: T10 escrevendo bloco 122 +25240 ms: T3 escreveu bloco 10 +25240 ms: T3 lendo bloco 11 +25311 ms: T4 escreveu bloco 26 +25312 ms: T4 lendo bloco 27 +25374 ms: T5 escreveu bloco 42 +25374 ms: T5 lendo bloco 43 +25428 ms: T6 escreveu bloco 58 +25428 ms: T6 lendo bloco 59 +25480 ms: T7 escreveu bloco 74 +25480 ms: T7 lendo bloco 75 +25552 ms: T8 escreveu bloco 90 +25552 ms: T8 lendo bloco 91 +25623 ms: T9 escreveu bloco 106 +25623 ms: T9 lendo bloco 107 +25687 ms: T10 escreveu bloco 122 +25687 ms: T10 lendo bloco 123 +25851 ms: T3 leu bloco 11 +25851 ms: T3 lendo bloco 244 +25919 ms: T4 leu bloco 27 +25919 ms: T4 lendo bloco 228 +25974 ms: T5 leu bloco 43 +25974 ms: T5 lendo bloco 212 +26027 ms: T6 leu bloco 59 +26027 ms: T6 lendo bloco 196 +26098 ms: T7 leu bloco 75 +26098 ms: T7 lendo bloco 180 +26163 ms: T8 leu bloco 91 +26163 ms: T8 lendo bloco 164 +26212 ms: T9 leu bloco 107 +26212 ms: T9 lendo bloco 148 +26278 ms: T10 leu bloco 123 +26278 ms: T10 lendo bloco 132 +26438 ms: T3 leu bloco 244 +26438 ms: T3 bloco 11 tem: [<--bloco 0011-------------------------------------------------->] +26438 ms: T3 bloco 244 tem: [<--bloco 0244-------------------------------------------------->] +26438 ms: T3 escrevendo bloco 244 +26504 ms: T4 leu bloco 228 +26504 ms: T4 bloco 27 tem: [<--bloco 0027-------------------------------------------------->] +26504 ms: T4 bloco 228 tem: [<--bloco 0228-------------------------------------------------->] +26504 ms: T4 escrevendo bloco 228 +26576 ms: T5 leu bloco 212 +26576 ms: T5 bloco 43 tem: [<--bloco 0043-------------------------------------------------->] +26576 ms: T5 bloco 212 tem: [<--bloco 0212-------------------------------------------------->] +26576 ms: T5 escrevendo bloco 212 +26633 ms: T6 leu bloco 196 +26633 ms: T6 bloco 59 tem: [<--bloco 0059-------------------------------------------------->] +26633 ms: T6 bloco 196 tem: [<--bloco 0196-------------------------------------------------->] +26633 ms: T6 escrevendo bloco 196 +26696 ms: T7 leu bloco 180 +26696 ms: T7 bloco 75 tem: [<--bloco 0075-------------------------------------------------->] +26696 ms: T7 bloco 180 tem: [<--bloco 0180-------------------------------------------------->] +26697 ms: T7 escrevendo bloco 180 +26763 ms: T8 leu bloco 164 +26763 ms: T8 bloco 91 tem: [<--bloco 0091-------------------------------------------------->] +26763 ms: T8 bloco 164 tem: [<--bloco 0164-------------------------------------------------->] +26763 ms: T8 escrevendo bloco 164 +26827 ms: T9 leu bloco 148 +26827 ms: T9 bloco 107 tem: [<--bloco 0107-------------------------------------------------->] +26827 ms: T9 bloco 148 tem: [<--bloco 0148-------------------------------------------------->] +26827 ms: T9 escrevendo bloco 148 +26877 ms: T10 leu bloco 132 +26877 ms: T10 bloco 123 tem: [<--bloco 0123-------------------------------------------------->] +26877 ms: T10 bloco 132 tem: [<--bloco 0132-------------------------------------------------->] +26877 ms: T10 escrevendo bloco 132 +27045 ms: T3 escreveu bloco 244 +27045 ms: T3 escrevendo bloco 11 +27107 ms: T4 escreveu bloco 228 +27107 ms: T4 escrevendo bloco 27 +27155 ms: T5 escreveu bloco 212 +27155 ms: T5 escrevendo bloco 43 +27227 ms: T6 escreveu bloco 196 +27227 ms: T6 escrevendo bloco 59 +27291 ms: T7 escreveu bloco 180 +27291 ms: T7 escrevendo bloco 75 +27355 ms: T8 escreveu bloco 164 +27355 ms: T8 escrevendo bloco 91 +27415 ms: T9 escreveu bloco 148 +27415 ms: T9 escrevendo bloco 107 +27482 ms: T10 escreveu bloco 132 +27482 ms: T10 escrevendo bloco 123 +27657 ms: T3 escreveu bloco 11 +27657 ms: T3 lendo bloco 12 +27727 ms: T4 escreveu bloco 27 +27727 ms: T4 lendo bloco 28 +27775 ms: T5 escreveu bloco 43 +27775 ms: T5 lendo bloco 44 +27842 ms: T6 escreveu bloco 59 +27842 ms: T6 lendo bloco 60 +27906 ms: T7 escreveu bloco 75 +27906 ms: T7 lendo bloco 76 +27974 ms: T8 escreveu bloco 91 +27974 ms: T8 lendo bloco 92 +28031 ms: T9 escreveu bloco 107 +28031 ms: T9 lendo bloco 108 +28086 ms: T10 escreveu bloco 123 +28086 ms: T10 lendo bloco 124 +28246 ms: T3 leu bloco 12 +28246 ms: T3 lendo bloco 243 +28307 ms: T4 leu bloco 28 +28307 ms: T4 lendo bloco 227 +28369 ms: T5 leu bloco 44 +28369 ms: T5 lendo bloco 211 +28422 ms: T6 leu bloco 60 +28422 ms: T6 lendo bloco 195 +28471 ms: T7 leu bloco 76 +28471 ms: T7 lendo bloco 179 +28533 ms: T8 leu bloco 92 +28533 ms: T8 lendo bloco 163 +28579 ms: T9 leu bloco 108 +28579 ms: T9 lendo bloco 147 +28631 ms: T10 leu bloco 124 +28631 ms: T10 lendo bloco 131 +28794 ms: T3 leu bloco 243 +28794 ms: T3 bloco 12 tem: [<--bloco 0012-------------------------------------------------->] +28794 ms: T3 bloco 243 tem: [<--bloco 0243-------------------------------------------------->] +28794 ms: T3 escrevendo bloco 243 +28863 ms: T4 leu bloco 227 +28863 ms: T4 bloco 28 tem: [<--bloco 0028-------------------------------------------------->] +28864 ms: T4 bloco 227 tem: [<--bloco 0227-------------------------------------------------->] +28864 ms: T4 escrevendo bloco 227 +28924 ms: T5 leu bloco 211 +28924 ms: T5 bloco 44 tem: [<--bloco 0044-------------------------------------------------->] +28924 ms: T5 bloco 211 tem: [<--bloco 0211-------------------------------------------------->] +28924 ms: T5 escrevendo bloco 211 +28993 ms: T6 leu bloco 195 +28993 ms: T6 bloco 60 tem: [<--bloco 0060-------------------------------------------------->] +28993 ms: T6 bloco 195 tem: [<--bloco 0195-------------------------------------------------->] +28993 ms: T6 escrevendo bloco 195 +29055 ms: T7 leu bloco 179 +29055 ms: T7 bloco 76 tem: [<--bloco 0076-------------------------------------------------->] +29055 ms: T7 bloco 179 tem: [<--bloco 0179-------------------------------------------------->] +29055 ms: T7 escrevendo bloco 179 +29107 ms: T8 leu bloco 163 +29107 ms: T8 bloco 92 tem: [<--bloco 0092-------------------------------------------------->] +29107 ms: T8 bloco 163 tem: [<--bloco 0163-------------------------------------------------->] +29107 ms: T8 escrevendo bloco 163 +29154 ms: T9 leu bloco 147 +29154 ms: T9 bloco 108 tem: [<--bloco 0108-------------------------------------------------->] +29154 ms: T9 bloco 147 tem: [<--bloco 0147-------------------------------------------------->] +29154 ms: T9 escrevendo bloco 147 +29204 ms: T10 leu bloco 131 +29204 ms: T10 bloco 124 tem: [<--bloco 0124-------------------------------------------------->] +29204 ms: T10 bloco 131 tem: [<--bloco 0131-------------------------------------------------->] +29204 ms: T10 escrevendo bloco 131 +29369 ms: T3 escreveu bloco 243 +29369 ms: T3 escrevendo bloco 12 +29441 ms: T4 escreveu bloco 227 +29441 ms: T4 escrevendo bloco 28 +29490 ms: T5 escreveu bloco 211 +29490 ms: T5 escrevendo bloco 44 +29544 ms: T6 escreveu bloco 195 +29544 ms: T6 escrevendo bloco 60 +29607 ms: T7 escreveu bloco 179 +29607 ms: T7 escrevendo bloco 76 +29664 ms: T8 escreveu bloco 163 +29664 ms: T8 escrevendo bloco 92 +29735 ms: T9 escreveu bloco 147 +29735 ms: T9 escrevendo bloco 108 +29786 ms: T10 escreveu bloco 131 +29786 ms: T10 escrevendo bloco 124 +29949 ms: T3 escreveu bloco 12 +29949 ms: T3 lendo bloco 13 +30018 ms: T4 escreveu bloco 28 +30018 ms: T4 lendo bloco 29 +30086 ms: T5 escreveu bloco 44 +30086 ms: T5 lendo bloco 45 +30158 ms: T6 escreveu bloco 60 +30158 ms: T6 lendo bloco 61 +30221 ms: T7 escreveu bloco 76 +30221 ms: T7 lendo bloco 77 +30268 ms: T8 escreveu bloco 92 +30268 ms: T8 lendo bloco 93 +30318 ms: T9 escreveu bloco 108 +30318 ms: T9 lendo bloco 109 +30367 ms: T10 escreveu bloco 124 +30367 ms: T10 lendo bloco 125 +30526 ms: T3 leu bloco 13 +30526 ms: T3 lendo bloco 242 +30587 ms: T4 leu bloco 29 +30588 ms: T4 lendo bloco 226 +30643 ms: T5 leu bloco 45 +30643 ms: T5 lendo bloco 210 +30704 ms: T6 leu bloco 61 +30704 ms: T6 lendo bloco 194 +30755 ms: T7 leu bloco 77 +30755 ms: T7 lendo bloco 178 +30807 ms: T8 leu bloco 93 +30807 ms: T8 lendo bloco 162 +30875 ms: T9 leu bloco 109 +30875 ms: T9 lendo bloco 146 +30931 ms: T10 leu bloco 125 +30931 ms: T10 lendo bloco 130 +31086 ms: T3 leu bloco 242 +31086 ms: T3 bloco 13 tem: [<--bloco 0013-------------------------------------------------->] +31086 ms: T3 bloco 242 tem: [<--bloco 0242-------------------------------------------------->] +31086 ms: T3 escrevendo bloco 242 +31142 ms: T4 leu bloco 226 +31142 ms: T4 bloco 29 tem: [<--bloco 0029-------------------------------------------------->] +31142 ms: T4 bloco 226 tem: [<--bloco 0226-------------------------------------------------->] +31143 ms: T4 escrevendo bloco 226 +31195 ms: T5 leu bloco 210 +31195 ms: T5 bloco 45 tem: [<--bloco 0045-------------------------------------------------->] +31195 ms: T5 bloco 210 tem: [<--bloco 0210-------------------------------------------------->] +31196 ms: T5 escrevendo bloco 210 +31260 ms: T6 leu bloco 194 +31260 ms: T6 bloco 61 tem: [<--bloco 0061-------------------------------------------------->] +31261 ms: T6 bloco 194 tem: [<--bloco 0194-------------------------------------------------->] +31261 ms: T6 escrevendo bloco 194 +31318 ms: T7 leu bloco 178 +31318 ms: T7 bloco 77 tem: [<--bloco 0077-------------------------------------------------->] +31319 ms: T7 bloco 178 tem: [<--bloco 0178-------------------------------------------------->] +31319 ms: T7 escrevendo bloco 178 +31369 ms: T8 leu bloco 162 +31369 ms: T8 bloco 93 tem: [<--bloco 0093-------------------------------------------------->] +31369 ms: T8 bloco 162 tem: [<--bloco 0162-------------------------------------------------->] +31369 ms: T8 escrevendo bloco 162 +31435 ms: T9 leu bloco 146 +31435 ms: T9 bloco 109 tem: [<--bloco 0109-------------------------------------------------->] +31435 ms: T9 bloco 146 tem: [<--bloco 0146-------------------------------------------------->] +31435 ms: T9 escrevendo bloco 146 +31483 ms: T10 leu bloco 130 +31483 ms: T10 bloco 125 tem: [<--bloco 0125-------------------------------------------------->] +31483 ms: T10 bloco 130 tem: [<--bloco 0130-------------------------------------------------->] +31483 ms: T10 escrevendo bloco 130 +31635 ms: T3 escreveu bloco 242 +31635 ms: T3 escrevendo bloco 13 +31704 ms: T4 escreveu bloco 226 +31704 ms: T4 escrevendo bloco 29 +31758 ms: T5 escreveu bloco 210 +31758 ms: T5 escrevendo bloco 45 +31821 ms: T6 escreveu bloco 194 +31821 ms: T6 escrevendo bloco 61 +31870 ms: T7 escreveu bloco 178 +31871 ms: T7 escrevendo bloco 77 +31921 ms: T8 escreveu bloco 162 +31921 ms: T8 escrevendo bloco 93 +31985 ms: T9 escreveu bloco 146 +31985 ms: T9 escrevendo bloco 109 +32041 ms: T10 escreveu bloco 130 +32041 ms: T10 escrevendo bloco 125 +32220 ms: T3 escreveu bloco 13 +32220 ms: T3 lendo bloco 14 +32279 ms: T4 escreveu bloco 29 +32279 ms: T4 lendo bloco 30 +32330 ms: T5 escreveu bloco 45 +32330 ms: T5 lendo bloco 46 +32388 ms: T6 escreveu bloco 61 +32388 ms: T6 lendo bloco 62 +32444 ms: T7 escreveu bloco 77 +32444 ms: T7 lendo bloco 78 +32499 ms: T8 escreveu bloco 93 +32500 ms: T8 lendo bloco 94 +32556 ms: T9 escreveu bloco 109 +32556 ms: T9 lendo bloco 110 +32624 ms: T10 escreveu bloco 125 +32624 ms: T10 lendo bloco 126 +32794 ms: T3 leu bloco 14 +32794 ms: T3 lendo bloco 241 +32855 ms: T4 leu bloco 30 +32855 ms: T4 lendo bloco 225 +32911 ms: T5 leu bloco 46 +32911 ms: T5 lendo bloco 209 +32981 ms: T6 leu bloco 62 +32981 ms: T6 lendo bloco 193 +33049 ms: T7 leu bloco 78 +33049 ms: T7 lendo bloco 177 +33098 ms: T8 leu bloco 94 +33098 ms: T8 lendo bloco 161 +33151 ms: T9 leu bloco 110 +33151 ms: T9 lendo bloco 145 +33222 ms: T10 leu bloco 126 +33222 ms: T10 lendo bloco 129 +33381 ms: T3 leu bloco 241 +33381 ms: T3 bloco 14 tem: [<--bloco 0014-------------------------------------------------->] +33381 ms: T3 bloco 241 tem: [<--bloco 0241-------------------------------------------------->] +33381 ms: T3 escrevendo bloco 241 +33442 ms: T4 leu bloco 225 +33443 ms: T4 bloco 30 tem: [<--bloco 0030-------------------------------------------------->] +33443 ms: T4 bloco 225 tem: [<--bloco 0225-------------------------------------------------->] +33443 ms: T4 escrevendo bloco 225 +33502 ms: T5 leu bloco 209 +33502 ms: T5 bloco 46 tem: [<--bloco 0046-------------------------------------------------->] +33502 ms: T5 bloco 209 tem: [<--bloco 0209-------------------------------------------------->] +33502 ms: T5 escrevendo bloco 209 +33569 ms: T6 leu bloco 193 +33569 ms: T6 bloco 62 tem: [<--bloco 0062-------------------------------------------------->] +33569 ms: T6 bloco 193 tem: [<--bloco 0193-------------------------------------------------->] +33569 ms: T6 escrevendo bloco 193 +33635 ms: T7 leu bloco 177 +33635 ms: T7 bloco 78 tem: [<--bloco 0078-------------------------------------------------->] +33635 ms: T7 bloco 177 tem: [<--bloco 0177-------------------------------------------------->] +33635 ms: T7 escrevendo bloco 177 +33688 ms: T8 leu bloco 161 +33688 ms: T8 bloco 94 tem: [<--bloco 0094-------------------------------------------------->] +33688 ms: T8 bloco 161 tem: [<--bloco 0161-------------------------------------------------->] +33688 ms: T8 escrevendo bloco 161 +33753 ms: T9 leu bloco 145 +33753 ms: T9 bloco 110 tem: [<--bloco 0110-------------------------------------------------->] +33753 ms: T9 bloco 145 tem: [<--bloco 0145-------------------------------------------------->] +33753 ms: T9 escrevendo bloco 145 +33818 ms: T10 leu bloco 129 +33818 ms: T10 bloco 126 tem: [<--bloco 0126-------------------------------------------------->] +33818 ms: T10 bloco 129 tem: [<--bloco 0129-------------------------------------------------->] +33818 ms: T10 escrevendo bloco 129 +33992 ms: T3 escreveu bloco 241 +33992 ms: T3 escrevendo bloco 14 +34061 ms: T4 escreveu bloco 225 +34061 ms: T4 escrevendo bloco 30 +34118 ms: T5 escreveu bloco 209 +34118 ms: T5 escrevendo bloco 46 +34166 ms: T6 escreveu bloco 193 +34166 ms: T6 escrevendo bloco 62 +34238 ms: T7 escreveu bloco 177 +34238 ms: T7 escrevendo bloco 78 +34285 ms: T8 escreveu bloco 161 +34285 ms: T8 escrevendo bloco 94 +34339 ms: T9 escreveu bloco 145 +34339 ms: T9 escrevendo bloco 110 +34406 ms: T10 escreveu bloco 129 +34406 ms: T10 escrevendo bloco 126 +34567 ms: T3 escreveu bloco 14 +34568 ms: T3 lendo bloco 15 +34626 ms: T4 escreveu bloco 30 +34626 ms: T4 lendo bloco 31 +34677 ms: T5 escreveu bloco 46 +34677 ms: T5 lendo bloco 47 +34741 ms: T6 escreveu bloco 62 +34741 ms: T6 lendo bloco 63 +34803 ms: T7 escreveu bloco 78 +34803 ms: T7 lendo bloco 79 +34860 ms: T8 escreveu bloco 94 +34860 ms: T8 lendo bloco 95 +34915 ms: T9 escreveu bloco 110 +34916 ms: T9 lendo bloco 111 +34974 ms: T10 escreveu bloco 126 +34974 ms: T10 lendo bloco 127 +35148 ms: T3 leu bloco 15 +35148 ms: T3 lendo bloco 240 +35213 ms: T4 leu bloco 31 +35213 ms: T4 lendo bloco 224 +35267 ms: T5 leu bloco 47 +35267 ms: T5 lendo bloco 208 +35335 ms: T6 leu bloco 63 +35335 ms: T6 lendo bloco 192 +35398 ms: T7 leu bloco 79 +35398 ms: T7 lendo bloco 176 +35456 ms: T8 leu bloco 95 +35456 ms: T8 lendo bloco 160 +35518 ms: T9 leu bloco 111 +35518 ms: T9 lendo bloco 144 +35590 ms: T10 leu bloco 127 +35590 ms: T10 lendo bloco 128 +35740 ms: T3 leu bloco 240 +35740 ms: T3 bloco 15 tem: [<--bloco 0015-------------------------------------------------->] +35740 ms: T3 bloco 240 tem: [<--bloco 0240-------------------------------------------------->] +35740 ms: T3 escrevendo bloco 240 +35789 ms: T4 leu bloco 224 +35789 ms: T4 bloco 31 tem: [<--bloco 0031-------------------------------------------------->] +35789 ms: T4 bloco 224 tem: [<--bloco 0224-------------------------------------------------->] +35789 ms: T4 escrevendo bloco 224 +35852 ms: T5 leu bloco 208 +35852 ms: T5 bloco 47 tem: [<--bloco 0047-------------------------------------------------->] +35853 ms: T5 bloco 208 tem: [<--bloco 0208-------------------------------------------------->] +35853 ms: T5 escrevendo bloco 208 +35915 ms: T6 leu bloco 192 +35915 ms: T6 bloco 63 tem: [<--bloco 0063-------------------------------------------------->] +35916 ms: T6 bloco 192 tem: [<--bloco 0192-------------------------------------------------->] +35916 ms: T6 escrevendo bloco 192 +35968 ms: T7 leu bloco 176 +35968 ms: T7 bloco 79 tem: [<--bloco 0079-------------------------------------------------->] +35968 ms: T7 bloco 176 tem: [<--bloco 0176-------------------------------------------------->] +35968 ms: T7 escrevendo bloco 176 +36024 ms: T8 leu bloco 160 +36024 ms: T8 bloco 95 tem: [<--bloco 0095-------------------------------------------------->] +36024 ms: T8 bloco 160 tem: [<--bloco 0160-------------------------------------------------->] +36024 ms: T8 escrevendo bloco 160 +36080 ms: T9 leu bloco 144 +36080 ms: T9 bloco 111 tem: [<--bloco 0111-------------------------------------------------->] +36080 ms: T9 bloco 144 tem: [<--bloco 0144-------------------------------------------------->] +36080 ms: T9 escrevendo bloco 144 +36129 ms: T10 leu bloco 128 +36129 ms: T10 bloco 127 tem: [<--bloco 0127-------------------------------------------------->] +36129 ms: T10 bloco 128 tem: [<--bloco 0128-------------------------------------------------->] +36129 ms: T10 escrevendo bloco 128 +36283 ms: T3 escreveu bloco 240 +36283 ms: T3 escrevendo bloco 15 +36345 ms: T4 escreveu bloco 224 +36345 ms: T4 escrevendo bloco 31 +36418 ms: T5 escreveu bloco 208 +36418 ms: T5 escrevendo bloco 47 +36465 ms: T6 escreveu bloco 192 +36465 ms: T6 escrevendo bloco 63 +36528 ms: T7 escreveu bloco 176 +36528 ms: T7 escrevendo bloco 79 +36582 ms: T8 escreveu bloco 160 +36582 ms: T8 escrevendo bloco 95 +36650 ms: T9 escreveu bloco 144 +36650 ms: T9 escrevendo bloco 111 +36717 ms: T10 escreveu bloco 128 +36717 ms: T10 escrevendo bloco 127 +36882 ms: T3 escreveu bloco 15 +36882 ms: T3 terminou +PPOS: task 3 ((null)), 36882 ms run, 6 ms cpu, 65 acts, exit code 0 +36951 ms: T4 escreveu bloco 31 +36951 ms: T4 terminou +PPOS: task 4 ((null)), 36951 ms run, 9 ms cpu, 65 acts, exit code 0 +37009 ms: T5 escreveu bloco 47 +37009 ms: T5 terminou +PPOS: task 5 ((null)), 37009 ms run, 7 ms cpu, 65 acts, exit code 0 +37059 ms: T6 escreveu bloco 63 +37060 ms: T6 terminou +PPOS: task 6 ((null)), 37060 ms run, 4 ms cpu, 65 acts, exit code 0 +37113 ms: T7 escreveu bloco 79 +37113 ms: T7 terminou +PPOS: task 7 ((null)), 37113 ms run, 6 ms cpu, 65 acts, exit code 0 +37179 ms: T8 escreveu bloco 95 +37179 ms: T8 terminou +PPOS: task 8 ((null)), 37179 ms run, 5 ms cpu, 65 acts, exit code 0 +37237 ms: T9 escreveu bloco 111 +37237 ms: T9 terminou +PPOS: task 9 ((null)), 37238 ms run, 6 ms cpu, 65 acts, exit code 0 +37290 ms: T10 escreveu bloco 127 +37290 ms: T10 terminou +PPOS: task 10 ((null)), 37290 ms run, 8 ms cpu, 65 acts, exit code 0 +37290 ms: user_main fim +PPOS: task 1 (user_main), 37290 ms run, 0 ms cpu, 9 acts, exit code 0 +PPOS: task 0 (kernel), 37290 ms run, 37236 ms cpu, 1547 acts, exit code 0 +PPOS: system terminating +PPOS: disk driver terminated (256 blocks read, 256 blocks written) +PPOS: system terminated (uptime 37290 ms) diff --git a/test/pingpong-disco.c b/test/pingpong-disco.c @@ -0,0 +1,84 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Teste das operações de acesso a disco com uma única tarefa, +// que lê e escreve/altera todos os blocos do disco. + +#include <assert.h> +#include "lib/pplibc.h" +#include "syscall.h" + +static int num_blk; // numero de blocos no disco +static int blk_size; // tamanho de cada bloco (bytes) + +// corpo da tarefa principal +void user_main(void *arg) +{ + int status, id; + char *name; + unsigned char c, *buffer; + + name = task_name(NULL); + id = task_id(NULL); + printk("%5u ms: %s (id %d): inicio\n", time(), name, id); + + // busca geometria do disco + num_blk = block_blocks(); + assert(num_blk); + blk_size = block_size(); + assert(blk_size); + + printk("%5u ms: disco contem %d blocos de %d bytes cada\n", + time(), num_blk, blk_size); + + // aloca o buffer para ler blocos do disco + buffer = mem_alloc(blk_size); + assert(buffer); + + // lê e imprime todos os blocos do disco, um a um + for (int i = 0; i < num_blk; i++) + { + // lê o bloco i do disco no buffer + printk("%5u ms: lendo bloco %d\n", time(), i); + status = block_read(i, buffer); + if (status) + printk("Erro ao ler bloco %d!\n", i); + + // mostra o conteudo do buffer + printk("%5u ms: buffer: [", time()); + for (int j = 0; j < blk_size; j++) + printk("%c", buffer[j]); + printk("]\n"); + } + + // inicia gerador de números aleatórios + randseed(time()); + + // lê e imprime todos os blocos do disco, um a um + for (int i = 0; i < num_blk; i++) + { + + // preenche o buffer com um caractere aleatório + c = 32 + randnum() % 48; + for (int j = 0; j < blk_size; j++) + buffer[j] = c; + + // escreve o buffer no bloco i do disco + printk("%5u ms: escrevendo bloco %d com caracteres \"%c\"\n", + time(), i, c); + status = block_write(i, buffer); + if (status) + printk("Erro ao escrever bloco %d!\n", i); + } + + // libera o buffer de blocos do disco + mem_free(buffer); + + printk("%5u ms: %s fim\n", time(), name); + + task_exit(NOERROR); +} diff --git a/test/pingpong-disco.txt b/test/pingpong-disco.txt @@ -0,0 +1,779 @@ +PPOS: system initializing +PPOS: disk driver ready (disk has 256 blocks of 64 bytes each) +PPOS: system ready (uptime 0 ms) + 0 ms: user_main (id 1): inicio + 0 ms: disco contem 256 blocos de 64 bytes cada + 0 ms: lendo bloco 0 + 37 ms: buffer: [<--bloco 0000-------------------------------------------------->] + 37 ms: lendo bloco 1 + 69 ms: buffer: [<--bloco 0001-------------------------------------------------->] + 69 ms: lendo bloco 2 + 120 ms: buffer: [<--bloco 0002-------------------------------------------------->] + 120 ms: lendo bloco 3 + 154 ms: buffer: [<--bloco 0003-------------------------------------------------->] + 154 ms: lendo bloco 4 + 205 ms: buffer: [<--bloco 0004-------------------------------------------------->] + 205 ms: lendo bloco 5 + 238 ms: buffer: [<--bloco 0005-------------------------------------------------->] + 238 ms: lendo bloco 6 + 273 ms: buffer: [<--bloco 0006-------------------------------------------------->] + 273 ms: lendo bloco 7 + 306 ms: buffer: [<--bloco 0007-------------------------------------------------->] + 306 ms: lendo bloco 8 + 361 ms: buffer: [<--bloco 0008-------------------------------------------------->] + 361 ms: lendo bloco 9 + 401 ms: buffer: [<--bloco 0009-------------------------------------------------->] + 401 ms: lendo bloco 10 + 453 ms: buffer: [<--bloco 0010-------------------------------------------------->] + 453 ms: lendo bloco 11 + 508 ms: buffer: [<--bloco 0011-------------------------------------------------->] + 508 ms: lendo bloco 12 + 554 ms: buffer: [<--bloco 0012-------------------------------------------------->] + 554 ms: lendo bloco 13 + 601 ms: buffer: [<--bloco 0013-------------------------------------------------->] + 601 ms: lendo bloco 14 + 643 ms: buffer: [<--bloco 0014-------------------------------------------------->] + 643 ms: lendo bloco 15 + 691 ms: buffer: [<--bloco 0015-------------------------------------------------->] + 691 ms: lendo bloco 16 + 728 ms: buffer: [<--bloco 0016-------------------------------------------------->] + 728 ms: lendo bloco 17 + 781 ms: buffer: [<--bloco 0017-------------------------------------------------->] + 781 ms: lendo bloco 18 + 817 ms: buffer: [<--bloco 0018-------------------------------------------------->] + 817 ms: lendo bloco 19 + 870 ms: buffer: [<--bloco 0019-------------------------------------------------->] + 870 ms: lendo bloco 20 + 927 ms: buffer: [<--bloco 0020-------------------------------------------------->] + 927 ms: lendo bloco 21 + 976 ms: buffer: [<--bloco 0021-------------------------------------------------->] + 976 ms: lendo bloco 22 + 1033 ms: buffer: [<--bloco 0022-------------------------------------------------->] + 1033 ms: lendo bloco 23 + 1089 ms: buffer: [<--bloco 0023-------------------------------------------------->] + 1089 ms: lendo bloco 24 + 1135 ms: buffer: [<--bloco 0024-------------------------------------------------->] + 1135 ms: lendo bloco 25 + 1183 ms: buffer: [<--bloco 0025-------------------------------------------------->] + 1183 ms: lendo bloco 26 + 1239 ms: buffer: [<--bloco 0026-------------------------------------------------->] + 1239 ms: lendo bloco 27 + 1280 ms: buffer: [<--bloco 0027-------------------------------------------------->] + 1280 ms: lendo bloco 28 + 1314 ms: buffer: [<--bloco 0028-------------------------------------------------->] + 1314 ms: lendo bloco 29 + 1359 ms: buffer: [<--bloco 0029-------------------------------------------------->] + 1359 ms: lendo bloco 30 + 1395 ms: buffer: [<--bloco 0030-------------------------------------------------->] + 1395 ms: lendo bloco 31 + 1434 ms: buffer: [<--bloco 0031-------------------------------------------------->] + 1434 ms: lendo bloco 32 + 1481 ms: buffer: [<--bloco 0032-------------------------------------------------->] + 1481 ms: lendo bloco 33 + 1534 ms: buffer: [<--bloco 0033-------------------------------------------------->] + 1534 ms: lendo bloco 34 + 1570 ms: buffer: [<--bloco 0034-------------------------------------------------->] + 1570 ms: lendo bloco 35 + 1607 ms: buffer: [<--bloco 0035-------------------------------------------------->] + 1607 ms: lendo bloco 36 + 1663 ms: buffer: [<--bloco 0036-------------------------------------------------->] + 1663 ms: lendo bloco 37 + 1704 ms: buffer: [<--bloco 0037-------------------------------------------------->] + 1704 ms: lendo bloco 38 + 1739 ms: buffer: [<--bloco 0038-------------------------------------------------->] + 1739 ms: lendo bloco 39 + 1793 ms: buffer: [<--bloco 0039-------------------------------------------------->] + 1793 ms: lendo bloco 40 + 1839 ms: buffer: [<--bloco 0040-------------------------------------------------->] + 1839 ms: lendo bloco 41 + 1895 ms: buffer: [<--bloco 0041-------------------------------------------------->] + 1895 ms: lendo bloco 42 + 1943 ms: buffer: [<--bloco 0042-------------------------------------------------->] + 1943 ms: lendo bloco 43 + 1976 ms: buffer: [<--bloco 0043-------------------------------------------------->] + 1976 ms: lendo bloco 44 + 2018 ms: buffer: [<--bloco 0044-------------------------------------------------->] + 2018 ms: lendo bloco 45 + 2073 ms: buffer: [<--bloco 0045-------------------------------------------------->] + 2073 ms: lendo bloco 46 + 2119 ms: buffer: [<--bloco 0046-------------------------------------------------->] + 2119 ms: lendo bloco 47 + 2167 ms: buffer: [<--bloco 0047-------------------------------------------------->] + 2167 ms: lendo bloco 48 + 2213 ms: buffer: [<--bloco 0048-------------------------------------------------->] + 2213 ms: lendo bloco 49 + 2265 ms: buffer: [<--bloco 0049-------------------------------------------------->] + 2265 ms: lendo bloco 50 + 2304 ms: buffer: [<--bloco 0050-------------------------------------------------->] + 2304 ms: lendo bloco 51 + 2348 ms: buffer: [<--bloco 0051-------------------------------------------------->] + 2348 ms: lendo bloco 52 + 2389 ms: buffer: [<--bloco 0052-------------------------------------------------->] + 2389 ms: lendo bloco 53 + 2428 ms: buffer: [<--bloco 0053-------------------------------------------------->] + 2428 ms: lendo bloco 54 + 2470 ms: buffer: [<--bloco 0054-------------------------------------------------->] + 2470 ms: lendo bloco 55 + 2525 ms: buffer: [<--bloco 0055-------------------------------------------------->] + 2526 ms: lendo bloco 56 + 2578 ms: buffer: [<--bloco 0056-------------------------------------------------->] + 2578 ms: lendo bloco 57 + 2614 ms: buffer: [<--bloco 0057-------------------------------------------------->] + 2614 ms: lendo bloco 58 + 2652 ms: buffer: [<--bloco 0058-------------------------------------------------->] + 2652 ms: lendo bloco 59 + 2704 ms: buffer: [<--bloco 0059-------------------------------------------------->] + 2705 ms: lendo bloco 60 + 2755 ms: buffer: [<--bloco 0060-------------------------------------------------->] + 2755 ms: lendo bloco 61 + 2799 ms: buffer: [<--bloco 0061-------------------------------------------------->] + 2799 ms: lendo bloco 62 + 2831 ms: buffer: [<--bloco 0062-------------------------------------------------->] + 2831 ms: lendo bloco 63 + 2871 ms: buffer: [<--bloco 0063-------------------------------------------------->] + 2871 ms: lendo bloco 64 + 2907 ms: buffer: [<--bloco 0064-------------------------------------------------->] + 2907 ms: lendo bloco 65 + 2941 ms: buffer: [<--bloco 0065-------------------------------------------------->] + 2941 ms: lendo bloco 66 + 2982 ms: buffer: [<--bloco 0066-------------------------------------------------->] + 2982 ms: lendo bloco 67 + 3017 ms: buffer: [<--bloco 0067-------------------------------------------------->] + 3017 ms: lendo bloco 68 + 3058 ms: buffer: [<--bloco 0068-------------------------------------------------->] + 3058 ms: lendo bloco 69 + 3102 ms: buffer: [<--bloco 0069-------------------------------------------------->] + 3102 ms: lendo bloco 70 + 3156 ms: buffer: [<--bloco 0070-------------------------------------------------->] + 3157 ms: lendo bloco 71 + 3210 ms: buffer: [<--bloco 0071-------------------------------------------------->] + 3210 ms: lendo bloco 72 + 3248 ms: buffer: [<--bloco 0072-------------------------------------------------->] + 3248 ms: lendo bloco 73 + 3292 ms: buffer: [<--bloco 0073-------------------------------------------------->] + 3292 ms: lendo bloco 74 + 3348 ms: buffer: [<--bloco 0074-------------------------------------------------->] + 3348 ms: lendo bloco 75 + 3397 ms: buffer: [<--bloco 0075-------------------------------------------------->] + 3397 ms: lendo bloco 76 + 3435 ms: buffer: [<--bloco 0076-------------------------------------------------->] + 3435 ms: lendo bloco 77 + 3476 ms: buffer: [<--bloco 0077-------------------------------------------------->] + 3476 ms: lendo bloco 78 + 3510 ms: buffer: [<--bloco 0078-------------------------------------------------->] + 3510 ms: lendo bloco 79 + 3564 ms: buffer: [<--bloco 0079-------------------------------------------------->] + 3564 ms: lendo bloco 80 + 3595 ms: buffer: [<--bloco 0080-------------------------------------------------->] + 3595 ms: lendo bloco 81 + 3634 ms: buffer: [<--bloco 0081-------------------------------------------------->] + 3634 ms: lendo bloco 82 + 3674 ms: buffer: [<--bloco 0082-------------------------------------------------->] + 3674 ms: lendo bloco 83 + 3714 ms: buffer: [<--bloco 0083-------------------------------------------------->] + 3714 ms: lendo bloco 84 + 3760 ms: buffer: [<--bloco 0084-------------------------------------------------->] + 3760 ms: lendo bloco 85 + 3808 ms: buffer: [<--bloco 0085-------------------------------------------------->] + 3808 ms: lendo bloco 86 + 3842 ms: buffer: [<--bloco 0086-------------------------------------------------->] + 3842 ms: lendo bloco 87 + 3884 ms: buffer: [<--bloco 0087-------------------------------------------------->] + 3884 ms: lendo bloco 88 + 3937 ms: buffer: [<--bloco 0088-------------------------------------------------->] + 3937 ms: lendo bloco 89 + 3978 ms: buffer: [<--bloco 0089-------------------------------------------------->] + 3978 ms: lendo bloco 90 + 4013 ms: buffer: [<--bloco 0090-------------------------------------------------->] + 4013 ms: lendo bloco 91 + 4059 ms: buffer: [<--bloco 0091-------------------------------------------------->] + 4059 ms: lendo bloco 92 + 4110 ms: buffer: [<--bloco 0092-------------------------------------------------->] + 4110 ms: lendo bloco 93 + 4143 ms: buffer: [<--bloco 0093-------------------------------------------------->] + 4143 ms: lendo bloco 94 + 4193 ms: buffer: [<--bloco 0094-------------------------------------------------->] + 4193 ms: lendo bloco 95 + 4250 ms: buffer: [<--bloco 0095-------------------------------------------------->] + 4250 ms: lendo bloco 96 + 4282 ms: buffer: [<--bloco 0096-------------------------------------------------->] + 4282 ms: lendo bloco 97 + 4316 ms: buffer: [<--bloco 0097-------------------------------------------------->] + 4316 ms: lendo bloco 98 + 4373 ms: buffer: [<--bloco 0098-------------------------------------------------->] + 4374 ms: lendo bloco 99 + 4416 ms: buffer: [<--bloco 0099-------------------------------------------------->] + 4416 ms: lendo bloco 100 + 4460 ms: buffer: [<--bloco 0100-------------------------------------------------->] + 4460 ms: lendo bloco 101 + 4511 ms: buffer: [<--bloco 0101-------------------------------------------------->] + 4511 ms: lendo bloco 102 + 4549 ms: buffer: [<--bloco 0102-------------------------------------------------->] + 4549 ms: lendo bloco 103 + 4600 ms: buffer: [<--bloco 0103-------------------------------------------------->] + 4600 ms: lendo bloco 104 + 4632 ms: buffer: [<--bloco 0104-------------------------------------------------->] + 4632 ms: lendo bloco 105 + 4665 ms: buffer: [<--bloco 0105-------------------------------------------------->] + 4665 ms: lendo bloco 106 + 4703 ms: buffer: [<--bloco 0106-------------------------------------------------->] + 4703 ms: lendo bloco 107 + 4743 ms: buffer: [<--bloco 0107-------------------------------------------------->] + 4743 ms: lendo bloco 108 + 4783 ms: buffer: [<--bloco 0108-------------------------------------------------->] + 4783 ms: lendo bloco 109 + 4821 ms: buffer: [<--bloco 0109-------------------------------------------------->] + 4821 ms: lendo bloco 110 + 4857 ms: buffer: [<--bloco 0110-------------------------------------------------->] + 4857 ms: lendo bloco 111 + 4893 ms: buffer: [<--bloco 0111-------------------------------------------------->] + 4893 ms: lendo bloco 112 + 4940 ms: buffer: [<--bloco 0112-------------------------------------------------->] + 4940 ms: lendo bloco 113 + 4982 ms: buffer: [<--bloco 0113-------------------------------------------------->] + 4982 ms: lendo bloco 114 + 5024 ms: buffer: [<--bloco 0114-------------------------------------------------->] + 5024 ms: lendo bloco 115 + 5056 ms: buffer: [<--bloco 0115-------------------------------------------------->] + 5056 ms: lendo bloco 116 + 5088 ms: buffer: [<--bloco 0116-------------------------------------------------->] + 5088 ms: lendo bloco 117 + 5133 ms: buffer: [<--bloco 0117-------------------------------------------------->] + 5134 ms: lendo bloco 118 + 5171 ms: buffer: [<--bloco 0118-------------------------------------------------->] + 5171 ms: lendo bloco 119 + 5225 ms: buffer: [<--bloco 0119-------------------------------------------------->] + 5225 ms: lendo bloco 120 + 5278 ms: buffer: [<--bloco 0120-------------------------------------------------->] + 5278 ms: lendo bloco 121 + 5315 ms: buffer: [<--bloco 0121-------------------------------------------------->] + 5315 ms: lendo bloco 122 + 5355 ms: buffer: [<--bloco 0122-------------------------------------------------->] + 5355 ms: lendo bloco 123 + 5401 ms: buffer: [<--bloco 0123-------------------------------------------------->] + 5401 ms: lendo bloco 124 + 5440 ms: buffer: [<--bloco 0124-------------------------------------------------->] + 5440 ms: lendo bloco 125 + 5472 ms: buffer: [<--bloco 0125-------------------------------------------------->] + 5472 ms: lendo bloco 126 + 5515 ms: buffer: [<--bloco 0126-------------------------------------------------->] + 5515 ms: lendo bloco 127 + 5552 ms: buffer: [<--bloco 0127-------------------------------------------------->] + 5552 ms: lendo bloco 128 + 5583 ms: buffer: [<--bloco 0128-------------------------------------------------->] + 5583 ms: lendo bloco 129 + 5620 ms: buffer: [<--bloco 0129-------------------------------------------------->] + 5620 ms: lendo bloco 130 + 5665 ms: buffer: [<--bloco 0130-------------------------------------------------->] + 5665 ms: lendo bloco 131 + 5706 ms: buffer: [<--bloco 0131-------------------------------------------------->] + 5706 ms: lendo bloco 132 + 5763 ms: buffer: [<--bloco 0132-------------------------------------------------->] + 5763 ms: lendo bloco 133 + 5812 ms: buffer: [<--bloco 0133-------------------------------------------------->] + 5812 ms: lendo bloco 134 + 5843 ms: buffer: [<--bloco 0134-------------------------------------------------->] + 5843 ms: lendo bloco 135 + 5874 ms: buffer: [<--bloco 0135-------------------------------------------------->] + 5874 ms: lendo bloco 136 + 5921 ms: buffer: [<--bloco 0136-------------------------------------------------->] + 5921 ms: lendo bloco 137 + 5960 ms: buffer: [<--bloco 0137-------------------------------------------------->] + 5960 ms: lendo bloco 138 + 5997 ms: buffer: [<--bloco 0138-------------------------------------------------->] + 5997 ms: lendo bloco 139 + 6053 ms: buffer: [<--bloco 0139-------------------------------------------------->] + 6053 ms: lendo bloco 140 + 6095 ms: buffer: [<--bloco 0140-------------------------------------------------->] + 6095 ms: lendo bloco 141 + 6137 ms: buffer: [<--bloco 0141-------------------------------------------------->] + 6137 ms: lendo bloco 142 + 6168 ms: buffer: [<--bloco 0142-------------------------------------------------->] + 6168 ms: lendo bloco 143 + 6225 ms: buffer: [<--bloco 0143-------------------------------------------------->] + 6225 ms: lendo bloco 144 + 6274 ms: buffer: [<--bloco 0144-------------------------------------------------->] + 6275 ms: lendo bloco 145 + 6317 ms: buffer: [<--bloco 0145-------------------------------------------------->] + 6317 ms: lendo bloco 146 + 6348 ms: buffer: [<--bloco 0146-------------------------------------------------->] + 6348 ms: lendo bloco 147 + 6398 ms: buffer: [<--bloco 0147-------------------------------------------------->] + 6398 ms: lendo bloco 148 + 6455 ms: buffer: [<--bloco 0148-------------------------------------------------->] + 6455 ms: lendo bloco 149 + 6492 ms: buffer: [<--bloco 0149-------------------------------------------------->] + 6492 ms: lendo bloco 150 + 6537 ms: buffer: [<--bloco 0150-------------------------------------------------->] + 6537 ms: lendo bloco 151 + 6589 ms: buffer: [<--bloco 0151-------------------------------------------------->] + 6589 ms: lendo bloco 152 + 6629 ms: buffer: [<--bloco 0152-------------------------------------------------->] + 6629 ms: lendo bloco 153 + 6677 ms: buffer: [<--bloco 0153-------------------------------------------------->] + 6677 ms: lendo bloco 154 + 6714 ms: buffer: [<--bloco 0154-------------------------------------------------->] + 6714 ms: lendo bloco 155 + 6760 ms: buffer: [<--bloco 0155-------------------------------------------------->] + 6760 ms: lendo bloco 156 + 6805 ms: buffer: [<--bloco 0156-------------------------------------------------->] + 6805 ms: lendo bloco 157 + 6850 ms: buffer: [<--bloco 0157-------------------------------------------------->] + 6850 ms: lendo bloco 158 + 6902 ms: buffer: [<--bloco 0158-------------------------------------------------->] + 6902 ms: lendo bloco 159 + 6948 ms: buffer: [<--bloco 0159-------------------------------------------------->] + 6948 ms: lendo bloco 160 + 6999 ms: buffer: [<--bloco 0160-------------------------------------------------->] + 6999 ms: lendo bloco 161 + 7038 ms: buffer: [<--bloco 0161-------------------------------------------------->] + 7039 ms: lendo bloco 162 + 7092 ms: buffer: [<--bloco 0162-------------------------------------------------->] + 7092 ms: lendo bloco 163 + 7138 ms: buffer: [<--bloco 0163-------------------------------------------------->] + 7138 ms: lendo bloco 164 + 7169 ms: buffer: [<--bloco 0164-------------------------------------------------->] + 7169 ms: lendo bloco 165 + 7223 ms: buffer: [<--bloco 0165-------------------------------------------------->] + 7223 ms: lendo bloco 166 + 7270 ms: buffer: [<--bloco 0166-------------------------------------------------->] + 7270 ms: lendo bloco 167 + 7314 ms: buffer: [<--bloco 0167-------------------------------------------------->] + 7314 ms: lendo bloco 168 + 7350 ms: buffer: [<--bloco 0168-------------------------------------------------->] + 7350 ms: lendo bloco 169 + 7399 ms: buffer: [<--bloco 0169-------------------------------------------------->] + 7399 ms: lendo bloco 170 + 7441 ms: buffer: [<--bloco 0170-------------------------------------------------->] + 7441 ms: lendo bloco 171 + 7484 ms: buffer: [<--bloco 0171-------------------------------------------------->] + 7484 ms: lendo bloco 172 + 7540 ms: buffer: [<--bloco 0172-------------------------------------------------->] + 7540 ms: lendo bloco 173 + 7583 ms: buffer: [<--bloco 0173-------------------------------------------------->] + 7583 ms: lendo bloco 174 + 7626 ms: buffer: [<--bloco 0174-------------------------------------------------->] + 7626 ms: lendo bloco 175 + 7674 ms: buffer: [<--bloco 0175-------------------------------------------------->] + 7674 ms: lendo bloco 176 + 7725 ms: buffer: [<--bloco 0176-------------------------------------------------->] + 7725 ms: lendo bloco 177 + 7764 ms: buffer: [<--bloco 0177-------------------------------------------------->] + 7764 ms: lendo bloco 178 + 7804 ms: buffer: [<--bloco 0178-------------------------------------------------->] + 7804 ms: lendo bloco 179 + 7854 ms: buffer: [<--bloco 0179-------------------------------------------------->] + 7854 ms: lendo bloco 180 + 7897 ms: buffer: [<--bloco 0180-------------------------------------------------->] + 7897 ms: lendo bloco 181 + 7947 ms: buffer: [<--bloco 0181-------------------------------------------------->] + 7947 ms: lendo bloco 182 + 7988 ms: buffer: [<--bloco 0182-------------------------------------------------->] + 7988 ms: lendo bloco 183 + 8040 ms: buffer: [<--bloco 0183-------------------------------------------------->] + 8040 ms: lendo bloco 184 + 8080 ms: buffer: [<--bloco 0184-------------------------------------------------->] + 8080 ms: lendo bloco 185 + 8124 ms: buffer: [<--bloco 0185-------------------------------------------------->] + 8124 ms: lendo bloco 186 + 8163 ms: buffer: [<--bloco 0186-------------------------------------------------->] + 8163 ms: lendo bloco 187 + 8218 ms: buffer: [<--bloco 0187-------------------------------------------------->] + 8218 ms: lendo bloco 188 + 8250 ms: buffer: [<--bloco 0188-------------------------------------------------->] + 8250 ms: lendo bloco 189 + 8283 ms: buffer: [<--bloco 0189-------------------------------------------------->] + 8283 ms: lendo bloco 190 + 8322 ms: buffer: [<--bloco 0190-------------------------------------------------->] + 8322 ms: lendo bloco 191 + 8374 ms: buffer: [<--bloco 0191-------------------------------------------------->] + 8374 ms: lendo bloco 192 + 8413 ms: buffer: [<--bloco 0192-------------------------------------------------->] + 8413 ms: lendo bloco 193 + 8448 ms: buffer: [<--bloco 0193-------------------------------------------------->] + 8448 ms: lendo bloco 194 + 8486 ms: buffer: [<--bloco 0194-------------------------------------------------->] + 8486 ms: lendo bloco 195 + 8520 ms: buffer: [<--bloco 0195-------------------------------------------------->] + 8520 ms: lendo bloco 196 + 8551 ms: buffer: [<--bloco 0196-------------------------------------------------->] + 8551 ms: lendo bloco 197 + 8606 ms: buffer: [<--bloco 0197-------------------------------------------------->] + 8606 ms: lendo bloco 198 + 8653 ms: buffer: [<--bloco 0198-------------------------------------------------->] + 8653 ms: lendo bloco 199 + 8684 ms: buffer: [<--bloco 0199-------------------------------------------------->] + 8684 ms: lendo bloco 200 + 8730 ms: buffer: [<--bloco 0200-------------------------------------------------->] + 8730 ms: lendo bloco 201 + 8785 ms: buffer: [<--bloco 0201-------------------------------------------------->] + 8785 ms: lendo bloco 202 + 8829 ms: buffer: [<--bloco 0202-------------------------------------------------->] + 8830 ms: lendo bloco 203 + 8874 ms: buffer: [<--bloco 0203-------------------------------------------------->] + 8874 ms: lendo bloco 204 + 8910 ms: buffer: [<--bloco 0204-------------------------------------------------->] + 8910 ms: lendo bloco 205 + 8962 ms: buffer: [<--bloco 0205-------------------------------------------------->] + 8962 ms: lendo bloco 206 + 9019 ms: buffer: [<--bloco 0206-------------------------------------------------->] + 9019 ms: lendo bloco 207 + 9076 ms: buffer: [<--bloco 0207-------------------------------------------------->] + 9076 ms: lendo bloco 208 + 9110 ms: buffer: [<--bloco 0208-------------------------------------------------->] + 9110 ms: lendo bloco 209 + 9146 ms: buffer: [<--bloco 0209-------------------------------------------------->] + 9146 ms: lendo bloco 210 + 9191 ms: buffer: [<--bloco 0210-------------------------------------------------->] + 9191 ms: lendo bloco 211 + 9232 ms: buffer: [<--bloco 0211-------------------------------------------------->] + 9232 ms: lendo bloco 212 + 9287 ms: buffer: [<--bloco 0212-------------------------------------------------->] + 9287 ms: lendo bloco 213 + 9338 ms: buffer: [<--bloco 0213-------------------------------------------------->] + 9338 ms: lendo bloco 214 + 9374 ms: buffer: [<--bloco 0214-------------------------------------------------->] + 9374 ms: lendo bloco 215 + 9408 ms: buffer: [<--bloco 0215-------------------------------------------------->] + 9408 ms: lendo bloco 216 + 9446 ms: buffer: [<--bloco 0216-------------------------------------------------->] + 9446 ms: lendo bloco 217 + 9486 ms: buffer: [<--bloco 0217-------------------------------------------------->] + 9486 ms: lendo bloco 218 + 9541 ms: buffer: [<--bloco 0218-------------------------------------------------->] + 9542 ms: lendo bloco 219 + 9581 ms: buffer: [<--bloco 0219-------------------------------------------------->] + 9581 ms: lendo bloco 220 + 9620 ms: buffer: [<--bloco 0220-------------------------------------------------->] + 9620 ms: lendo bloco 221 + 9657 ms: buffer: [<--bloco 0221-------------------------------------------------->] + 9657 ms: lendo bloco 222 + 9714 ms: buffer: [<--bloco 0222-------------------------------------------------->] + 9714 ms: lendo bloco 223 + 9760 ms: buffer: [<--bloco 0223-------------------------------------------------->] + 9760 ms: lendo bloco 224 + 9797 ms: buffer: [<--bloco 0224-------------------------------------------------->] + 9797 ms: lendo bloco 225 + 9834 ms: buffer: [<--bloco 0225-------------------------------------------------->] + 9834 ms: lendo bloco 226 + 9881 ms: buffer: [<--bloco 0226-------------------------------------------------->] + 9881 ms: lendo bloco 227 + 9914 ms: buffer: [<--bloco 0227-------------------------------------------------->] + 9914 ms: lendo bloco 228 + 9970 ms: buffer: [<--bloco 0228-------------------------------------------------->] + 9970 ms: lendo bloco 229 +10003 ms: buffer: [<--bloco 0229-------------------------------------------------->] +10003 ms: lendo bloco 230 +10037 ms: buffer: [<--bloco 0230-------------------------------------------------->] +10037 ms: lendo bloco 231 +10077 ms: buffer: [<--bloco 0231-------------------------------------------------->] +10077 ms: lendo bloco 232 +10130 ms: buffer: [<--bloco 0232-------------------------------------------------->] +10130 ms: lendo bloco 233 +10175 ms: buffer: [<--bloco 0233-------------------------------------------------->] +10175 ms: lendo bloco 234 +10224 ms: buffer: [<--bloco 0234-------------------------------------------------->] +10224 ms: lendo bloco 235 +10278 ms: buffer: [<--bloco 0235-------------------------------------------------->] +10278 ms: lendo bloco 236 +10313 ms: buffer: [<--bloco 0236-------------------------------------------------->] +10313 ms: lendo bloco 237 +10362 ms: buffer: [<--bloco 0237-------------------------------------------------->] +10363 ms: lendo bloco 238 +10415 ms: buffer: [<--bloco 0238-------------------------------------------------->] +10415 ms: lendo bloco 239 +10450 ms: buffer: [<--bloco 0239-------------------------------------------------->] +10450 ms: lendo bloco 240 +10505 ms: buffer: [<--bloco 0240-------------------------------------------------->] +10505 ms: lendo bloco 241 +10541 ms: buffer: [<--bloco 0241-------------------------------------------------->] +10541 ms: lendo bloco 242 +10586 ms: buffer: [<--bloco 0242-------------------------------------------------->] +10586 ms: lendo bloco 243 +10635 ms: buffer: [<--bloco 0243-------------------------------------------------->] +10635 ms: lendo bloco 244 +10691 ms: buffer: [<--bloco 0244-------------------------------------------------->] +10691 ms: lendo bloco 245 +10738 ms: buffer: [<--bloco 0245-------------------------------------------------->] +10738 ms: lendo bloco 246 +10791 ms: buffer: [<--bloco 0246-------------------------------------------------->] +10791 ms: lendo bloco 247 +10825 ms: buffer: [<--bloco 0247-------------------------------------------------->] +10825 ms: lendo bloco 248 +10881 ms: buffer: [<--bloco 0248-------------------------------------------------->] +10881 ms: lendo bloco 249 +10931 ms: buffer: [<--bloco 0249-------------------------------------------------->] +10931 ms: lendo bloco 250 +10973 ms: buffer: [<--bloco 0250-------------------------------------------------->] +10973 ms: lendo bloco 251 +11010 ms: buffer: [<--bloco 0251-------------------------------------------------->] +11010 ms: lendo bloco 252 +11062 ms: buffer: [<--bloco 0252-------------------------------------------------->] +11062 ms: lendo bloco 253 +11099 ms: buffer: [<--bloco 0253-------------------------------------------------->] +11099 ms: lendo bloco 254 +11147 ms: buffer: [<--bloco 0254-------------------------------------------------->] +11148 ms: lendo bloco 255 +11179 ms: buffer: [<--bloco 0255-------------------------------------------------->] +11179 ms: escrevendo bloco 0 com caracteres ">" +11491 ms: escrevendo bloco 1 com caracteres "5" +11525 ms: escrevendo bloco 2 com caracteres "0" +11561 ms: escrevendo bloco 3 com caracteres "?" +11599 ms: escrevendo bloco 4 com caracteres """ +11635 ms: escrevendo bloco 5 com caracteres "9" +11671 ms: escrevendo bloco 6 com caracteres "$" +11718 ms: escrevendo bloco 7 com caracteres "#" +11772 ms: escrevendo bloco 8 com caracteres "F" +11817 ms: escrevendo bloco 9 com caracteres "=" +11852 ms: escrevendo bloco 10 com caracteres "(" +11903 ms: escrevendo bloco 11 com caracteres "'" +11953 ms: escrevendo bloco 12 com caracteres "*" +12008 ms: escrevendo bloco 13 com caracteres "1" +12050 ms: escrevendo bloco 14 com caracteres "L" +12100 ms: escrevendo bloco 15 com caracteres ";" +12147 ms: escrevendo bloco 16 com caracteres "." +12194 ms: escrevendo bloco 17 com caracteres "%" +12231 ms: escrevendo bloco 18 com caracteres "0" +12269 ms: escrevendo bloco 19 com caracteres "?" +12311 ms: escrevendo bloco 20 com caracteres """ +12364 ms: escrevendo bloco 21 com caracteres ")" +12422 ms: escrevendo bloco 22 com caracteres "4" +12466 ms: escrevendo bloco 23 com caracteres "#" +12515 ms: escrevendo bloco 24 com caracteres "&" +12564 ms: escrevendo bloco 25 com caracteres "M" +12615 ms: escrevendo bloco 26 com caracteres "(" +12670 ms: escrevendo bloco 27 com caracteres "'" +12709 ms: escrevendo bloco 28 com caracteres "J" +12767 ms: escrevendo bloco 29 com caracteres "1" +12808 ms: escrevendo bloco 30 com caracteres "L" +12847 ms: escrevendo bloco 31 com caracteres "K" +12889 ms: escrevendo bloco 32 com caracteres "." +12933 ms: escrevendo bloco 33 com caracteres "5" +12972 ms: escrevendo bloco 34 com caracteres "@" +13016 ms: escrevendo bloco 35 com caracteres "O" +13060 ms: escrevendo bloco 36 com caracteres "B" +13099 ms: escrevendo bloco 37 com caracteres ")" +13132 ms: escrevendo bloco 38 com caracteres "$" +13172 ms: escrevendo bloco 39 com caracteres "3" +13224 ms: escrevendo bloco 40 com caracteres "6" +13261 ms: escrevendo bloco 41 com caracteres "=" +13316 ms: escrevendo bloco 42 com caracteres "H" +13355 ms: escrevendo bloco 43 com caracteres "7" +13411 ms: escrevendo bloco 44 com caracteres "*" +13450 ms: escrevendo bloco 45 com caracteres "!" +13507 ms: escrevendo bloco 46 com caracteres "L" +13551 ms: escrevendo bloco 47 com caracteres ";" +13605 ms: escrevendo bloco 48 com caracteres "." +13637 ms: escrevendo bloco 49 com caracteres "5" +13684 ms: escrevendo bloco 50 com caracteres "0" +13717 ms: escrevendo bloco 51 com caracteres "?" +13767 ms: escrevendo bloco 52 com caracteres "2" +13813 ms: escrevendo bloco 53 com caracteres "9" +13858 ms: escrevendo bloco 54 com caracteres "$" +13897 ms: escrevendo bloco 55 com caracteres "3" +13929 ms: escrevendo bloco 56 com caracteres "F" +13967 ms: escrevendo bloco 57 com caracteres "=" +14025 ms: escrevendo bloco 58 com caracteres "8" +14060 ms: escrevendo bloco 59 com caracteres "7" +14095 ms: escrevendo bloco 60 com caracteres "*" +14135 ms: escrevendo bloco 61 com caracteres "A" +14175 ms: escrevendo bloco 62 com caracteres "<" +14217 ms: escrevendo bloco 63 com caracteres ";" +14265 ms: escrevendo bloco 64 com caracteres "N" +14312 ms: escrevendo bloco 65 com caracteres "%" +14367 ms: escrevendo bloco 66 com caracteres " " +14424 ms: escrevendo bloco 67 com caracteres "/" +14475 ms: escrevendo bloco 68 com caracteres "B" +14528 ms: escrevendo bloco 69 com caracteres "I" +14562 ms: escrevendo bloco 70 com caracteres "D" +14602 ms: escrevendo bloco 71 com caracteres "C" +14656 ms: escrevendo bloco 72 com caracteres "6" +14714 ms: escrevendo bloco 73 com caracteres "-" +14763 ms: escrevendo bloco 74 com caracteres "(" +14814 ms: escrevendo bloco 75 com caracteres "G" +14853 ms: escrevendo bloco 76 com caracteres "*" +14896 ms: escrevendo bloco 77 com caracteres "1" +14929 ms: escrevendo bloco 78 com caracteres "L" +14985 ms: escrevendo bloco 79 com caracteres ";" +15024 ms: escrevendo bloco 80 com caracteres "N" +15070 ms: escrevendo bloco 81 com caracteres "5" +15128 ms: escrevendo bloco 82 com caracteres " " +15186 ms: escrevendo bloco 83 com caracteres "O" +15241 ms: escrevendo bloco 84 com caracteres "2" +15282 ms: escrevendo bloco 85 com caracteres ")" +15317 ms: escrevendo bloco 86 com caracteres "4" +15369 ms: escrevendo bloco 87 com caracteres "C" +15415 ms: escrevendo bloco 88 com caracteres "F" +15449 ms: escrevendo bloco 89 com caracteres "M" +15505 ms: escrevendo bloco 90 com caracteres "H" +15552 ms: escrevendo bloco 91 com caracteres "'" +15591 ms: escrevendo bloco 92 com caracteres "J" +15628 ms: escrevendo bloco 93 com caracteres "A" +15685 ms: escrevendo bloco 94 com caracteres "<" +15741 ms: escrevendo bloco 95 com caracteres ";" +15790 ms: escrevendo bloco 96 com caracteres ">" +15839 ms: escrevendo bloco 97 com caracteres "5" +15893 ms: escrevendo bloco 98 com caracteres " " +15934 ms: escrevendo bloco 99 com caracteres "O" +15973 ms: escrevendo bloco 100 com caracteres "B" +16031 ms: escrevendo bloco 101 com caracteres ")" +16081 ms: escrevendo bloco 102 com caracteres "$" +16116 ms: escrevendo bloco 103 com caracteres "#" +16168 ms: escrevendo bloco 104 com caracteres "6" +16204 ms: escrevendo bloco 105 com caracteres "M" +16257 ms: escrevendo bloco 106 com caracteres "8" +16316 ms: escrevendo bloco 107 com caracteres "'" +16359 ms: escrevendo bloco 108 com caracteres "*" +16409 ms: escrevendo bloco 109 com caracteres "A" +16461 ms: escrevendo bloco 110 com caracteres "," +16512 ms: escrevendo bloco 111 com caracteres "K" +16548 ms: escrevendo bloco 112 com caracteres "." +16600 ms: escrevendo bloco 113 com caracteres "E" +16646 ms: escrevendo bloco 114 com caracteres " " +16679 ms: escrevendo bloco 115 com caracteres "/" +16735 ms: escrevendo bloco 116 com caracteres "2" +16784 ms: escrevendo bloco 117 com caracteres "I" +16833 ms: escrevendo bloco 118 com caracteres "$" +16877 ms: escrevendo bloco 119 com caracteres "C" +16929 ms: escrevendo bloco 120 com caracteres "&" +16976 ms: escrevendo bloco 121 com caracteres "M" +17031 ms: escrevendo bloco 122 com caracteres "H" +17065 ms: escrevendo bloco 123 com caracteres "7" +17117 ms: escrevendo bloco 124 com caracteres ":" +17166 ms: escrevendo bloco 125 com caracteres "A" +17219 ms: escrevendo bloco 126 com caracteres "," +17262 ms: escrevendo bloco 127 com caracteres "+" +17302 ms: escrevendo bloco 128 com caracteres ">" +17348 ms: escrevendo bloco 129 com caracteres "5" +17395 ms: escrevendo bloco 130 com caracteres " " +17444 ms: escrevendo bloco 131 com caracteres "/" +17483 ms: escrevendo bloco 132 com caracteres """ +17518 ms: escrevendo bloco 133 com caracteres ")" +17566 ms: escrevendo bloco 134 com caracteres "D" +17598 ms: escrevendo bloco 135 com caracteres "3" +17636 ms: escrevendo bloco 136 com caracteres "&" +17677 ms: escrevendo bloco 137 com caracteres "=" +17733 ms: escrevendo bloco 138 com caracteres "8" +17779 ms: escrevendo bloco 139 com caracteres "G" +17834 ms: escrevendo bloco 140 com caracteres "*" +17882 ms: escrevendo bloco 141 com caracteres "A" +17920 ms: escrevendo bloco 142 com caracteres "," +17954 ms: escrevendo bloco 143 com caracteres "K" +17991 ms: escrevendo bloco 144 com caracteres ">" +18039 ms: escrevendo bloco 145 com caracteres "E" +18096 ms: escrevendo bloco 146 com caracteres "0" +18130 ms: escrevendo bloco 147 com caracteres "/" +18169 ms: escrevendo bloco 148 com caracteres "2" +18217 ms: escrevendo bloco 149 com caracteres "9" +18259 ms: escrevendo bloco 150 com caracteres "D" +18316 ms: escrevendo bloco 151 com caracteres "#" +18353 ms: escrevendo bloco 152 com caracteres "6" +18393 ms: escrevendo bloco 153 com caracteres "=" +18447 ms: escrevendo bloco 154 com caracteres "8" +18500 ms: escrevendo bloco 155 com caracteres "'" +18558 ms: escrevendo bloco 156 com caracteres "*" +18606 ms: escrevendo bloco 157 com caracteres "!" +18638 ms: escrevendo bloco 158 com caracteres "L" +18674 ms: escrevendo bloco 159 com caracteres "+" +18708 ms: escrevendo bloco 160 com caracteres "." +18752 ms: escrevendo bloco 161 com caracteres "E" +18799 ms: escrevendo bloco 162 com caracteres " " +18841 ms: escrevendo bloco 163 com caracteres "?" +18888 ms: escrevendo bloco 164 com caracteres """ +18925 ms: escrevendo bloco 165 com caracteres "9" +18963 ms: escrevendo bloco 166 com caracteres "$" +19017 ms: escrevendo bloco 167 com caracteres "C" +19059 ms: escrevendo bloco 168 com caracteres "&" +19093 ms: escrevendo bloco 169 com caracteres "M" +19135 ms: escrevendo bloco 170 com caracteres "(" +19174 ms: escrevendo bloco 171 com caracteres "7" +19226 ms: escrevendo bloco 172 com caracteres "J" +19270 ms: escrevendo bloco 173 com caracteres "!" +19307 ms: escrevendo bloco 174 com caracteres "<" +19359 ms: escrevendo bloco 175 com caracteres ";" +19393 ms: escrevendo bloco 176 com caracteres "N" +19428 ms: escrevendo bloco 177 com caracteres "5" +19482 ms: escrevendo bloco 178 com caracteres " " +19520 ms: escrevendo bloco 179 com caracteres "O" +19568 ms: escrevendo bloco 180 com caracteres "2" +19602 ms: escrevendo bloco 181 com caracteres "I" +19637 ms: escrevendo bloco 182 com caracteres "D" +19686 ms: escrevendo bloco 183 com caracteres "3" +19727 ms: escrevendo bloco 184 com caracteres "F" +19784 ms: escrevendo bloco 185 com caracteres "M" +19828 ms: escrevendo bloco 186 com caracteres "(" +19864 ms: escrevendo bloco 187 com caracteres "'" +19907 ms: escrevendo bloco 188 com caracteres "J" +19948 ms: escrevendo bloco 189 com caracteres "!" +19987 ms: escrevendo bloco 190 com caracteres "L" +20028 ms: escrevendo bloco 191 com caracteres "+" +20081 ms: escrevendo bloco 192 com caracteres "N" +20136 ms: escrevendo bloco 193 com caracteres "E" +20184 ms: escrevendo bloco 194 com caracteres "0" +20226 ms: escrevendo bloco 195 com caracteres "O" +20282 ms: escrevendo bloco 196 com caracteres """ +20337 ms: escrevendo bloco 197 com caracteres ")" +20371 ms: escrevendo bloco 198 com caracteres "4" +20410 ms: escrevendo bloco 199 com caracteres "3" +20467 ms: escrevendo bloco 200 com caracteres "&" +20507 ms: escrevendo bloco 201 com caracteres "-" +20554 ms: escrevendo bloco 202 com caracteres "(" +20599 ms: escrevendo bloco 203 com caracteres "G" +20652 ms: escrevendo bloco 204 com caracteres ":" +20704 ms: escrevendo bloco 205 com caracteres "!" +20743 ms: escrevendo bloco 206 com caracteres "," +20795 ms: escrevendo bloco 207 com caracteres ";" +20846 ms: escrevendo bloco 208 com caracteres "N" +20903 ms: escrevendo bloco 209 com caracteres "E" +20957 ms: escrevendo bloco 210 com caracteres "0" +20998 ms: escrevendo bloco 211 com caracteres "?" +21032 ms: escrevendo bloco 212 com caracteres "2" +21089 ms: escrevendo bloco 213 com caracteres ")" +21121 ms: escrevendo bloco 214 com caracteres "4" +21160 ms: escrevendo bloco 215 com caracteres "#" +21212 ms: escrevendo bloco 216 com caracteres "&" +21252 ms: escrevendo bloco 217 com caracteres "-" +21295 ms: escrevendo bloco 218 com caracteres "8" +21331 ms: escrevendo bloco 219 com caracteres "'" +21380 ms: escrevendo bloco 220 com caracteres "*" +21427 ms: escrevendo bloco 221 com caracteres "A" +21469 ms: escrevendo bloco 222 com caracteres "L" +21509 ms: escrevendo bloco 223 com caracteres "K" +21552 ms: escrevendo bloco 224 com caracteres ">" +21611 ms: escrevendo bloco 225 com caracteres "E" +21662 ms: escrevendo bloco 226 com caracteres "@" +21702 ms: escrevendo bloco 227 com caracteres "?" +21756 ms: escrevendo bloco 228 com caracteres "B" +21805 ms: escrevendo bloco 229 com caracteres ")" +21849 ms: escrevendo bloco 230 com caracteres "4" +21897 ms: escrevendo bloco 231 com caracteres "#" +21955 ms: escrevendo bloco 232 com caracteres "6" +21988 ms: escrevendo bloco 233 com caracteres "-" +22023 ms: escrevendo bloco 234 com caracteres "H" +22072 ms: escrevendo bloco 235 com caracteres "7" +22122 ms: escrevendo bloco 236 com caracteres ":" +22160 ms: escrevendo bloco 237 com caracteres "A" +22202 ms: escrevendo bloco 238 com caracteres "<" +22244 ms: escrevendo bloco 239 com caracteres ";" +22278 ms: escrevendo bloco 240 com caracteres ">" +22315 ms: escrevendo bloco 241 com caracteres "%" +22362 ms: escrevendo bloco 242 com caracteres "@" +22420 ms: escrevendo bloco 243 com caracteres "O" +22452 ms: escrevendo bloco 244 com caracteres "2" +22500 ms: escrevendo bloco 245 com caracteres ")" +22540 ms: escrevendo bloco 246 com caracteres "D" +22593 ms: escrevendo bloco 247 com caracteres "C" +22646 ms: escrevendo bloco 248 com caracteres "6" +22694 ms: escrevendo bloco 249 com caracteres "-" +22748 ms: escrevendo bloco 250 com caracteres "H" +22791 ms: escrevendo bloco 251 com caracteres "'" +22827 ms: escrevendo bloco 252 com caracteres ":" +22865 ms: escrevendo bloco 253 com caracteres "!" +22916 ms: escrevendo bloco 254 com caracteres "L" +22959 ms: escrevendo bloco 255 com caracteres "K" +22996 ms: user_main fim +PPOS: task 1 (user_main), 22996 ms run, 25 ms cpu, 513 acts, exit code 0 +PPOS: task 0 (kernel), 22996 ms run, 22971 ms cpu, 1538 acts, exit code 0 +PPOS: system terminating +PPOS: disk driver terminated (256 blocks read, 256 blocks written) +PPOS: system terminated (uptime 22996 ms) diff --git a/test/pingpong-dispatcher.c b/test/pingpong-dispatcher.c @@ -0,0 +1,56 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 07/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Teste do dispatcher com escalonador FCFS + +#include <assert.h> +#include "lib/pplibc.h" +#include "syscall.h" + +struct task_t *pang, *peng, *ping, *pong, *pung; + +// corpo das tarefas +void body(void *arg) +{ + printk("%s (id %d): inicio\n", + (char *)arg, task_id(NULL)); + + for (int i = 0; i < 5; i++) + { + printk("%s: %d\n", (char *)arg, i); + task_yield(); + } + printk("%s: fim\n", (char *)arg); + task_exit(NOERROR); +} + +// corpo da tarefa principal +void user_main(void *arg) +{ + int id; + char *name; + + name = task_name(NULL); + id = task_id(NULL); + printk("%5u ms: %s (id %d): inicio\n", time(), name, id); + + // cria tarefas + pang = task_create("pang", body, "\tPang"); + assert(pang); + peng = task_create("peng", body, "\t\tPeng"); + assert(peng); + ping = task_create("ping", body, "\t\t\tPing"); + assert(ping); + pong = task_create("pong", body, "\t\t\t\tPong"); + assert(pong); + pung = task_create("pung", body, "\t\t\t\t\tPung"); + assert(pung); + + printk("%5u ms: %s fim\n", time(), name); + + task_exit(NOERROR); +} diff --git a/test/pingpong-dispatcher.txt b/test/pingpong-dispatcher.txt @@ -0,0 +1,41 @@ +PPOS: system initializing +PPOS: system ready (uptime 0 ms) + 0 ms: user_main (id 1): inicio + 0 ms: user_main fim + Pang (id 2): inicio + Pang: 0 + Peng (id 3): inicio + Peng: 0 + Ping (id 4): inicio + Ping: 0 + Pong (id 5): inicio + Pong: 0 + Pung (id 6): inicio + Pung: 0 + Pang: 1 + Peng: 1 + Ping: 1 + Pong: 1 + Pung: 1 + Pang: 2 + Peng: 2 + Ping: 2 + Pong: 2 + Pung: 2 + Pang: 3 + Peng: 3 + Ping: 3 + Pong: 3 + Pung: 3 + Pang: 4 + Peng: 4 + Ping: 4 + Pong: 4 + Pung: 4 + Pang: fim + Peng: fim + Ping: fim + Pong: fim + Pung: fim +PPOS: system terminating +PPOS: system terminated (uptime 0 ms) diff --git a/test/pingpong-memoria.c b/test/pingpong-memoria.c @@ -0,0 +1,149 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Teste das operações de alocação de memória heap + +#include <assert.h> +#include "lib/pplibc.h" +#include "syscall.h" + +#define MAX_BLOCKS (1024 * 1024) + +static unsigned char *block[MAX_BLOCKS]; +static int bsize[MAX_BLOCKS]; + +// corpo da tarefa principal +void user_main() +{ + int size, nblocks, avail, avail_before, avail_after; + void *ptr; + int status, id; + char *name; + + name = task_name(NULL); + id = task_id(NULL); + printk("%5u ms: %s (id %d): inicio\n", time(), name, id); + + // testa mem_size + printk("Testando mem_size\n"); + size = mem_size(); + printk("mem_size retornou %d bytes\n", size); + assert(size > 0); + + // testa mem_avail + printk("Testando mem_avail\n"); + avail = mem_avail(); + printk("mem_avail retornou %d bytes\n", avail); + assert(avail > 0); + assert(avail <= size); + + // testa alocação de tamanho zero + printk("Testando mem_alloc com tamanho 0\n"); + ptr = mem_alloc(0); + assert(ptr == NULL); + + // testa alocação negativa + printk("Testando mem_alloc com tamanho negativo\n"); + ptr = mem_alloc(-100); + assert(ptr == NULL); + + // testa alocação maior que a memória disponível + printk("Testando mem_alloc tamanho excessivo\n"); + avail = mem_avail(); + ptr = mem_alloc(avail + 1); + assert(ptr == NULL); + + // testa free nulo + printk("Testando mem_free com ponteiro nulo\n"); + status = mem_free(NULL); + assert(status == ERROR); + + // testa free inválido + printk("Testando mem_free com ponteiro inválido\n"); + status = mem_free(&status); + assert(status == ERROR); + + // alocações aleatórias + printk("Criando blocos de tamanho aleatório\n"); + avail_before = mem_avail(); + nblocks = 0; + do + { + // aloca um bloco de tamanho aleatório + size = randnum() % (mem_size() / 1024); + ptr = mem_alloc(size); + + if (ptr) + { + // guarda o bloco alocado + block[nblocks] = ptr; + bsize[nblocks] = size; + nblocks++; + + // ao chegar em 10 blocos, gera relatório + if (nblocks == 10) + { + printk("Testando mem_report (10 alocações)\n"); + mem_report(); + } + } + } while (mem_avail() > 4096); + + printk("Foram alocados %d blocos\n", nblocks); + + // testa se alocações estão alinhadas em 16 bytes + printk("Testando alinhamento dos blocos alocados\n"); + for (int i = 0; i < nblocks; i++) + assert(((unsigned long)block[i] % 16) == 0); + + // preenche os blocos alocados + printk("Preenchendo blocos com bytes fixos\n"); + for (int i = 0; i < nblocks; i++) + { + // preenche bloco com valor fixo + for (int j = 0; j < bsize[i]; j++) + block[i][j] = i % 256; + } + + // verifica o conteúdo dos blocos alocados + printk("Verificando conteúdo dos blocos preenchidos\n"); + for (int i = 0; i < nblocks; i++) + { + // verifica o conteúdo do bloco + for (int j = 0; j < bsize[i]; j++) + assert(block[i][j] == i % 256); + } + + // liberando os blocos alocados acima + printk("Liberando os blocos alocados\n"); + for (int i = 0; i < nblocks; i++) + { + status = mem_free(block[i]); + assert(status == NOERROR); + + // ao chegar aos últimos N blocos, gera relatório + if (nblocks - (i + 1) == 10) + { + printk("Testando mem_report (10 alocações)\n"); + mem_report(); + } + } + + // verificando se toda a memória foi liberada + printk("Verificando a memória disponível\n"); + avail_after = mem_avail(); + printk("mem_avail retornou %d bytes\n", avail_after); + assert(avail_after == avail_before); + printk("Testando mem_report (sem alocações do usuário)\n"); + mem_report(); + + printk("Testes concluídos com sucesso!\n"); + + printk("%5u ms: %s fim\n", time(), name); + + task_exit(NOERROR); +} diff --git a/test/pingpong-memoria.txt b/test/pingpong-memoria.txt @@ -0,0 +1,71 @@ +PPOS: system initializing +PPOS: system ready (uptime 0 ms) + 0 ms: user_main (id 1): inicio +Testando mem_size +mem_size retornou 67108864 bytes +Testando mem_avail +mem_avail retornou 67075728 bytes +Testando mem_alloc com tamanho 0 +Testando mem_alloc com tamanho negativo +Testando mem_alloc tamanho excessivo +Testando mem_free com ponteiro nulo +Testando mem_free com ponteiro inválido +Criando blocos de tamanho aleatório +Testando mem_report (10 alocações) +heap: 435 KB allocated (15 blocks), 65100 KB free (1 blocks) +heap: block 0: 0x000055abfb933360 - 0x000055abfb93337f aloc prev 15 next 1 size 32 +heap: block 1: 0x000055abfb933380 - 0x000055abfb93339f aloc prev 0 next 2 size 32 +heap: block 2: 0x000055abfb9333a0 - 0x000055abfb9333bf aloc prev 1 next 3 size 32 +heap: block 3: 0x000055abfb9333c0 - 0x000055abfb9334cf aloc prev 2 next 4 size 272 +heap: block 4: 0x000055abfb9334d0 - 0x000055abfb93b4cf aloc prev 3 next 5 size 32768 +heap: block 5: 0x000055abfb93b4d0 - 0x000055abfb94a82f aloc prev 4 next 6 size 62304 +heap: block 6: 0x000055abfb94a830 - 0x000055abfb94d16f aloc prev 5 next 7 size 10560 +heap: block 7: 0x000055abfb94d170 - 0x000055abfb95c85f aloc prev 6 next 8 size 63216 +heap: block 8: 0x000055abfb95c860 - 0x000055abfb961b9f aloc prev 7 next 9 size 21312 +heap: block 9: 0x000055abfb961ba0 - 0x000055abfb9700af aloc prev 8 next 10 size 58640 +heap: block 10: 0x000055abfb9700b0 - 0x000055abfb97c73f aloc prev 9 next 11 size 50832 +heap: block 11: 0x000055abfb97c740 - 0x000055abfb98336f aloc prev 10 next 12 size 27696 +heap: block 12: 0x000055abfb983370 - 0x000055abfb98931f aloc prev 11 next 13 size 24496 +heap: block 13: 0x000055abfb989320 - 0x000055abfb99520f aloc prev 12 next 14 size 48880 +heap: block 14: 0x000055abfb995210 - 0x000055abfb9a012f aloc prev 13 next 15 size 44832 +heap: block 15: 0x000055abfb9a0130 - 0x000055abff93335f FREE prev 14 next 0 size 66662960 +Foram alocados 2032 blocos +Testando alinhamento dos blocos alocados +Preenchendo blocos com bytes fixos +Verificando conteúdo dos blocos preenchidos +Liberando os blocos alocados +Testando mem_report (10 alocações) +heap: 264 KB allocated (15 blocks), 65271 KB free (2 blocks) +heap: block 0: 0x000055abfb933360 - 0x000055abfb93337f aloc prev 2037 next 1 size 32 +heap: block 1: 0x000055abfb933380 - 0x000055abfb93339f aloc prev 0 next 2 size 32 +heap: block 2: 0x000055abfb9333a0 - 0x000055abfb9333bf aloc prev 1 next 3 size 32 +heap: block 3: 0x000055abfb9333c0 - 0x000055abfb9334cf aloc prev 2 next 4 size 272 +heap: block 4: 0x000055abfb9334d0 - 0x000055abfb93b4cf aloc prev 3 next 2026 size 32768 +heap: block 2026: 0x000055abfb93b4d0 - 0x000055abff8f8a5f FREE prev 4 next 2027 size 66835856 +heap: block 2027: 0x000055abff8f8a60 - 0x000055abff90436f aloc prev 2026 next 2028 size 47376 +heap: block 2028: 0x000055abff904370 - 0x000055abff90ca7f aloc prev 2027 next 2029 size 34576 +heap: block 2029: 0x000055abff90ca80 - 0x000055abff91c94f aloc prev 2028 next 2030 size 65232 +heap: block 2030: 0x000055abff91c950 - 0x000055abff91f6cf aloc prev 2029 next 2031 size 11648 +heap: block 2031: 0x000055abff91f6d0 - 0x000055abff92d56f aloc prev 2030 next 2032 size 56992 +heap: block 2032: 0x000055abff92d570 - 0x000055abff92dc2f aloc prev 2031 next 2033 size 1728 +heap: block 2033: 0x000055abff92dc30 - 0x000055abff930f1f aloc prev 2032 next 2034 size 13040 +heap: block 2034: 0x000055abff930f20 - 0x000055abff931f7f aloc prev 2033 next 2035 size 4192 +heap: block 2035: 0x000055abff931f80 - 0x000055abff9322ef aloc prev 2034 next 2036 size 880 +heap: block 2036: 0x000055abff9322f0 - 0x000055abff9329af aloc prev 2035 next 2037 size 1728 +heap: block 2037: 0x000055abff9329b0 - 0x000055abff93335f FREE prev 2036 next 0 size 2480 +Verificando a memória disponível +mem_avail retornou 67075728 bytes +Testando mem_report (sem alocações do usuário) +heap: 32 KB allocated (5 blocks), 65503 KB free (1 blocks) +heap: block 0: 0x000055abfb933360 - 0x000055abfb93337f aloc prev 2036 next 1 size 32 +heap: block 1: 0x000055abfb933380 - 0x000055abfb93339f aloc prev 0 next 2 size 32 +heap: block 2: 0x000055abfb9333a0 - 0x000055abfb9333bf aloc prev 1 next 3 size 32 +heap: block 3: 0x000055abfb9333c0 - 0x000055abfb9334cf aloc prev 2 next 4 size 272 +heap: block 4: 0x000055abfb9334d0 - 0x000055abfb93b4cf aloc prev 3 next 2036 size 32768 +heap: block 2036: 0x000055abfb93b4d0 - 0x000055abff93335f FREE prev 4 next 0 size 67075728 +Testes concluídos com sucesso! + 179 ms: user_main fim +PPOS: task 1 (user_main), 179 ms run, 179 ms cpu, 18 acts, exit code 0 +PPOS: task 0 (kernel), 179 ms run, 0 ms cpu, 19 acts, exit code 0 +PPOS: system terminating +PPOS: system terminated (uptime 179 ms) diff --git a/test/pingpong-mqueue.c b/test/pingpong-mqueue.c @@ -0,0 +1,175 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Teste das filas de mensagens + +#include <assert.h> +#include "lib/pplibc.h" +#include "syscall.h" + +// estrutura com vários valores para teste +struct pacote_t +{ + int v[3], prod; +}; + +// tarefas e filas +struct task_t *prod[3], *agrup, *cons[2]; +int fila_inteiros, fila_pacotes; + +// corpo da tarefa produtor +void body_prod() +{ + int valor, status; + char *name; + + name = task_name(NULL); + printk("%5u ms: %s inicia\n", time(), name); + + for (;;) + { + // sorteia um valor inteiro e o envia na fila de valores + valor = 1 + randnum() % 20; + status = mqueue_send(fila_inteiros, &valor); + if (status < 0) + break; + printk("%5u ms: %s envia %d\n", time(), name, valor); + + // dorme um intervalo aleatorio + task_sleep(randnum() % 3000); + } + + printk("%5u ms: %s termina\n", time(), name); + task_exit(NOERROR); +} + +// corpo da tarefa agrupador +void body_agrup() +{ + struct pacote_t pacote; + char *name; + int status; + + name = task_name(NULL); + printk("%5u ms: \t\t\t%s inicia\n", time(), name); + + for (int i = 0; i < 10; i++) + { + // recebe N valores inteiros e os põe no pacote + pacote.prod = 1; + for (int j = 0; j < 3; j++) + { + status = mqueue_recv(fila_inteiros, &pacote.v[j]); + assert(status == NOERROR); + + printk("%5u ms: \t\t\t%s recebe %d\n", time(), name, + pacote.v[j]); + pacote.prod *= pacote.v[j]; + } + + // mostra o pacote + printk("%5u ms: \t\t\t%s envia [%d*%d*%d = %d]\n", + time(), name, pacote.v[0], pacote.v[1], pacote.v[2], + pacote.prod); + + // envia o pacote + status = mqueue_send(fila_pacotes, &pacote); + assert(status == NOERROR); + + // dorme um intervalo aleatorio + task_sleep(randnum() % 3000); + } + + printk("%5u ms: \t\t\t%s termina\n", time(), name); + task_exit(NOERROR); +} + +// corpo da tarefa consumidor +void body_cons() +{ + struct pacote_t pacote; + char *name; + int status; + + name = task_name(NULL); + printk("%5u ms: \t\t\t\t\t\t%s inicia\n", time(), name); + + for (;;) + { + // recebe um pacote e o imprime + status = mqueue_recv(fila_pacotes, &pacote); + if (status < 0) + break; + printk("%5u ms: \t\t\t\t\t\t%s recebe [%d*%d*%d = %d]\n", + time(), name, pacote.v[0], pacote.v[1], pacote.v[2], + pacote.prod); + + // dorme um intervalo aleatorio + task_sleep(randnum() % 3000); + } + + printk("%5u ms: \t\t\t\t\t\t%s termina\n", time(), name); + task_exit(NOERROR); +} + +// corpo da tarefa principal +void user_main(void *arg) +{ + int status, id; + char *name; + + name = task_name(NULL); + id = task_id(NULL); + printk("%5u ms: %s (id %d): inicio\n", time(), name, id); + + // cria as filas de mensagens (5 valores cada) + fila_inteiros = mqueue_create(5, sizeof(int)); + assert(fila_inteiros >= 0); + fila_pacotes = mqueue_create(5, sizeof(struct pacote_t)); + assert(fila_pacotes >= 0); + + // cria tarefas + agrup = task_create("agrup", body_agrup, NULL); + assert(agrup); + cons[0] = task_create("cons0", body_cons, NULL); + assert(cons[0]); + cons[1] = task_create("cons1", body_cons, NULL); + assert(cons[1]); + prod[0] = task_create("prod0", body_prod, NULL); + assert(prod[0]); + prod[1] = task_create("prod1", body_prod, NULL); + assert(prod[1]); + prod[2] = task_create("prod2", body_prod, NULL); + assert(prod[2]); + + // aguarda o agrupador encerrar + status = task_wait(agrup); + assert(status == NOERROR); + + // destrói as filas de mensagens + printk("%5u ms: %s destroi fila_inteiros\n", time(), name); + status = mqueue_destroy(fila_inteiros); + assert(status == NOERROR); + printk("%5u ms: %s destroi fila_pacotes\n", time(), name); + status = mqueue_destroy(fila_pacotes); + assert(status == NOERROR); + + // destrói as demais tarefas + status = task_wait(cons[0]); + assert(status == NOERROR); + status = task_wait(cons[1]); + assert(status == NOERROR); + status = task_wait(prod[0]); + assert(status == NOERROR); + status = task_wait(prod[1]); + assert(status == NOERROR); + status = task_wait(prod[2]); + + printk("%5u ms: %s fim\n", time(), name); + + task_exit(NOERROR); +} diff --git a/test/pingpong-mqueue.txt b/test/pingpong-mqueue.txt @@ -0,0 +1,113 @@ +PPOS: system initializing +PPOS: system ready (uptime 0 ms) + 0 ms: user_main (id 1): inicio + 0 ms: agrup inicia + 0 ms: cons0 inicia + 0 ms: cons1 inicia + 0 ms: prod0 inicia + 0 ms: prod0 envia 4 + 0 ms: prod1 inicia + 0 ms: prod1 envia 10 + 0 ms: prod2 inicia + 0 ms: prod2 envia 8 + 0 ms: agrup recebe 4 + 0 ms: agrup recebe 10 + 0 ms: agrup recebe 8 + 0 ms: agrup envia [4*10*8 = 320] + 0 ms: cons0 recebe [4*10*8 = 320] + 1174 ms: prod2 envia 16 + 1174 ms: agrup recebe 16 + 1836 ms: prod1 envia 10 + 1836 ms: agrup recebe 10 + 2312 ms: prod1 envia 20 + 2312 ms: agrup recebe 20 + 2312 ms: agrup envia [16*10*20 = 3200] + 2312 ms: cons1 recebe [16*10*20 = 3200] + 2762 ms: prod0 envia 16 + 3960 ms: prod2 envia 18 + 4077 ms: agrup recebe 16 + 4077 ms: agrup recebe 18 + 4094 ms: prod1 envia 8 + 4094 ms: agrup recebe 8 + 4094 ms: agrup envia [16*18*8 = 2304] + 4094 ms: cons0 recebe [16*18*8 = 2304] + 4516 ms: prod0 envia 16 + 4590 ms: prod0 envia 18 + 4930 ms: prod0 envia 20 + 5795 ms: agrup recebe 16 + 5795 ms: agrup recebe 18 + 5795 ms: agrup recebe 20 + 5795 ms: agrup envia [16*18*20 = 5760] + 5795 ms: cons0 recebe [16*18*20 = 5760] + 5892 ms: prod2 envia 12 + 5892 ms: agrup recebe 12 + 6380 ms: prod1 envia 2 + 6380 ms: agrup recebe 2 + 6470 ms: prod2 envia 12 + 6470 ms: agrup recebe 12 + 6470 ms: agrup envia [12*2*12 = 288] + 6470 ms: cons1 recebe [12*2*12 = 288] + 6480 ms: prod0 envia 4 + 7435 ms: agrup recebe 4 + 8108 ms: prod2 envia 6 + 8108 ms: agrup recebe 6 + 8160 ms: prod2 envia 20 + 8160 ms: agrup recebe 20 + 8160 ms: agrup envia [4*6*20 = 480] + 8160 ms: cons1 recebe [4*6*20 = 480] + 8674 ms: prod0 envia 12 + 8760 ms: prod1 envia 6 + 9565 ms: agrup recebe 12 + 9565 ms: agrup recebe 6 + 9756 ms: prod0 envia 8 + 9756 ms: agrup recebe 8 + 9756 ms: agrup envia [12*6*8 = 576] + 9756 ms: cons0 recebe [12*6*8 = 576] +10470 ms: prod2 envia 4 +10470 ms: agrup recebe 4 +11314 ms: prod0 envia 6 +11314 ms: agrup recebe 6 +11398 ms: prod0 envia 8 +11398 ms: agrup recebe 8 +11398 ms: agrup envia [4*6*8 = 192] +11398 ms: cons1 recebe [4*6*8 = 192] +11548 ms: prod1 envia 16 +11694 ms: prod1 envia 2 +12336 ms: prod2 envia 16 +12876 ms: prod0 envia 14 +12978 ms: prod1 envia 12 +13915 ms: agrup recebe 16 +13915 ms: agrup recebe 2 +13915 ms: agrup recebe 16 +13915 ms: agrup envia [16*2*16 = 512] +13915 ms: prod2 envia 10 +13915 ms: cons0 recebe [16*2*16 = 512] +13956 ms: prod0 envia 14 +13983 ms: agrup recebe 14 +13983 ms: agrup recebe 12 +13983 ms: agrup recebe 10 +13983 ms: agrup envia [14*12*10 = 1680] +13983 ms: cons1 recebe [14*12*10 = 1680] +14710 ms: prod2 envia 18 +15100 ms: prod1 envia 8 +16068 ms: prod0 envia 2 +16858 ms: prod2 envia 20 +16870 ms: agrup termina +PPOS: task 2 (agrup), 16870 ms run, 0 ms cpu, 25 acts, exit code 0 +16870 ms: user_main destroi fila_inteiros +16870 ms: user_main destroi fila_pacotes +16870 ms: cons1 termina +PPOS: task 4 (cons1), 16870 ms run, 0 ms cpu, 12 acts, exit code 0 +16870 ms: cons0 termina +PPOS: task 3 (cons0), 16870 ms run, 0 ms cpu, 12 acts, exit code 0 +16980 ms: prod2 termina +PPOS: task 7 (prod2), 16980 ms run, 0 ms cpu, 14 acts, exit code 0 +17900 ms: prod0 termina +PPOS: task 5 (prod0), 17900 ms run, 0 ms cpu, 14 acts, exit code 0 +18066 ms: prod1 termina +PPOS: task 6 (prod1), 18066 ms run, 0 ms cpu, 11 acts, exit code 0 +18066 ms: user_main fim +PPOS: task 1 (user_main), 18066 ms run, 0 ms cpu, 5 acts, exit code 0 +PPOS: task 0 (kernel), 18066 ms run, 18066 ms cpu, 94 acts, exit code 0 +PPOS: system terminating +PPOS: system terminated (uptime 18066 ms) diff --git a/test/pingpong-preempcao.c b/test/pingpong-preempcao.c @@ -0,0 +1,67 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Teste da preempção por tempo (quantum) + +#include <assert.h> +#include "lib/pplibc.h" +#include "syscall.h" + +#define WORKLOAD 10000 + +struct task_t *pang, *peng, *ping, *pong, *pung; + +// simula um processamento pesado +int hardwork(int n) +{ + int soma = 0; + + for (int i = 0; i < n; i++) + for (int j = 0; j < n; j++) + soma += j; + return (soma); +} + +// corpo das tarefas +void body(void *arg) +{ + printk("%s: inicio\n", (char *)arg); + for (int i = 0; i < 10; i++) + { + printk("%s: %d\n", (char *)arg, i); + hardwork(WORKLOAD); + } + printk("%s: fim\n", (char *)arg); + task_exit(NOERROR); +} + +// corpo da tarefa principal +void user_main(void *arg) +{ + int id; + char *name; + + name = task_name(NULL); + id = task_id(NULL); + printk("%5u ms: %s (id %d): inicio\n", time(), name, id); + + // cria tarefas + pang = task_create("pang", body, "\tPang"); + assert(pang); + peng = task_create("peng", body, "\t\tPeng"); + assert(peng); + ping = task_create("ping", body, "\t\t\tPing"); + assert(ping); + pong = task_create("pong", body, "\t\t\t\tPong"); + assert(pong); + pung = task_create("pung", body, "\t\t\t\t\tPung"); + assert(pung); + + printk("%5u ms: %s fim\n", time(), name); + + task_exit(NOERROR); +} diff --git a/test/pingpong-preempcao.txt b/test/pingpong-preempcao.txt @@ -0,0 +1,66 @@ +PPOS: system initializing +PPOS: system ready (uptime 0 ms) + 0 ms: user_main (id 1): inicio + 0 ms: user_main fim + Pang: inicio + Pang: 0 + Peng: inicio + Peng: 0 + Ping: inicio + Ping: 0 + Pong: inicio + Pong: 0 + Pung: inicio + Pung: 0 + Pang: 1 + Peng: 1 + Ping: 1 + Pong: 1 + Pung: 1 + Pang: 2 + Peng: 2 + Ping: 2 + Pong: 2 + Pung: 2 + Pang: 3 + Peng: 3 + Ping: 3 + Pong: 3 + Pung: 3 + Pang: 4 + Peng: 4 + Ping: 4 + Pong: 4 + Pung: 4 + Pang: 5 + Peng: 5 + Ping: 5 + Pong: 5 + Pung: 5 + Pang: 6 + Peng: 6 + Ping: 6 + Pong: 6 + Pung: 6 + Pang: 7 + Peng: 7 + Ping: 7 + Pong: 7 + Pung: 7 + Pang: 8 + Peng: 8 + Ping: 8 + Pong: 8 + Pung: 8 + Pang: 9 + Peng: 9 + Ping: 9 + Pong: 9 + Pung: 9 + Pang: fim + Peng: fim + Ping: fim + Pong: fim + Pung: fim +PPOS: system terminating +PPOS: system terminated (uptime 0 ms) diff --git a/test/pingpong-scheduler.c b/test/pingpong-scheduler.c @@ -0,0 +1,63 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Teste do escalonador com prioridades dinâmicas + +#include <assert.h> +#include "lib/pplibc.h" +#include "syscall.h" + +struct task_t *pang, *peng, *ping, *pong, *pung; + +// corpo das tarefas +void body(void *arg) +{ + printk("%s: inicio (prioridade %d)\n", + (char *)arg, sched_getprio(NULL)); + + for (int i = 0; i < 10; i++) + { + printk("%s: %d\n", (char *)arg, i); + task_yield(); + } + printk("%s: fim\n", (char *)arg); + task_exit(NOERROR); +} + +// corpo da tarefa principal +void user_main(void *arg) +{ + int id; + char *name; + + name = task_name(NULL); + id = task_id(NULL); + printk("%5u ms: %s (id %d): inicio\n", time(), name, id); + + // cria tarefas + pang = task_create("pang", body, "\tPang"); + assert(pang); + peng = task_create("peng", body, "\t\tPeng"); + assert(peng); + ping = task_create("ping", body, "\t\t\tPing"); + assert(ping); + pong = task_create("pong", body, "\t\t\t\tPong"); + assert(pong); + pung = task_create("pung", body, "\t\t\t\t\tPung"); + assert(pung); + + // ajusta prioridades + sched_setprio(pang, 0); + sched_setprio(peng, 2); + sched_setprio(ping, 4); + sched_setprio(pong, 6); + sched_setprio(pung, 8); + + printk("%5u ms: %s fim\n", time(), name); + + task_exit(NOERROR); +} diff --git a/test/pingpong-scheduler.txt b/test/pingpong-scheduler.txt @@ -0,0 +1,66 @@ +PPOS: system initializing +PPOS: system ready (uptime 0 ms) + 0 ms: user_main (id 1): inicio + 0 ms: user_main fim + Pang: inicio (prioridade 0) + Pang: 0 + Pang: 1 + Peng: inicio (prioridade 2) + Peng: 0 + Pang: 2 + Ping: inicio (prioridade 4) + Ping: 0 + Pang: 3 + Peng: 1 + Pong: inicio (prioridade 6) + Pong: 0 + Pang: 4 + Pung: inicio (prioridade 8) + Pung: 0 + Ping: 1 + Peng: 2 + Pang: 5 + Pang: 6 + Pong: 1 + Peng: 3 + Pang: 7 + Ping: 2 + Pang: 8 + Pung: 1 + Peng: 4 + Pang: 9 + Pong: 2 + Ping: 3 + Pang: fim + Peng: 5 + Pung: 2 + Ping: 4 + Peng: 6 + Pong: 3 + Peng: 7 + Ping: 5 + Peng: 8 + Pung: 3 + Peng: 9 + Pong: 4 + Ping: 6 + Peng: fim + Ping: 7 + Pung: 4 + Pong: 5 + Ping: 8 + Ping: 9 + Pong: 6 + Ping: fim + Pung: 5 + Pong: 7 + Pong: 8 + Pung: 6 + Pong: 9 + Pong: fim + Pung: 7 + Pung: 8 + Pung: 9 + Pung: fim +PPOS: system terminating +PPOS: system terminated (uptime 0 ms) diff --git a/test/pingpong-semaphore-stress.c b/test/pingpong-semaphore-stress.c @@ -0,0 +1,102 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Teste de semáforos (stress) + +#include <assert.h> +#include "lib/pplibc.h" +#include "syscall.h" + +#define NUMTASKS 64 +#define NUMSTEPS 1000000 + +struct task_t *task[NUMTASKS]; +int s; +static int soma = 0; + +// corpo das tarefas +void body() +{ + int status; + + for (int i = 0; i < NUMSTEPS; i++) + { + // incrementa contador (seção crítica) + status = sem_down(s); + if (status == ERROR) + break; + + soma += 1; + + status = sem_up(s); + if (status == ERROR) + break; + } + + task_exit(NOERROR); +} + +// corpo da tarefa principal +void user_main(void *arg) +{ + int status, id; + char *name; + + name = task_name(NULL); + id = task_id(NULL); + printk("%5u ms: %s (id %d): inicio\n", time(), name, id); + + // inicia semáforo em 0 (bloqueado) + s = sem_create(0); + assert(s >= 0); + + printk("%d tarefas somando %d vezes cada, aguarde...\n", + NUMTASKS, NUMSTEPS); + + // cria tarefas + for (int i = 0; i < NUMTASKS; i++) + { + task[i] = task_create(NULL, body, "Task"); + assert(task[i]); + } + + // espera um pouco para liberar o semáforo; isso faz com que todas + // as tarefas tenham sido criadas e possam competir pelo semáforo + // em pé de igualdade. + task_sleep(100); + status = sem_up(s); + assert(status == NOERROR); + + // aguarda as tarefas encerrarem + for (int i = 0; i < NUMTASKS; i++) + { + status = task_wait(task[i]); + assert(status == NOERROR); + } + + // verifica se a soma está correta + if (soma == (NUMTASKS * NUMSTEPS)) + printk("A soma deu %d, valor correto!\n", soma); + else + printk("A soma deu %d, mas deveria dar %d!\n", + soma, NUMTASKS * NUMSTEPS); + + // destrói o semáforo + status = sem_destroy(s); + assert(status == NOERROR); + + // destrói as tarefas + for (int i = 0; i < NUMTASKS; i++) + { + status = task_destroy(task[i]); + assert(status == NOERROR); + } + + printk("%5u ms: %s fim\n", time(), name); + + task_exit(NOERROR); +} diff --git a/test/pingpong-semaphore-stress.txt b/test/pingpong-semaphore-stress.txt @@ -0,0 +1,74 @@ +PPOS: system initializing +PPOS: system ready (uptime 0 ms) + 0 ms: user_main (id 1): inicio +64 tarefas somando 1000000 vezes cada, aguarde... +PPOS: task 2 ((null)), 7535 ms run, 70 ms cpu, 1000001 acts, exit code 0 +PPOS: task 3 ((null)), 7535 ms run, 78 ms cpu, 1000001 acts, exit code 0 +PPOS: task 4 ((null)), 7535 ms run, 67 ms cpu, 1000001 acts, exit code 0 +PPOS: task 5 ((null)), 7535 ms run, 58 ms cpu, 1000001 acts, exit code 0 +PPOS: task 6 ((null)), 7535 ms run, 65 ms cpu, 1000001 acts, exit code 0 +PPOS: task 7 ((null)), 7535 ms run, 67 ms cpu, 1000001 acts, exit code 0 +PPOS: task 8 ((null)), 7536 ms run, 66 ms cpu, 1000001 acts, exit code 0 +PPOS: task 9 ((null)), 7536 ms run, 71 ms cpu, 1000001 acts, exit code 0 +PPOS: task 10 ((null)), 7536 ms run, 60 ms cpu, 1000001 acts, exit code 0 +PPOS: task 11 ((null)), 7536 ms run, 61 ms cpu, 1000001 acts, exit code 0 +PPOS: task 12 ((null)), 7536 ms run, 77 ms cpu, 1000001 acts, exit code 0 +PPOS: task 13 ((null)), 7536 ms run, 67 ms cpu, 1000001 acts, exit code 0 +PPOS: task 14 ((null)), 7536 ms run, 75 ms cpu, 1000001 acts, exit code 0 +PPOS: task 15 ((null)), 7536 ms run, 78 ms cpu, 1000001 acts, exit code 0 +PPOS: task 16 ((null)), 7536 ms run, 55 ms cpu, 1000001 acts, exit code 0 +PPOS: task 17 ((null)), 7536 ms run, 67 ms cpu, 1000001 acts, exit code 0 +PPOS: task 18 ((null)), 7536 ms run, 53 ms cpu, 1000001 acts, exit code 0 +PPOS: task 19 ((null)), 7536 ms run, 64 ms cpu, 1000001 acts, exit code 0 +PPOS: task 20 ((null)), 7536 ms run, 71 ms cpu, 1000001 acts, exit code 0 +PPOS: task 21 ((null)), 7536 ms run, 51 ms cpu, 1000001 acts, exit code 0 +PPOS: task 22 ((null)), 7536 ms run, 68 ms cpu, 1000001 acts, exit code 0 +PPOS: task 23 ((null)), 7536 ms run, 71 ms cpu, 1000001 acts, exit code 0 +PPOS: task 24 ((null)), 7536 ms run, 74 ms cpu, 1000001 acts, exit code 0 +PPOS: task 25 ((null)), 7536 ms run, 63 ms cpu, 1000001 acts, exit code 0 +PPOS: task 26 ((null)), 7536 ms run, 84 ms cpu, 1000001 acts, exit code 0 +PPOS: task 27 ((null)), 7536 ms run, 64 ms cpu, 1000001 acts, exit code 0 +PPOS: task 28 ((null)), 7536 ms run, 70 ms cpu, 1000001 acts, exit code 0 +PPOS: task 29 ((null)), 7536 ms run, 58 ms cpu, 1000001 acts, exit code 0 +PPOS: task 30 ((null)), 7536 ms run, 87 ms cpu, 1000001 acts, exit code 0 +PPOS: task 31 ((null)), 7536 ms run, 81 ms cpu, 1000001 acts, exit code 0 +PPOS: task 32 ((null)), 7536 ms run, 59 ms cpu, 1000001 acts, exit code 0 +PPOS: task 33 ((null)), 7536 ms run, 79 ms cpu, 1000001 acts, exit code 0 +PPOS: task 34 ((null)), 7537 ms run, 70 ms cpu, 1000001 acts, exit code 0 +PPOS: task 35 ((null)), 7537 ms run, 67 ms cpu, 1000001 acts, exit code 0 +PPOS: task 36 ((null)), 7537 ms run, 73 ms cpu, 1000001 acts, exit code 0 +PPOS: task 37 ((null)), 7537 ms run, 81 ms cpu, 1000001 acts, exit code 0 +PPOS: task 38 ((null)), 7537 ms run, 59 ms cpu, 1000001 acts, exit code 0 +PPOS: task 39 ((null)), 7537 ms run, 76 ms cpu, 1000001 acts, exit code 0 +PPOS: task 40 ((null)), 7537 ms run, 56 ms cpu, 1000001 acts, exit code 0 +PPOS: task 41 ((null)), 7537 ms run, 72 ms cpu, 1000001 acts, exit code 0 +PPOS: task 42 ((null)), 7537 ms run, 78 ms cpu, 1000001 acts, exit code 0 +PPOS: task 43 ((null)), 7537 ms run, 85 ms cpu, 1000001 acts, exit code 0 +PPOS: task 44 ((null)), 7537 ms run, 88 ms cpu, 1000001 acts, exit code 0 +PPOS: task 45 ((null)), 7537 ms run, 80 ms cpu, 1000001 acts, exit code 0 +PPOS: task 46 ((null)), 7537 ms run, 61 ms cpu, 1000001 acts, exit code 0 +PPOS: task 47 ((null)), 7537 ms run, 75 ms cpu, 1000001 acts, exit code 0 +PPOS: task 48 ((null)), 7537 ms run, 74 ms cpu, 1000001 acts, exit code 0 +PPOS: task 49 ((null)), 7537 ms run, 72 ms cpu, 1000001 acts, exit code 0 +PPOS: task 50 ((null)), 7537 ms run, 71 ms cpu, 1000001 acts, exit code 0 +PPOS: task 51 ((null)), 7537 ms run, 55 ms cpu, 1000001 acts, exit code 0 +PPOS: task 52 ((null)), 7537 ms run, 76 ms cpu, 1000001 acts, exit code 0 +PPOS: task 53 ((null)), 7537 ms run, 70 ms cpu, 1000001 acts, exit code 0 +PPOS: task 54 ((null)), 7537 ms run, 52 ms cpu, 1000001 acts, exit code 0 +PPOS: task 55 ((null)), 7537 ms run, 77 ms cpu, 1000001 acts, exit code 0 +PPOS: task 56 ((null)), 7537 ms run, 77 ms cpu, 1000001 acts, exit code 0 +PPOS: task 57 ((null)), 7537 ms run, 74 ms cpu, 1000001 acts, exit code 0 +PPOS: task 58 ((null)), 7537 ms run, 58 ms cpu, 1000001 acts, exit code 0 +PPOS: task 59 ((null)), 7537 ms run, 62 ms cpu, 1000001 acts, exit code 0 +PPOS: task 60 ((null)), 7538 ms run, 68 ms cpu, 1000001 acts, exit code 0 +PPOS: task 61 ((null)), 7538 ms run, 69 ms cpu, 1000001 acts, exit code 0 +PPOS: task 62 ((null)), 7538 ms run, 67 ms cpu, 1000001 acts, exit code 0 +PPOS: task 63 ((null)), 7538 ms run, 79 ms cpu, 1000001 acts, exit code 0 +PPOS: task 64 ((null)), 7538 ms run, 71 ms cpu, 1000001 acts, exit code 0 +PPOS: task 65 ((null)), 7538 ms run, 64 ms cpu, 1000001 acts, exit code 0 +A soma deu 64000000, valor correto! + 7538 ms: user_main fim +PPOS: task 1 (user_main), 7538 ms run, 0 ms cpu, 34 acts, exit code 0 +PPOS: task 0 (kernel), 7538 ms run, 3102 ms cpu, 64000099 acts, exit code 0 +PPOS: system terminating +PPOS: system terminated (uptime 7538 ms) diff --git a/test/pingpong-semaphore.c b/test/pingpong-semaphore.c @@ -0,0 +1,117 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Teste de semáforos (leve) + +#include <assert.h> +#include "lib/pplibc.h" +#include "syscall.h" + +struct task_t *a1, *a2, *b1, *b2; // descritores de tarefas +int s1, s2; // descritores de semáforos + +// corpo da tarefa A +void body_a(void *arg) +{ + int status; + + for (int i = 0; i < 5; i++) + { + status = sem_down(s1); + if (status == ERROR) + task_exit(1); + + printk("%5u ms: %s zig (%d)\n", time(), (char *)arg, i); + task_sleep(1000); + + status = sem_up(s2); + if (status == ERROR) + task_exit(2); + } + + task_exit(NOERROR); +} + +// corpo da tarefa B +void body_b(void *arg) +{ + int status; + + for (int i = 0; i < 5; i++) + { + status = sem_down(s2); + if (status == ERROR) + task_exit(1); + + printk("%5u ms: %s zag (%d)\n", time(), (char *)arg, i); + task_sleep(1000); + + status = sem_up(s1); + if (status == ERROR) + task_exit(2); + } + task_exit(NOERROR); +} + +// corpo da tarefa principal +void user_main(void *arg) +{ + int status, id; + char *name; + + name = task_name(NULL); + id = task_id(NULL); + printk("%5u ms: %s (id %d): inicio\n", time(), name, id); + + // inicia semáforos + s1 = sem_create(1); + assert(s1 >= 0); + s2 = sem_create(0); + assert(s2 >= 0); + + // cria tarefas + a1 = task_create("a1", body_a, "A1"); + assert(a1); + a2 = task_create("a2", body_a, "\tA2"); + assert(a2); + b1 = task_create("b1", body_b, "\t\t\tB1"); + assert(b1); + b2 = task_create("b2", body_b, "\t\t\t\tB2"); + assert(b2); + + // aguarda a1 encerrar sem erro + status = task_wait(a1); + assert(status == NOERROR); + + // destrói semáforos + status = sem_destroy(s1); + assert(status == NOERROR); + status = sem_destroy(s2); + assert(status == NOERROR); + + // aguarda a2, b1 e b2 encerrarem com erro + status = task_wait(a2); + assert(status != NOERROR); + status = task_wait(b1); + assert(status != NOERROR); + status = task_wait(b2); + assert(status != NOERROR); + + // destrói as tarefas + status = task_destroy(a1); + assert(status == NOERROR); + status = task_destroy(a2); + assert(status == NOERROR); + status = task_destroy(b1); + assert(status == NOERROR); + status = task_destroy(b2); + assert(status == NOERROR); + + printk("%5u ms: %s fim\n", time(), name); + + task_exit(NOERROR); +} diff --git a/test/pingpong-semaphore.txt b/test/pingpong-semaphore.txt @@ -0,0 +1,30 @@ +PPOS: system initializing +PPOS: system ready (uptime 0 ms) + 0 ms: user_main (id 1): inicio + 0 ms: A1 zig (0) + 1000 ms: B1 zag (0) + 2000 ms: A2 zig (0) + 3000 ms: B2 zag (0) + 4000 ms: A1 zig (1) + 5000 ms: B1 zag (1) + 6000 ms: A2 zig (1) + 7000 ms: B2 zag (1) + 8000 ms: A1 zig (2) + 9000 ms: B1 zag (2) +10000 ms: A2 zig (2) +11000 ms: B2 zag (2) +12000 ms: A1 zig (3) +13000 ms: B1 zag (3) +14000 ms: A2 zig (3) +15000 ms: B2 zag (3) +16000 ms: A1 zig (4) +PPOS: task 2 (a1), 17000 ms run, 0 ms cpu, 10 acts, exit code 0 +17000 ms: B1 zag (4) +PPOS: task 3 (a2), 17000 ms run, 0 ms cpu, 10 acts, exit code 1 +PPOS: task 5 (b2), 17000 ms run, 0 ms cpu, 10 acts, exit code 1 +PPOS: task 4 (b1), 18000 ms run, 0 ms cpu, 11 acts, exit code 2 +18000 ms: user_main fim +PPOS: task 1 (user_main), 18000 ms run, 0 ms cpu, 4 acts, exit code 0 +PPOS: task 0 (kernel), 18000 ms run, 18000 ms cpu, 46 acts, exit code 0 +PPOS: system terminating +PPOS: system terminated (uptime 18000 ms) diff --git a/test/pingpong-sleep.c b/test/pingpong-sleep.c @@ -0,0 +1,111 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Teste da função task_sleep() + +#include <assert.h> +#include "lib/pplibc.h" +#include "syscall.h" + +struct task_t *pang, *peng, *ping, *pong, *pung; + +// corpo das tarefas +void body(void *arg) +{ + int i, t_sleep, t_before, t_after; + char *status; + + printk("%5u ms: %s: inicio\n", time(), (char *)arg); + for (i = 0; i < 20; i++) + { + // sorteia tempo entre 0 e 2000 ms (2s), em saltos de 100 ms + t_sleep = 100 * (randnum() % 21); + + // informa o quanto vai dormir + printk("%5u ms: %s vai dormir %d ms\n", + time(), (char *)arg, t_sleep); + + // registra tempo antes e depois de dormir + t_before = time(); + task_sleep(t_sleep); + t_after = time(); + + // verifica se dormiu o intervalo especificado + status = (t_after - t_before) == t_sleep ? "ok" : "ERRADO"; + + // informa o quanto efetivamente dormiu + printk("%5u ms: %s dormiu %d ms (%s)\n", time(), + (char *)arg, t_after - t_before, status); + } + printk("%5u ms: %s: fim\n", time(), (char *)arg); + task_exit(NOERROR); +} + +// corpo da tarefa principal +void user_main(void *arg) +{ + int status, id; + char *name; + + name = task_name(NULL); + id = task_id(NULL); + printk("%5u ms: %s (id %d): inicio\n", time(), name, id); + + // cria tarefas + pang = task_create("pang", body, "\tPang"); + assert(pang); + peng = task_create("peng", body, "\t\tPeng"); + assert(peng); + ping = task_create("ping", body, "\t\t\tPing"); + assert(ping); + pong = task_create("pong", body, "\t\t\t\tPong"); + assert(pong); + pung = task_create("pung", body, "\t\t\t\t\tPung"); + assert(pung); + + // aguarda tarefas concluírem + printk("%5u ms: user: espera Pang...\n", time()); + status = task_wait(pang); + assert(status == NOERROR); + printk("%5u ms: user: Pang acabou\n", time()); + + printk("%5u ms: user: espera Peng...\n", time()); + status = task_wait(peng); + assert(status == NOERROR); + printk("%5u ms: user: Peng acabou\n", time()); + + printk("%5u ms: user: espera Ping...\n", time()); + status = task_wait(ping); + assert(status == NOERROR); + printk("%5u ms: user: Ping acabou\n", time()); + + printk("%5u ms: user: espera Pong...\n", time()); + status = task_wait(pong); + assert(status == NOERROR); + printk("%5u ms: user: Pong acabou\n", time()); + + printk("%5u ms: user: espera Pung...\n", time()); + status = task_wait(pung); + assert(status == NOERROR); + printk("%5u ms: user: Pung acabou\n", time()); + + // destrói tarefas + status = task_destroy(pang); + assert(status == NOERROR); + status = task_destroy(peng); + assert(status == NOERROR); + status = task_destroy(ping); + assert(status == NOERROR); + status = task_destroy(pong); + assert(status == NOERROR); + status = task_destroy(pung); + assert(status == NOERROR); + + printk("%5u ms: %s fim\n", time(), name); + + task_exit(NOERROR); +} diff --git a/test/pingpong-sleep.txt b/test/pingpong-sleep.txt @@ -0,0 +1,233 @@ +PPOS: system initializing +PPOS: system ready (uptime 0 ms) + 0 ms: user_main (id 1): inicio + 0 ms: user: espera Pang... + 0 ms: Pang: inicio + 0 ms: Pang vai dormir 1000 ms + 0 ms: Peng: inicio + 0 ms: Peng vai dormir 1100 ms + 0 ms: Ping: inicio + 0 ms: Ping vai dormir 500 ms + 0 ms: Pong: inicio + 0 ms: Pong vai dormir 0 ms + 0 ms: Pong dormiu 0 ms (ok) + 0 ms: Pong vai dormir 1900 ms + 0 ms: Pung: inicio + 0 ms: Pung vai dormir 1300 ms + 500 ms: Ping dormiu 500 ms (ok) + 500 ms: Ping vai dormir 800 ms + 1000 ms: Pang dormiu 1000 ms (ok) + 1000 ms: Pang vai dormir 200 ms + 1100 ms: Peng dormiu 1100 ms (ok) + 1100 ms: Peng vai dormir 0 ms + 1100 ms: Peng dormiu 0 ms (ok) + 1100 ms: Peng vai dormir 800 ms + 1200 ms: Pang dormiu 200 ms (ok) + 1200 ms: Pang vai dormir 300 ms + 1300 ms: Pung dormiu 1300 ms (ok) + 1300 ms: Pung vai dormir 500 ms + 1300 ms: Ping dormiu 800 ms (ok) + 1300 ms: Ping vai dormir 400 ms + 1500 ms: Pang dormiu 300 ms (ok) + 1500 ms: Pang vai dormir 300 ms + 1700 ms: Ping dormiu 400 ms (ok) + 1700 ms: Ping vai dormir 1600 ms + 1800 ms: Pung dormiu 500 ms (ok) + 1800 ms: Pung vai dormir 200 ms + 1800 ms: Pang dormiu 300 ms (ok) + 1800 ms: Pang vai dormir 1900 ms + 1900 ms: Pong dormiu 1900 ms (ok) + 1900 ms: Pong vai dormir 200 ms + 1900 ms: Peng dormiu 800 ms (ok) + 1900 ms: Peng vai dormir 700 ms + 2000 ms: Pung dormiu 200 ms (ok) + 2000 ms: Pung vai dormir 300 ms + 2100 ms: Pong dormiu 200 ms (ok) + 2100 ms: Pong vai dormir 200 ms + 2300 ms: Pung dormiu 300 ms (ok) + 2300 ms: Pung vai dormir 600 ms + 2300 ms: Pong dormiu 200 ms (ok) + 2300 ms: Pong vai dormir 600 ms + 2600 ms: Peng dormiu 700 ms (ok) + 2600 ms: Peng vai dormir 100 ms + 2700 ms: Peng dormiu 100 ms (ok) + 2700 ms: Peng vai dormir 600 ms + 2900 ms: Pung dormiu 600 ms (ok) + 2900 ms: Pung vai dormir 200 ms + 2900 ms: Pong dormiu 600 ms (ok) + 2900 ms: Pong vai dormir 1700 ms + 3100 ms: Pung dormiu 200 ms (ok) + 3100 ms: Pung vai dormir 400 ms + 3300 ms: Ping dormiu 1600 ms (ok) + 3300 ms: Ping vai dormir 1700 ms + 3300 ms: Peng dormiu 600 ms (ok) + 3300 ms: Peng vai dormir 500 ms + 3500 ms: Pung dormiu 400 ms (ok) + 3500 ms: Pung vai dormir 300 ms + 3700 ms: Pang dormiu 1900 ms (ok) + 3700 ms: Pang vai dormir 2000 ms + 3800 ms: Peng dormiu 500 ms (ok) + 3800 ms: Peng vai dormir 300 ms + 3800 ms: Pung dormiu 300 ms (ok) + 3800 ms: Pung vai dormir 1100 ms + 4100 ms: Peng dormiu 300 ms (ok) + 4100 ms: Peng vai dormir 1400 ms + 4600 ms: Pong dormiu 1700 ms (ok) + 4600 ms: Pong vai dormir 400 ms + 4900 ms: Pung dormiu 1100 ms (ok) + 4900 ms: Pung vai dormir 1600 ms + 5000 ms: Ping dormiu 1700 ms (ok) + 5000 ms: Ping vai dormir 300 ms + 5000 ms: Pong dormiu 400 ms (ok) + 5000 ms: Pong vai dormir 1400 ms + 5300 ms: Ping dormiu 300 ms (ok) + 5300 ms: Ping vai dormir 1200 ms + 5500 ms: Peng dormiu 1400 ms (ok) + 5500 ms: Peng vai dormir 1700 ms + 5700 ms: Pang dormiu 2000 ms (ok) + 5700 ms: Pang vai dormir 1600 ms + 6400 ms: Pong dormiu 1400 ms (ok) + 6400 ms: Pong vai dormir 300 ms + 6500 ms: Pung dormiu 1600 ms (ok) + 6500 ms: Pung vai dormir 1000 ms + 6500 ms: Ping dormiu 1200 ms (ok) + 6500 ms: Ping vai dormir 1900 ms + 6700 ms: Pong dormiu 300 ms (ok) + 6700 ms: Pong vai dormir 600 ms + 7200 ms: Peng dormiu 1700 ms (ok) + 7200 ms: Peng vai dormir 400 ms + 7300 ms: Pang dormiu 1600 ms (ok) + 7300 ms: Pang vai dormir 0 ms + 7300 ms: Pang dormiu 0 ms (ok) + 7300 ms: Pang vai dormir 1200 ms + 7300 ms: Pong dormiu 600 ms (ok) + 7300 ms: Pong vai dormir 1100 ms + 7500 ms: Pung dormiu 1000 ms (ok) + 7500 ms: Pung vai dormir 1500 ms + 7600 ms: Peng dormiu 400 ms (ok) + 7600 ms: Peng vai dormir 1300 ms + 8400 ms: Ping dormiu 1900 ms (ok) + 8400 ms: Ping vai dormir 700 ms + 8400 ms: Pong dormiu 1100 ms (ok) + 8400 ms: Pong vai dormir 1300 ms + 8500 ms: Pang dormiu 1200 ms (ok) + 8500 ms: Pang vai dormir 1700 ms + 8900 ms: Peng dormiu 1300 ms (ok) + 8900 ms: Peng vai dormir 700 ms + 9000 ms: Pung dormiu 1500 ms (ok) + 9000 ms: Pung vai dormir 1700 ms + 9100 ms: Ping dormiu 700 ms (ok) + 9100 ms: Ping vai dormir 0 ms + 9100 ms: Ping dormiu 0 ms (ok) + 9100 ms: Ping vai dormir 400 ms + 9500 ms: Ping dormiu 400 ms (ok) + 9500 ms: Ping vai dormir 900 ms + 9600 ms: Peng dormiu 700 ms (ok) + 9600 ms: Peng vai dormir 700 ms + 9700 ms: Pong dormiu 1300 ms (ok) + 9700 ms: Pong vai dormir 1700 ms +10200 ms: Pang dormiu 1700 ms (ok) +10200 ms: Pang vai dormir 1800 ms +10300 ms: Peng dormiu 700 ms (ok) +10300 ms: Peng vai dormir 1700 ms +10400 ms: Ping dormiu 900 ms (ok) +10400 ms: Ping vai dormir 1200 ms +10700 ms: Pung dormiu 1700 ms (ok) +10700 ms: Pung vai dormir 1700 ms +11400 ms: Pong dormiu 1700 ms (ok) +11400 ms: Pong vai dormir 1100 ms +11600 ms: Ping dormiu 1200 ms (ok) +11600 ms: Ping vai dormir 1500 ms +12000 ms: Pang dormiu 1800 ms (ok) +12000 ms: Pang vai dormir 1400 ms +12000 ms: Peng dormiu 1700 ms (ok) +12000 ms: Peng vai dormir 1400 ms +12400 ms: Pung dormiu 1700 ms (ok) +12400 ms: Pung vai dormir 1700 ms +12500 ms: Pong dormiu 1100 ms (ok) +12500 ms: Pong vai dormir 300 ms +12800 ms: Pong dormiu 300 ms (ok) +12800 ms: Pong vai dormir 1500 ms +13100 ms: Ping dormiu 1500 ms (ok) +13100 ms: Ping vai dormir 1300 ms +13400 ms: Pang dormiu 1400 ms (ok) +13400 ms: Pang vai dormir 1100 ms +13400 ms: Peng dormiu 1400 ms (ok) +13400 ms: Peng vai dormir 200 ms +13600 ms: Peng dormiu 200 ms (ok) +13600 ms: Peng vai dormir 1200 ms +14100 ms: Pung dormiu 1700 ms (ok) +14100 ms: Pung vai dormir 1700 ms +14300 ms: Pong dormiu 1500 ms (ok) +14300 ms: Pong vai dormir 1600 ms +14400 ms: Ping dormiu 1300 ms (ok) +14400 ms: Ping vai dormir 600 ms +14500 ms: Pang dormiu 1100 ms (ok) +14500 ms: Pang vai dormir 1900 ms +14800 ms: Peng dormiu 1200 ms (ok) +14800 ms: Peng vai dormir 500 ms +15000 ms: Ping dormiu 600 ms (ok) +15000 ms: Ping vai dormir 1900 ms +15300 ms: Peng dormiu 500 ms (ok) +15300 ms: Peng vai dormir 600 ms +15800 ms: Pung dormiu 1700 ms (ok) +15800 ms: Pung vai dormir 200 ms +15900 ms: Pong dormiu 1600 ms (ok) +15900 ms: Pong vai dormir 2000 ms +15900 ms: Peng dormiu 600 ms (ok) +15900 ms: Peng: fim +PPOS: task 3 (peng), 15900 ms run, 0 ms cpu, 20 acts, exit code 0 +16000 ms: Pung dormiu 200 ms (ok) +16000 ms: Pung vai dormir 1200 ms +16400 ms: Pang dormiu 1900 ms (ok) +16400 ms: Pang vai dormir 1400 ms +16900 ms: Ping dormiu 1900 ms (ok) +16900 ms: Ping vai dormir 0 ms +16900 ms: Ping dormiu 0 ms (ok) +16900 ms: Ping vai dormir 200 ms +17100 ms: Ping dormiu 200 ms (ok) +17100 ms: Ping vai dormir 1900 ms +17200 ms: Pung dormiu 1200 ms (ok) +17200 ms: Pung vai dormir 100 ms +17300 ms: Pung dormiu 100 ms (ok) +17300 ms: Pung vai dormir 1400 ms +17800 ms: Pang dormiu 1400 ms (ok) +17800 ms: Pang vai dormir 1400 ms +17900 ms: Pong dormiu 2000 ms (ok) +17900 ms: Pong vai dormir 100 ms +18000 ms: Pong dormiu 100 ms (ok) +18000 ms: Pong vai dormir 200 ms +18200 ms: Pong dormiu 200 ms (ok) +18200 ms: Pong: fim +PPOS: task 5 (pong), 18200 ms run, 0 ms cpu, 20 acts, exit code 0 +18700 ms: Pung dormiu 1400 ms (ok) +18700 ms: Pung: fim +PPOS: task 6 (pung), 18700 ms run, 0 ms cpu, 21 acts, exit code 0 +19000 ms: Ping dormiu 1900 ms (ok) +19000 ms: Ping: fim +PPOS: task 4 (ping), 19000 ms run, 0 ms cpu, 19 acts, exit code 0 +19200 ms: Pang dormiu 1400 ms (ok) +19200 ms: Pang vai dormir 1600 ms +20800 ms: Pang dormiu 1600 ms (ok) +20800 ms: Pang vai dormir 1900 ms +22700 ms: Pang dormiu 1900 ms (ok) +22700 ms: Pang vai dormir 1000 ms +23700 ms: Pang dormiu 1000 ms (ok) +23700 ms: Pang vai dormir 800 ms +24500 ms: Pang dormiu 800 ms (ok) +24500 ms: Pang: fim +PPOS: task 2 (pang), 24500 ms run, 0 ms cpu, 20 acts, exit code 0 +24500 ms: user: Pang acabou +24500 ms: user: espera Peng... +24500 ms: user: Peng acabou +24500 ms: user: espera Ping... +24500 ms: user: Ping acabou +24500 ms: user: espera Pong... +24500 ms: user: Pong acabou +24500 ms: user: espera Pung... +24500 ms: user: Pung acabou +24500 ms: user_main fim +PPOS: task 1 (user_main), 24500 ms run, 0 ms cpu, 2 acts, exit code 0 +PPOS: task 0 (kernel), 24500 ms run, 24500 ms cpu, 103 acts, exit code 0 +PPOS: system terminating +PPOS: system terminated (uptime 24500 ms) diff --git a/test/pingpong-task1.c b/test/pingpong-task1.c @@ -0,0 +1,76 @@ +// PingPongOS - PingPong Operating System +// Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 07/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Teste da gestão básica de tarefas + +#include <assert.h> +#include "lib/pplibc.h" +#include "syscall.h" + +static struct task_t *ping, *pong; + +// corpo da tarefa Ping +void body_ping(void *) +{ + char *name = task_name(NULL); + + printk("\t%s: inicio\n", name); + for (int i = 0; i < 4; i++) + { + printk("\t%s: %d\n", name, i); + task_switch(pong); + } + printk("\t%s: fim\n", name); + task_switch(NULL); +} + +// corpo da tarefa Pong +void body_pong(void *) +{ + char *name = task_name(NULL); + + printk("\t\t%s: inicio\n", name); + for (int i = 0; i < 4; i++) + { + printk("\t\t%s: %d\n", name, i); + task_switch(ping); + } + printk("\t\t%s: fim\n", name); + task_switch(NULL); +} + +// corpo da tarefa principal +void user_main(void *arg) +{ + int status, id; + char *name; + + name = task_name(NULL); + id = task_id(NULL); + printk("%5u ms: %s (id %d): inicio\n", time(), name, id); + + ping = task_create("ping", body_ping, NULL); + assert(ping); + pong = task_create("pong", body_pong, NULL); + assert(pong); + + status = task_switch(ping); + assert(status == NOERROR); + + status = task_switch(pong); + assert(status == NOERROR); + + status = task_destroy(ping); + assert(status == NOERROR); + + status = task_destroy(pong); + assert(status == NOERROR); + + printk("%5u ms: %s fim\n", time(), name); + + task_switch(NULL); +} diff --git a/test/pingpong-task1.txt b/test/pingpong-task1.txt @@ -0,0 +1,18 @@ +PPOS: system initializing +PPOS: system ready (uptime 0 ms) + 0 ms: user_main (id 1): inicio + ping: inicio + ping: 0 + pong: inicio + pong: 0 + ping: 1 + pong: 1 + ping: 2 + pong: 2 + ping: 3 + pong: 3 + ping: fim + pong: fim + 0 ms: user_main fim +PPOS: system terminating +PPOS: system terminated (uptime 0 ms) diff --git a/test/pingpong-task2.c b/test/pingpong-task2.c @@ -0,0 +1,74 @@ +// PingPongOS - PingPong Operating System +// Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 07/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Teste da gestão básica de tarefas + +#include <assert.h> +#include "lib/pplibc.h" +#include "syscall.h" + +#define NUMTASKS 512 + +static struct task_t *task[NUMTASKS]; + +// corpo das tarefas +void body_task(void *arg) +{ + int id; + int next; + + id = task_id(NULL); + printk("\tIniciei tarefa %5d\n", id); + + // passa o controle para a proxima tarefa + next = ((long)arg + 1) % NUMTASKS; + printk("\tVou mudar para a tarefa %d\n", task_id(task[next])); + task_switch(task[next]); + + printk("\tEncerrei tarefa %5d\n", id); + + task_switch(NULL); +} + +// corpo da tarefa principal +void user_main(void *arg) +{ + int status, id; + char *name; + + name = task_name(NULL); + id = task_id(NULL); + printk("%5u ms: %s (id %d): inicio\n", time(), name, id); + + // inicia tarefas + for (long i = 0; i < NUMTASKS; i++) + { + task[i] = task_create(NULL, body_task, (void *)i); + assert(task[i]); + printk("%s: criei a tarefa %d\n", name, task_id(task[i])); + } + + // passa o controle para cada uma delas em sequencia + for (long i = 0; i < NUMTASKS; i++) + { + printk("%s: vou ativar a tarefa %d\n", name, task_id(task[i])); + status = task_switch(task[i]); + assert(status == NOERROR); + } + + // destrói as tarefas + for (long i = 0; i < NUMTASKS; i++) + { + printk("%s: vou destruir a tarefa %d\n", name, task_id(task[i])); + status = task_destroy(task[i]); + assert(status == NOERROR); + } + + printk("%5u ms: %s fim\n", time(), name); + + task_switch(NULL); +} diff --git a/test/pingpong-task2.txt b/test/pingpong-task2.txt @@ -0,0 +1,3078 @@ +PPOS: system initializing +PPOS: system ready (uptime 0 ms) + 0 ms: user_main (id 1): inicio +user_main: criei a tarefa 2 +user_main: criei a tarefa 3 +user_main: criei a tarefa 4 +user_main: criei a tarefa 5 +user_main: criei a tarefa 6 +user_main: criei a tarefa 7 +user_main: criei a tarefa 8 +user_main: criei a tarefa 9 +user_main: criei a tarefa 10 +user_main: criei a tarefa 11 +user_main: criei a tarefa 12 +user_main: criei a tarefa 13 +user_main: criei a tarefa 14 +user_main: criei a tarefa 15 +user_main: criei a tarefa 16 +user_main: criei a tarefa 17 +user_main: criei a tarefa 18 +user_main: criei a tarefa 19 +user_main: criei a tarefa 20 +user_main: criei a tarefa 21 +user_main: criei a tarefa 22 +user_main: criei a tarefa 23 +user_main: criei a tarefa 24 +user_main: criei a tarefa 25 +user_main: criei a tarefa 26 +user_main: criei a tarefa 27 +user_main: criei a tarefa 28 +user_main: criei a tarefa 29 +user_main: criei a tarefa 30 +user_main: criei a tarefa 31 +user_main: criei a tarefa 32 +user_main: criei a tarefa 33 +user_main: criei a tarefa 34 +user_main: criei a tarefa 35 +user_main: criei a tarefa 36 +user_main: criei a tarefa 37 +user_main: criei a tarefa 38 +user_main: criei a tarefa 39 +user_main: criei a tarefa 40 +user_main: criei a tarefa 41 +user_main: criei a tarefa 42 +user_main: criei a tarefa 43 +user_main: criei a tarefa 44 +user_main: criei a tarefa 45 +user_main: criei a tarefa 46 +user_main: criei a tarefa 47 +user_main: criei a tarefa 48 +user_main: criei a tarefa 49 +user_main: criei a tarefa 50 +user_main: criei a tarefa 51 +user_main: criei a tarefa 52 +user_main: criei a tarefa 53 +user_main: criei a tarefa 54 +user_main: criei a tarefa 55 +user_main: criei a tarefa 56 +user_main: criei a tarefa 57 +user_main: criei a tarefa 58 +user_main: criei a tarefa 59 +user_main: criei a tarefa 60 +user_main: criei a tarefa 61 +user_main: criei a tarefa 62 +user_main: criei a tarefa 63 +user_main: criei a tarefa 64 +user_main: criei a tarefa 65 +user_main: criei a tarefa 66 +user_main: criei a tarefa 67 +user_main: criei a tarefa 68 +user_main: criei a tarefa 69 +user_main: criei a tarefa 70 +user_main: criei a tarefa 71 +user_main: criei a tarefa 72 +user_main: criei a tarefa 73 +user_main: criei a tarefa 74 +user_main: criei a tarefa 75 +user_main: criei a tarefa 76 +user_main: criei a tarefa 77 +user_main: criei a tarefa 78 +user_main: criei a tarefa 79 +user_main: criei a tarefa 80 +user_main: criei a tarefa 81 +user_main: criei a tarefa 82 +user_main: criei a tarefa 83 +user_main: criei a tarefa 84 +user_main: criei a tarefa 85 +user_main: criei a tarefa 86 +user_main: criei a tarefa 87 +user_main: criei a tarefa 88 +user_main: criei a tarefa 89 +user_main: criei a tarefa 90 +user_main: criei a tarefa 91 +user_main: criei a tarefa 92 +user_main: criei a tarefa 93 +user_main: criei a tarefa 94 +user_main: criei a tarefa 95 +user_main: criei a tarefa 96 +user_main: criei a tarefa 97 +user_main: criei a tarefa 98 +user_main: criei a tarefa 99 +user_main: criei a tarefa 100 +user_main: criei a tarefa 101 +user_main: criei a tarefa 102 +user_main: criei a tarefa 103 +user_main: criei a tarefa 104 +user_main: criei a tarefa 105 +user_main: criei a tarefa 106 +user_main: criei a tarefa 107 +user_main: criei a tarefa 108 +user_main: criei a tarefa 109 +user_main: criei a tarefa 110 +user_main: criei a tarefa 111 +user_main: criei a tarefa 112 +user_main: criei a tarefa 113 +user_main: criei a tarefa 114 +user_main: criei a tarefa 115 +user_main: criei a tarefa 116 +user_main: criei a tarefa 117 +user_main: criei a tarefa 118 +user_main: criei a tarefa 119 +user_main: criei a tarefa 120 +user_main: criei a tarefa 121 +user_main: criei a tarefa 122 +user_main: criei a tarefa 123 +user_main: criei a tarefa 124 +user_main: criei a tarefa 125 +user_main: criei a tarefa 126 +user_main: criei a tarefa 127 +user_main: criei a tarefa 128 +user_main: criei a tarefa 129 +user_main: criei a tarefa 130 +user_main: criei a tarefa 131 +user_main: criei a tarefa 132 +user_main: criei a tarefa 133 +user_main: criei a tarefa 134 +user_main: criei a tarefa 135 +user_main: criei a tarefa 136 +user_main: criei a tarefa 137 +user_main: criei a tarefa 138 +user_main: criei a tarefa 139 +user_main: criei a tarefa 140 +user_main: criei a tarefa 141 +user_main: criei a tarefa 142 +user_main: criei a tarefa 143 +user_main: criei a tarefa 144 +user_main: criei a tarefa 145 +user_main: criei a tarefa 146 +user_main: criei a tarefa 147 +user_main: criei a tarefa 148 +user_main: criei a tarefa 149 +user_main: criei a tarefa 150 +user_main: criei a tarefa 151 +user_main: criei a tarefa 152 +user_main: criei a tarefa 153 +user_main: criei a tarefa 154 +user_main: criei a tarefa 155 +user_main: criei a tarefa 156 +user_main: criei a tarefa 157 +user_main: criei a tarefa 158 +user_main: criei a tarefa 159 +user_main: criei a tarefa 160 +user_main: criei a tarefa 161 +user_main: criei a tarefa 162 +user_main: criei a tarefa 163 +user_main: criei a tarefa 164 +user_main: criei a tarefa 165 +user_main: criei a tarefa 166 +user_main: criei a tarefa 167 +user_main: criei a tarefa 168 +user_main: criei a tarefa 169 +user_main: criei a tarefa 170 +user_main: criei a tarefa 171 +user_main: criei a tarefa 172 +user_main: criei a tarefa 173 +user_main: criei a tarefa 174 +user_main: criei a tarefa 175 +user_main: criei a tarefa 176 +user_main: criei a tarefa 177 +user_main: criei a tarefa 178 +user_main: criei a tarefa 179 +user_main: criei a tarefa 180 +user_main: criei a tarefa 181 +user_main: criei a tarefa 182 +user_main: criei a tarefa 183 +user_main: criei a tarefa 184 +user_main: criei a tarefa 185 +user_main: criei a tarefa 186 +user_main: criei a tarefa 187 +user_main: criei a tarefa 188 +user_main: criei a tarefa 189 +user_main: criei a tarefa 190 +user_main: criei a tarefa 191 +user_main: criei a tarefa 192 +user_main: criei a tarefa 193 +user_main: criei a tarefa 194 +user_main: criei a tarefa 195 +user_main: criei a tarefa 196 +user_main: criei a tarefa 197 +user_main: criei a tarefa 198 +user_main: criei a tarefa 199 +user_main: criei a tarefa 200 +user_main: criei a tarefa 201 +user_main: criei a tarefa 202 +user_main: criei a tarefa 203 +user_main: criei a tarefa 204 +user_main: criei a tarefa 205 +user_main: criei a tarefa 206 +user_main: criei a tarefa 207 +user_main: criei a tarefa 208 +user_main: criei a tarefa 209 +user_main: criei a tarefa 210 +user_main: criei a tarefa 211 +user_main: criei a tarefa 212 +user_main: criei a tarefa 213 +user_main: criei a tarefa 214 +user_main: criei a tarefa 215 +user_main: criei a tarefa 216 +user_main: criei a tarefa 217 +user_main: criei a tarefa 218 +user_main: criei a tarefa 219 +user_main: criei a tarefa 220 +user_main: criei a tarefa 221 +user_main: criei a tarefa 222 +user_main: criei a tarefa 223 +user_main: criei a tarefa 224 +user_main: criei a tarefa 225 +user_main: criei a tarefa 226 +user_main: criei a tarefa 227 +user_main: criei a tarefa 228 +user_main: criei a tarefa 229 +user_main: criei a tarefa 230 +user_main: criei a tarefa 231 +user_main: criei a tarefa 232 +user_main: criei a tarefa 233 +user_main: criei a tarefa 234 +user_main: criei a tarefa 235 +user_main: criei a tarefa 236 +user_main: criei a tarefa 237 +user_main: criei a tarefa 238 +user_main: criei a tarefa 239 +user_main: criei a tarefa 240 +user_main: criei a tarefa 241 +user_main: criei a tarefa 242 +user_main: criei a tarefa 243 +user_main: criei a tarefa 244 +user_main: criei a tarefa 245 +user_main: criei a tarefa 246 +user_main: criei a tarefa 247 +user_main: criei a tarefa 248 +user_main: criei a tarefa 249 +user_main: criei a tarefa 250 +user_main: criei a tarefa 251 +user_main: criei a tarefa 252 +user_main: criei a tarefa 253 +user_main: criei a tarefa 254 +user_main: criei a tarefa 255 +user_main: criei a tarefa 256 +user_main: criei a tarefa 257 +user_main: criei a tarefa 258 +user_main: criei a tarefa 259 +user_main: criei a tarefa 260 +user_main: criei a tarefa 261 +user_main: criei a tarefa 262 +user_main: criei a tarefa 263 +user_main: criei a tarefa 264 +user_main: criei a tarefa 265 +user_main: criei a tarefa 266 +user_main: criei a tarefa 267 +user_main: criei a tarefa 268 +user_main: criei a tarefa 269 +user_main: criei a tarefa 270 +user_main: criei a tarefa 271 +user_main: criei a tarefa 272 +user_main: criei a tarefa 273 +user_main: criei a tarefa 274 +user_main: criei a tarefa 275 +user_main: criei a tarefa 276 +user_main: criei a tarefa 277 +user_main: criei a tarefa 278 +user_main: criei a tarefa 279 +user_main: criei a tarefa 280 +user_main: criei a tarefa 281 +user_main: criei a tarefa 282 +user_main: criei a tarefa 283 +user_main: criei a tarefa 284 +user_main: criei a tarefa 285 +user_main: criei a tarefa 286 +user_main: criei a tarefa 287 +user_main: criei a tarefa 288 +user_main: criei a tarefa 289 +user_main: criei a tarefa 290 +user_main: criei a tarefa 291 +user_main: criei a tarefa 292 +user_main: criei a tarefa 293 +user_main: criei a tarefa 294 +user_main: criei a tarefa 295 +user_main: criei a tarefa 296 +user_main: criei a tarefa 297 +user_main: criei a tarefa 298 +user_main: criei a tarefa 299 +user_main: criei a tarefa 300 +user_main: criei a tarefa 301 +user_main: criei a tarefa 302 +user_main: criei a tarefa 303 +user_main: criei a tarefa 304 +user_main: criei a tarefa 305 +user_main: criei a tarefa 306 +user_main: criei a tarefa 307 +user_main: criei a tarefa 308 +user_main: criei a tarefa 309 +user_main: criei a tarefa 310 +user_main: criei a tarefa 311 +user_main: criei a tarefa 312 +user_main: criei a tarefa 313 +user_main: criei a tarefa 314 +user_main: criei a tarefa 315 +user_main: criei a tarefa 316 +user_main: criei a tarefa 317 +user_main: criei a tarefa 318 +user_main: criei a tarefa 319 +user_main: criei a tarefa 320 +user_main: criei a tarefa 321 +user_main: criei a tarefa 322 +user_main: criei a tarefa 323 +user_main: criei a tarefa 324 +user_main: criei a tarefa 325 +user_main: criei a tarefa 326 +user_main: criei a tarefa 327 +user_main: criei a tarefa 328 +user_main: criei a tarefa 329 +user_main: criei a tarefa 330 +user_main: criei a tarefa 331 +user_main: criei a tarefa 332 +user_main: criei a tarefa 333 +user_main: criei a tarefa 334 +user_main: criei a tarefa 335 +user_main: criei a tarefa 336 +user_main: criei a tarefa 337 +user_main: criei a tarefa 338 +user_main: criei a tarefa 339 +user_main: criei a tarefa 340 +user_main: criei a tarefa 341 +user_main: criei a tarefa 342 +user_main: criei a tarefa 343 +user_main: criei a tarefa 344 +user_main: criei a tarefa 345 +user_main: criei a tarefa 346 +user_main: criei a tarefa 347 +user_main: criei a tarefa 348 +user_main: criei a tarefa 349 +user_main: criei a tarefa 350 +user_main: criei a tarefa 351 +user_main: criei a tarefa 352 +user_main: criei a tarefa 353 +user_main: criei a tarefa 354 +user_main: criei a tarefa 355 +user_main: criei a tarefa 356 +user_main: criei a tarefa 357 +user_main: criei a tarefa 358 +user_main: criei a tarefa 359 +user_main: criei a tarefa 360 +user_main: criei a tarefa 361 +user_main: criei a tarefa 362 +user_main: criei a tarefa 363 +user_main: criei a tarefa 364 +user_main: criei a tarefa 365 +user_main: criei a tarefa 366 +user_main: criei a tarefa 367 +user_main: criei a tarefa 368 +user_main: criei a tarefa 369 +user_main: criei a tarefa 370 +user_main: criei a tarefa 371 +user_main: criei a tarefa 372 +user_main: criei a tarefa 373 +user_main: criei a tarefa 374 +user_main: criei a tarefa 375 +user_main: criei a tarefa 376 +user_main: criei a tarefa 377 +user_main: criei a tarefa 378 +user_main: criei a tarefa 379 +user_main: criei a tarefa 380 +user_main: criei a tarefa 381 +user_main: criei a tarefa 382 +user_main: criei a tarefa 383 +user_main: criei a tarefa 384 +user_main: criei a tarefa 385 +user_main: criei a tarefa 386 +user_main: criei a tarefa 387 +user_main: criei a tarefa 388 +user_main: criei a tarefa 389 +user_main: criei a tarefa 390 +user_main: criei a tarefa 391 +user_main: criei a tarefa 392 +user_main: criei a tarefa 393 +user_main: criei a tarefa 394 +user_main: criei a tarefa 395 +user_main: criei a tarefa 396 +user_main: criei a tarefa 397 +user_main: criei a tarefa 398 +user_main: criei a tarefa 399 +user_main: criei a tarefa 400 +user_main: criei a tarefa 401 +user_main: criei a tarefa 402 +user_main: criei a tarefa 403 +user_main: criei a tarefa 404 +user_main: criei a tarefa 405 +user_main: criei a tarefa 406 +user_main: criei a tarefa 407 +user_main: criei a tarefa 408 +user_main: criei a tarefa 409 +user_main: criei a tarefa 410 +user_main: criei a tarefa 411 +user_main: criei a tarefa 412 +user_main: criei a tarefa 413 +user_main: criei a tarefa 414 +user_main: criei a tarefa 415 +user_main: criei a tarefa 416 +user_main: criei a tarefa 417 +user_main: criei a tarefa 418 +user_main: criei a tarefa 419 +user_main: criei a tarefa 420 +user_main: criei a tarefa 421 +user_main: criei a tarefa 422 +user_main: criei a tarefa 423 +user_main: criei a tarefa 424 +user_main: criei a tarefa 425 +user_main: criei a tarefa 426 +user_main: criei a tarefa 427 +user_main: criei a tarefa 428 +user_main: criei a tarefa 429 +user_main: criei a tarefa 430 +user_main: criei a tarefa 431 +user_main: criei a tarefa 432 +user_main: criei a tarefa 433 +user_main: criei a tarefa 434 +user_main: criei a tarefa 435 +user_main: criei a tarefa 436 +user_main: criei a tarefa 437 +user_main: criei a tarefa 438 +user_main: criei a tarefa 439 +user_main: criei a tarefa 440 +user_main: criei a tarefa 441 +user_main: criei a tarefa 442 +user_main: criei a tarefa 443 +user_main: criei a tarefa 444 +user_main: criei a tarefa 445 +user_main: criei a tarefa 446 +user_main: criei a tarefa 447 +user_main: criei a tarefa 448 +user_main: criei a tarefa 449 +user_main: criei a tarefa 450 +user_main: criei a tarefa 451 +user_main: criei a tarefa 452 +user_main: criei a tarefa 453 +user_main: criei a tarefa 454 +user_main: criei a tarefa 455 +user_main: criei a tarefa 456 +user_main: criei a tarefa 457 +user_main: criei a tarefa 458 +user_main: criei a tarefa 459 +user_main: criei a tarefa 460 +user_main: criei a tarefa 461 +user_main: criei a tarefa 462 +user_main: criei a tarefa 463 +user_main: criei a tarefa 464 +user_main: criei a tarefa 465 +user_main: criei a tarefa 466 +user_main: criei a tarefa 467 +user_main: criei a tarefa 468 +user_main: criei a tarefa 469 +user_main: criei a tarefa 470 +user_main: criei a tarefa 471 +user_main: criei a tarefa 472 +user_main: criei a tarefa 473 +user_main: criei a tarefa 474 +user_main: criei a tarefa 475 +user_main: criei a tarefa 476 +user_main: criei a tarefa 477 +user_main: criei a tarefa 478 +user_main: criei a tarefa 479 +user_main: criei a tarefa 480 +user_main: criei a tarefa 481 +user_main: criei a tarefa 482 +user_main: criei a tarefa 483 +user_main: criei a tarefa 484 +user_main: criei a tarefa 485 +user_main: criei a tarefa 486 +user_main: criei a tarefa 487 +user_main: criei a tarefa 488 +user_main: criei a tarefa 489 +user_main: criei a tarefa 490 +user_main: criei a tarefa 491 +user_main: criei a tarefa 492 +user_main: criei a tarefa 493 +user_main: criei a tarefa 494 +user_main: criei a tarefa 495 +user_main: criei a tarefa 496 +user_main: criei a tarefa 497 +user_main: criei a tarefa 498 +user_main: criei a tarefa 499 +user_main: criei a tarefa 500 +user_main: criei a tarefa 501 +user_main: criei a tarefa 502 +user_main: criei a tarefa 503 +user_main: criei a tarefa 504 +user_main: criei a tarefa 505 +user_main: criei a tarefa 506 +user_main: criei a tarefa 507 +user_main: criei a tarefa 508 +user_main: criei a tarefa 509 +user_main: criei a tarefa 510 +user_main: criei a tarefa 511 +user_main: criei a tarefa 512 +user_main: criei a tarefa 513 +user_main: vou ativar a tarefa 2 + Iniciei tarefa 2 + Vou mudar para a tarefa 3 + Iniciei tarefa 3 + Vou mudar para a tarefa 4 + Iniciei tarefa 4 + Vou mudar para a tarefa 5 + Iniciei tarefa 5 + Vou mudar para a tarefa 6 + Iniciei tarefa 6 + Vou mudar para a tarefa 7 + Iniciei tarefa 7 + Vou mudar para a tarefa 8 + Iniciei tarefa 8 + Vou mudar para a tarefa 9 + Iniciei tarefa 9 + Vou mudar para a tarefa 10 + Iniciei tarefa 10 + Vou mudar para a tarefa 11 + Iniciei tarefa 11 + Vou mudar para a tarefa 12 + Iniciei tarefa 12 + Vou mudar para a tarefa 13 + Iniciei tarefa 13 + Vou mudar para a tarefa 14 + Iniciei tarefa 14 + Vou mudar para a tarefa 15 + Iniciei tarefa 15 + Vou mudar para a tarefa 16 + Iniciei tarefa 16 + Vou mudar para a tarefa 17 + Iniciei tarefa 17 + Vou mudar para a tarefa 18 + Iniciei tarefa 18 + Vou mudar para a tarefa 19 + Iniciei tarefa 19 + Vou mudar para a tarefa 20 + Iniciei tarefa 20 + Vou mudar para a tarefa 21 + Iniciei tarefa 21 + Vou mudar para a tarefa 22 + Iniciei tarefa 22 + Vou mudar para a tarefa 23 + Iniciei tarefa 23 + Vou mudar para a tarefa 24 + Iniciei tarefa 24 + Vou mudar para a tarefa 25 + Iniciei tarefa 25 + Vou mudar para a tarefa 26 + Iniciei tarefa 26 + Vou mudar para a tarefa 27 + Iniciei tarefa 27 + Vou mudar para a tarefa 28 + Iniciei tarefa 28 + Vou mudar para a tarefa 29 + Iniciei tarefa 29 + Vou mudar para a tarefa 30 + Iniciei tarefa 30 + Vou mudar para a tarefa 31 + Iniciei tarefa 31 + Vou mudar para a tarefa 32 + Iniciei tarefa 32 + Vou mudar para a tarefa 33 + Iniciei tarefa 33 + Vou mudar para a tarefa 34 + Iniciei tarefa 34 + Vou mudar para a tarefa 35 + Iniciei tarefa 35 + Vou mudar para a tarefa 36 + Iniciei tarefa 36 + Vou mudar para a tarefa 37 + Iniciei tarefa 37 + Vou mudar para a tarefa 38 + Iniciei tarefa 38 + Vou mudar para a tarefa 39 + Iniciei tarefa 39 + Vou mudar para a tarefa 40 + Iniciei tarefa 40 + Vou mudar para a tarefa 41 + Iniciei tarefa 41 + Vou mudar para a tarefa 42 + Iniciei tarefa 42 + Vou mudar para a tarefa 43 + Iniciei tarefa 43 + Vou mudar para a tarefa 44 + Iniciei tarefa 44 + Vou mudar para a tarefa 45 + Iniciei tarefa 45 + Vou mudar para a tarefa 46 + Iniciei tarefa 46 + Vou mudar para a tarefa 47 + Iniciei tarefa 47 + Vou mudar para a tarefa 48 + Iniciei tarefa 48 + Vou mudar para a tarefa 49 + Iniciei tarefa 49 + Vou mudar para a tarefa 50 + Iniciei tarefa 50 + Vou mudar para a tarefa 51 + Iniciei tarefa 51 + Vou mudar para a tarefa 52 + Iniciei tarefa 52 + Vou mudar para a tarefa 53 + Iniciei tarefa 53 + Vou mudar para a tarefa 54 + Iniciei tarefa 54 + Vou mudar para a tarefa 55 + Iniciei tarefa 55 + Vou mudar para a tarefa 56 + Iniciei tarefa 56 + Vou mudar para a tarefa 57 + Iniciei tarefa 57 + Vou mudar para a tarefa 58 + Iniciei tarefa 58 + Vou mudar para a tarefa 59 + Iniciei tarefa 59 + Vou mudar para a tarefa 60 + Iniciei tarefa 60 + Vou mudar para a tarefa 61 + Iniciei tarefa 61 + Vou mudar para a tarefa 62 + Iniciei tarefa 62 + Vou mudar para a tarefa 63 + Iniciei tarefa 63 + Vou mudar para a tarefa 64 + Iniciei tarefa 64 + Vou mudar para a tarefa 65 + Iniciei tarefa 65 + Vou mudar para a tarefa 66 + Iniciei tarefa 66 + Vou mudar para a tarefa 67 + Iniciei tarefa 67 + Vou mudar para a tarefa 68 + Iniciei tarefa 68 + Vou mudar para a tarefa 69 + Iniciei tarefa 69 + Vou mudar para a tarefa 70 + Iniciei tarefa 70 + Vou mudar para a tarefa 71 + Iniciei tarefa 71 + Vou mudar para a tarefa 72 + Iniciei tarefa 72 + Vou mudar para a tarefa 73 + Iniciei tarefa 73 + Vou mudar para a tarefa 74 + Iniciei tarefa 74 + Vou mudar para a tarefa 75 + Iniciei tarefa 75 + Vou mudar para a tarefa 76 + Iniciei tarefa 76 + Vou mudar para a tarefa 77 + Iniciei tarefa 77 + Vou mudar para a tarefa 78 + Iniciei tarefa 78 + Vou mudar para a tarefa 79 + Iniciei tarefa 79 + Vou mudar para a tarefa 80 + Iniciei tarefa 80 + Vou mudar para a tarefa 81 + Iniciei tarefa 81 + Vou mudar para a tarefa 82 + Iniciei tarefa 82 + Vou mudar para a tarefa 83 + Iniciei tarefa 83 + Vou mudar para a tarefa 84 + Iniciei tarefa 84 + Vou mudar para a tarefa 85 + Iniciei tarefa 85 + Vou mudar para a tarefa 86 + Iniciei tarefa 86 + Vou mudar para a tarefa 87 + Iniciei tarefa 87 + Vou mudar para a tarefa 88 + Iniciei tarefa 88 + Vou mudar para a tarefa 89 + Iniciei tarefa 89 + Vou mudar para a tarefa 90 + Iniciei tarefa 90 + Vou mudar para a tarefa 91 + Iniciei tarefa 91 + Vou mudar para a tarefa 92 + Iniciei tarefa 92 + Vou mudar para a tarefa 93 + Iniciei tarefa 93 + Vou mudar para a tarefa 94 + Iniciei tarefa 94 + Vou mudar para a tarefa 95 + Iniciei tarefa 95 + Vou mudar para a tarefa 96 + Iniciei tarefa 96 + Vou mudar para a tarefa 97 + Iniciei tarefa 97 + Vou mudar para a tarefa 98 + Iniciei tarefa 98 + Vou mudar para a tarefa 99 + Iniciei tarefa 99 + Vou mudar para a tarefa 100 + Iniciei tarefa 100 + Vou mudar para a tarefa 101 + Iniciei tarefa 101 + Vou mudar para a tarefa 102 + Iniciei tarefa 102 + Vou mudar para a tarefa 103 + Iniciei tarefa 103 + Vou mudar para a tarefa 104 + Iniciei tarefa 104 + Vou mudar para a tarefa 105 + Iniciei tarefa 105 + Vou mudar para a tarefa 106 + Iniciei tarefa 106 + Vou mudar para a tarefa 107 + Iniciei tarefa 107 + Vou mudar para a tarefa 108 + Iniciei tarefa 108 + Vou mudar para a tarefa 109 + Iniciei tarefa 109 + Vou mudar para a tarefa 110 + Iniciei tarefa 110 + Vou mudar para a tarefa 111 + Iniciei tarefa 111 + Vou mudar para a tarefa 112 + Iniciei tarefa 112 + Vou mudar para a tarefa 113 + Iniciei tarefa 113 + Vou mudar para a tarefa 114 + Iniciei tarefa 114 + Vou mudar para a tarefa 115 + Iniciei tarefa 115 + Vou mudar para a tarefa 116 + Iniciei tarefa 116 + Vou mudar para a tarefa 117 + Iniciei tarefa 117 + Vou mudar para a tarefa 118 + Iniciei tarefa 118 + Vou mudar para a tarefa 119 + Iniciei tarefa 119 + Vou mudar para a tarefa 120 + Iniciei tarefa 120 + Vou mudar para a tarefa 121 + Iniciei tarefa 121 + Vou mudar para a tarefa 122 + Iniciei tarefa 122 + Vou mudar para a tarefa 123 + Iniciei tarefa 123 + Vou mudar para a tarefa 124 + Iniciei tarefa 124 + Vou mudar para a tarefa 125 + Iniciei tarefa 125 + Vou mudar para a tarefa 126 + Iniciei tarefa 126 + Vou mudar para a tarefa 127 + Iniciei tarefa 127 + Vou mudar para a tarefa 128 + Iniciei tarefa 128 + Vou mudar para a tarefa 129 + Iniciei tarefa 129 + Vou mudar para a tarefa 130 + Iniciei tarefa 130 + Vou mudar para a tarefa 131 + Iniciei tarefa 131 + Vou mudar para a tarefa 132 + Iniciei tarefa 132 + Vou mudar para a tarefa 133 + Iniciei tarefa 133 + Vou mudar para a tarefa 134 + Iniciei tarefa 134 + Vou mudar para a tarefa 135 + Iniciei tarefa 135 + Vou mudar para a tarefa 136 + Iniciei tarefa 136 + Vou mudar para a tarefa 137 + Iniciei tarefa 137 + Vou mudar para a tarefa 138 + Iniciei tarefa 138 + Vou mudar para a tarefa 139 + Iniciei tarefa 139 + Vou mudar para a tarefa 140 + Iniciei tarefa 140 + Vou mudar para a tarefa 141 + Iniciei tarefa 141 + Vou mudar para a tarefa 142 + Iniciei tarefa 142 + Vou mudar para a tarefa 143 + Iniciei tarefa 143 + Vou mudar para a tarefa 144 + Iniciei tarefa 144 + Vou mudar para a tarefa 145 + Iniciei tarefa 145 + Vou mudar para a tarefa 146 + Iniciei tarefa 146 + Vou mudar para a tarefa 147 + Iniciei tarefa 147 + Vou mudar para a tarefa 148 + Iniciei tarefa 148 + Vou mudar para a tarefa 149 + Iniciei tarefa 149 + Vou mudar para a tarefa 150 + Iniciei tarefa 150 + Vou mudar para a tarefa 151 + Iniciei tarefa 151 + Vou mudar para a tarefa 152 + Iniciei tarefa 152 + Vou mudar para a tarefa 153 + Iniciei tarefa 153 + Vou mudar para a tarefa 154 + Iniciei tarefa 154 + Vou mudar para a tarefa 155 + Iniciei tarefa 155 + Vou mudar para a tarefa 156 + Iniciei tarefa 156 + Vou mudar para a tarefa 157 + Iniciei tarefa 157 + Vou mudar para a tarefa 158 + Iniciei tarefa 158 + Vou mudar para a tarefa 159 + Iniciei tarefa 159 + Vou mudar para a tarefa 160 + Iniciei tarefa 160 + Vou mudar para a tarefa 161 + Iniciei tarefa 161 + Vou mudar para a tarefa 162 + Iniciei tarefa 162 + Vou mudar para a tarefa 163 + Iniciei tarefa 163 + Vou mudar para a tarefa 164 + Iniciei tarefa 164 + Vou mudar para a tarefa 165 + Iniciei tarefa 165 + Vou mudar para a tarefa 166 + Iniciei tarefa 166 + Vou mudar para a tarefa 167 + Iniciei tarefa 167 + Vou mudar para a tarefa 168 + Iniciei tarefa 168 + Vou mudar para a tarefa 169 + Iniciei tarefa 169 + Vou mudar para a tarefa 170 + Iniciei tarefa 170 + Vou mudar para a tarefa 171 + Iniciei tarefa 171 + Vou mudar para a tarefa 172 + Iniciei tarefa 172 + Vou mudar para a tarefa 173 + Iniciei tarefa 173 + Vou mudar para a tarefa 174 + Iniciei tarefa 174 + Vou mudar para a tarefa 175 + Iniciei tarefa 175 + Vou mudar para a tarefa 176 + Iniciei tarefa 176 + Vou mudar para a tarefa 177 + Iniciei tarefa 177 + Vou mudar para a tarefa 178 + Iniciei tarefa 178 + Vou mudar para a tarefa 179 + Iniciei tarefa 179 + Vou mudar para a tarefa 180 + Iniciei tarefa 180 + Vou mudar para a tarefa 181 + Iniciei tarefa 181 + Vou mudar para a tarefa 182 + Iniciei tarefa 182 + Vou mudar para a tarefa 183 + Iniciei tarefa 183 + Vou mudar para a tarefa 184 + Iniciei tarefa 184 + Vou mudar para a tarefa 185 + Iniciei tarefa 185 + Vou mudar para a tarefa 186 + Iniciei tarefa 186 + Vou mudar para a tarefa 187 + Iniciei tarefa 187 + Vou mudar para a tarefa 188 + Iniciei tarefa 188 + Vou mudar para a tarefa 189 + Iniciei tarefa 189 + Vou mudar para a tarefa 190 + Iniciei tarefa 190 + Vou mudar para a tarefa 191 + Iniciei tarefa 191 + Vou mudar para a tarefa 192 + Iniciei tarefa 192 + Vou mudar para a tarefa 193 + Iniciei tarefa 193 + Vou mudar para a tarefa 194 + Iniciei tarefa 194 + Vou mudar para a tarefa 195 + Iniciei tarefa 195 + Vou mudar para a tarefa 196 + Iniciei tarefa 196 + Vou mudar para a tarefa 197 + Iniciei tarefa 197 + Vou mudar para a tarefa 198 + Iniciei tarefa 198 + Vou mudar para a tarefa 199 + Iniciei tarefa 199 + Vou mudar para a tarefa 200 + Iniciei tarefa 200 + Vou mudar para a tarefa 201 + Iniciei tarefa 201 + Vou mudar para a tarefa 202 + Iniciei tarefa 202 + Vou mudar para a tarefa 203 + Iniciei tarefa 203 + Vou mudar para a tarefa 204 + Iniciei tarefa 204 + Vou mudar para a tarefa 205 + Iniciei tarefa 205 + Vou mudar para a tarefa 206 + Iniciei tarefa 206 + Vou mudar para a tarefa 207 + Iniciei tarefa 207 + Vou mudar para a tarefa 208 + Iniciei tarefa 208 + Vou mudar para a tarefa 209 + Iniciei tarefa 209 + Vou mudar para a tarefa 210 + Iniciei tarefa 210 + Vou mudar para a tarefa 211 + Iniciei tarefa 211 + Vou mudar para a tarefa 212 + Iniciei tarefa 212 + Vou mudar para a tarefa 213 + Iniciei tarefa 213 + Vou mudar para a tarefa 214 + Iniciei tarefa 214 + Vou mudar para a tarefa 215 + Iniciei tarefa 215 + Vou mudar para a tarefa 216 + Iniciei tarefa 216 + Vou mudar para a tarefa 217 + Iniciei tarefa 217 + Vou mudar para a tarefa 218 + Iniciei tarefa 218 + Vou mudar para a tarefa 219 + Iniciei tarefa 219 + Vou mudar para a tarefa 220 + Iniciei tarefa 220 + Vou mudar para a tarefa 221 + Iniciei tarefa 221 + Vou mudar para a tarefa 222 + Iniciei tarefa 222 + Vou mudar para a tarefa 223 + Iniciei tarefa 223 + Vou mudar para a tarefa 224 + Iniciei tarefa 224 + Vou mudar para a tarefa 225 + Iniciei tarefa 225 + Vou mudar para a tarefa 226 + Iniciei tarefa 226 + Vou mudar para a tarefa 227 + Iniciei tarefa 227 + Vou mudar para a tarefa 228 + Iniciei tarefa 228 + Vou mudar para a tarefa 229 + Iniciei tarefa 229 + Vou mudar para a tarefa 230 + Iniciei tarefa 230 + Vou mudar para a tarefa 231 + Iniciei tarefa 231 + Vou mudar para a tarefa 232 + Iniciei tarefa 232 + Vou mudar para a tarefa 233 + Iniciei tarefa 233 + Vou mudar para a tarefa 234 + Iniciei tarefa 234 + Vou mudar para a tarefa 235 + Iniciei tarefa 235 + Vou mudar para a tarefa 236 + Iniciei tarefa 236 + Vou mudar para a tarefa 237 + Iniciei tarefa 237 + Vou mudar para a tarefa 238 + Iniciei tarefa 238 + Vou mudar para a tarefa 239 + Iniciei tarefa 239 + Vou mudar para a tarefa 240 + Iniciei tarefa 240 + Vou mudar para a tarefa 241 + Iniciei tarefa 241 + Vou mudar para a tarefa 242 + Iniciei tarefa 242 + Vou mudar para a tarefa 243 + Iniciei tarefa 243 + Vou mudar para a tarefa 244 + Iniciei tarefa 244 + Vou mudar para a tarefa 245 + Iniciei tarefa 245 + Vou mudar para a tarefa 246 + Iniciei tarefa 246 + Vou mudar para a tarefa 247 + Iniciei tarefa 247 + Vou mudar para a tarefa 248 + Iniciei tarefa 248 + Vou mudar para a tarefa 249 + Iniciei tarefa 249 + Vou mudar para a tarefa 250 + Iniciei tarefa 250 + Vou mudar para a tarefa 251 + Iniciei tarefa 251 + Vou mudar para a tarefa 252 + Iniciei tarefa 252 + Vou mudar para a tarefa 253 + Iniciei tarefa 253 + Vou mudar para a tarefa 254 + Iniciei tarefa 254 + Vou mudar para a tarefa 255 + Iniciei tarefa 255 + Vou mudar para a tarefa 256 + Iniciei tarefa 256 + Vou mudar para a tarefa 257 + Iniciei tarefa 257 + Vou mudar para a tarefa 258 + Iniciei tarefa 258 + Vou mudar para a tarefa 259 + Iniciei tarefa 259 + Vou mudar para a tarefa 260 + Iniciei tarefa 260 + Vou mudar para a tarefa 261 + Iniciei tarefa 261 + Vou mudar para a tarefa 262 + Iniciei tarefa 262 + Vou mudar para a tarefa 263 + Iniciei tarefa 263 + Vou mudar para a tarefa 264 + Iniciei tarefa 264 + Vou mudar para a tarefa 265 + Iniciei tarefa 265 + Vou mudar para a tarefa 266 + Iniciei tarefa 266 + Vou mudar para a tarefa 267 + Iniciei tarefa 267 + Vou mudar para a tarefa 268 + Iniciei tarefa 268 + Vou mudar para a tarefa 269 + Iniciei tarefa 269 + Vou mudar para a tarefa 270 + Iniciei tarefa 270 + Vou mudar para a tarefa 271 + Iniciei tarefa 271 + Vou mudar para a tarefa 272 + Iniciei tarefa 272 + Vou mudar para a tarefa 273 + Iniciei tarefa 273 + Vou mudar para a tarefa 274 + Iniciei tarefa 274 + Vou mudar para a tarefa 275 + Iniciei tarefa 275 + Vou mudar para a tarefa 276 + Iniciei tarefa 276 + Vou mudar para a tarefa 277 + Iniciei tarefa 277 + Vou mudar para a tarefa 278 + Iniciei tarefa 278 + Vou mudar para a tarefa 279 + Iniciei tarefa 279 + Vou mudar para a tarefa 280 + Iniciei tarefa 280 + Vou mudar para a tarefa 281 + Iniciei tarefa 281 + Vou mudar para a tarefa 282 + Iniciei tarefa 282 + Vou mudar para a tarefa 283 + Iniciei tarefa 283 + Vou mudar para a tarefa 284 + Iniciei tarefa 284 + Vou mudar para a tarefa 285 + Iniciei tarefa 285 + Vou mudar para a tarefa 286 + Iniciei tarefa 286 + Vou mudar para a tarefa 287 + Iniciei tarefa 287 + Vou mudar para a tarefa 288 + Iniciei tarefa 288 + Vou mudar para a tarefa 289 + Iniciei tarefa 289 + Vou mudar para a tarefa 290 + Iniciei tarefa 290 + Vou mudar para a tarefa 291 + Iniciei tarefa 291 + Vou mudar para a tarefa 292 + Iniciei tarefa 292 + Vou mudar para a tarefa 293 + Iniciei tarefa 293 + Vou mudar para a tarefa 294 + Iniciei tarefa 294 + Vou mudar para a tarefa 295 + Iniciei tarefa 295 + Vou mudar para a tarefa 296 + Iniciei tarefa 296 + Vou mudar para a tarefa 297 + Iniciei tarefa 297 + Vou mudar para a tarefa 298 + Iniciei tarefa 298 + Vou mudar para a tarefa 299 + Iniciei tarefa 299 + Vou mudar para a tarefa 300 + Iniciei tarefa 300 + Vou mudar para a tarefa 301 + Iniciei tarefa 301 + Vou mudar para a tarefa 302 + Iniciei tarefa 302 + Vou mudar para a tarefa 303 + Iniciei tarefa 303 + Vou mudar para a tarefa 304 + Iniciei tarefa 304 + Vou mudar para a tarefa 305 + Iniciei tarefa 305 + Vou mudar para a tarefa 306 + Iniciei tarefa 306 + Vou mudar para a tarefa 307 + Iniciei tarefa 307 + Vou mudar para a tarefa 308 + Iniciei tarefa 308 + Vou mudar para a tarefa 309 + Iniciei tarefa 309 + Vou mudar para a tarefa 310 + Iniciei tarefa 310 + Vou mudar para a tarefa 311 + Iniciei tarefa 311 + Vou mudar para a tarefa 312 + Iniciei tarefa 312 + Vou mudar para a tarefa 313 + Iniciei tarefa 313 + Vou mudar para a tarefa 314 + Iniciei tarefa 314 + Vou mudar para a tarefa 315 + Iniciei tarefa 315 + Vou mudar para a tarefa 316 + Iniciei tarefa 316 + Vou mudar para a tarefa 317 + Iniciei tarefa 317 + Vou mudar para a tarefa 318 + Iniciei tarefa 318 + Vou mudar para a tarefa 319 + Iniciei tarefa 319 + Vou mudar para a tarefa 320 + Iniciei tarefa 320 + Vou mudar para a tarefa 321 + Iniciei tarefa 321 + Vou mudar para a tarefa 322 + Iniciei tarefa 322 + Vou mudar para a tarefa 323 + Iniciei tarefa 323 + Vou mudar para a tarefa 324 + Iniciei tarefa 324 + Vou mudar para a tarefa 325 + Iniciei tarefa 325 + Vou mudar para a tarefa 326 + Iniciei tarefa 326 + Vou mudar para a tarefa 327 + Iniciei tarefa 327 + Vou mudar para a tarefa 328 + Iniciei tarefa 328 + Vou mudar para a tarefa 329 + Iniciei tarefa 329 + Vou mudar para a tarefa 330 + Iniciei tarefa 330 + Vou mudar para a tarefa 331 + Iniciei tarefa 331 + Vou mudar para a tarefa 332 + Iniciei tarefa 332 + Vou mudar para a tarefa 333 + Iniciei tarefa 333 + Vou mudar para a tarefa 334 + Iniciei tarefa 334 + Vou mudar para a tarefa 335 + Iniciei tarefa 335 + Vou mudar para a tarefa 336 + Iniciei tarefa 336 + Vou mudar para a tarefa 337 + Iniciei tarefa 337 + Vou mudar para a tarefa 338 + Iniciei tarefa 338 + Vou mudar para a tarefa 339 + Iniciei tarefa 339 + Vou mudar para a tarefa 340 + Iniciei tarefa 340 + Vou mudar para a tarefa 341 + Iniciei tarefa 341 + Vou mudar para a tarefa 342 + Iniciei tarefa 342 + Vou mudar para a tarefa 343 + Iniciei tarefa 343 + Vou mudar para a tarefa 344 + Iniciei tarefa 344 + Vou mudar para a tarefa 345 + Iniciei tarefa 345 + Vou mudar para a tarefa 346 + Iniciei tarefa 346 + Vou mudar para a tarefa 347 + Iniciei tarefa 347 + Vou mudar para a tarefa 348 + Iniciei tarefa 348 + Vou mudar para a tarefa 349 + Iniciei tarefa 349 + Vou mudar para a tarefa 350 + Iniciei tarefa 350 + Vou mudar para a tarefa 351 + Iniciei tarefa 351 + Vou mudar para a tarefa 352 + Iniciei tarefa 352 + Vou mudar para a tarefa 353 + Iniciei tarefa 353 + Vou mudar para a tarefa 354 + Iniciei tarefa 354 + Vou mudar para a tarefa 355 + Iniciei tarefa 355 + Vou mudar para a tarefa 356 + Iniciei tarefa 356 + Vou mudar para a tarefa 357 + Iniciei tarefa 357 + Vou mudar para a tarefa 358 + Iniciei tarefa 358 + Vou mudar para a tarefa 359 + Iniciei tarefa 359 + Vou mudar para a tarefa 360 + Iniciei tarefa 360 + Vou mudar para a tarefa 361 + Iniciei tarefa 361 + Vou mudar para a tarefa 362 + Iniciei tarefa 362 + Vou mudar para a tarefa 363 + Iniciei tarefa 363 + Vou mudar para a tarefa 364 + Iniciei tarefa 364 + Vou mudar para a tarefa 365 + Iniciei tarefa 365 + Vou mudar para a tarefa 366 + Iniciei tarefa 366 + Vou mudar para a tarefa 367 + Iniciei tarefa 367 + Vou mudar para a tarefa 368 + Iniciei tarefa 368 + Vou mudar para a tarefa 369 + Iniciei tarefa 369 + Vou mudar para a tarefa 370 + Iniciei tarefa 370 + Vou mudar para a tarefa 371 + Iniciei tarefa 371 + Vou mudar para a tarefa 372 + Iniciei tarefa 372 + Vou mudar para a tarefa 373 + Iniciei tarefa 373 + Vou mudar para a tarefa 374 + Iniciei tarefa 374 + Vou mudar para a tarefa 375 + Iniciei tarefa 375 + Vou mudar para a tarefa 376 + Iniciei tarefa 376 + Vou mudar para a tarefa 377 + Iniciei tarefa 377 + Vou mudar para a tarefa 378 + Iniciei tarefa 378 + Vou mudar para a tarefa 379 + Iniciei tarefa 379 + Vou mudar para a tarefa 380 + Iniciei tarefa 380 + Vou mudar para a tarefa 381 + Iniciei tarefa 381 + Vou mudar para a tarefa 382 + Iniciei tarefa 382 + Vou mudar para a tarefa 383 + Iniciei tarefa 383 + Vou mudar para a tarefa 384 + Iniciei tarefa 384 + Vou mudar para a tarefa 385 + Iniciei tarefa 385 + Vou mudar para a tarefa 386 + Iniciei tarefa 386 + Vou mudar para a tarefa 387 + Iniciei tarefa 387 + Vou mudar para a tarefa 388 + Iniciei tarefa 388 + Vou mudar para a tarefa 389 + Iniciei tarefa 389 + Vou mudar para a tarefa 390 + Iniciei tarefa 390 + Vou mudar para a tarefa 391 + Iniciei tarefa 391 + Vou mudar para a tarefa 392 + Iniciei tarefa 392 + Vou mudar para a tarefa 393 + Iniciei tarefa 393 + Vou mudar para a tarefa 394 + Iniciei tarefa 394 + Vou mudar para a tarefa 395 + Iniciei tarefa 395 + Vou mudar para a tarefa 396 + Iniciei tarefa 396 + Vou mudar para a tarefa 397 + Iniciei tarefa 397 + Vou mudar para a tarefa 398 + Iniciei tarefa 398 + Vou mudar para a tarefa 399 + Iniciei tarefa 399 + Vou mudar para a tarefa 400 + Iniciei tarefa 400 + Vou mudar para a tarefa 401 + Iniciei tarefa 401 + Vou mudar para a tarefa 402 + Iniciei tarefa 402 + Vou mudar para a tarefa 403 + Iniciei tarefa 403 + Vou mudar para a tarefa 404 + Iniciei tarefa 404 + Vou mudar para a tarefa 405 + Iniciei tarefa 405 + Vou mudar para a tarefa 406 + Iniciei tarefa 406 + Vou mudar para a tarefa 407 + Iniciei tarefa 407 + Vou mudar para a tarefa 408 + Iniciei tarefa 408 + Vou mudar para a tarefa 409 + Iniciei tarefa 409 + Vou mudar para a tarefa 410 + Iniciei tarefa 410 + Vou mudar para a tarefa 411 + Iniciei tarefa 411 + Vou mudar para a tarefa 412 + Iniciei tarefa 412 + Vou mudar para a tarefa 413 + Iniciei tarefa 413 + Vou mudar para a tarefa 414 + Iniciei tarefa 414 + Vou mudar para a tarefa 415 + Iniciei tarefa 415 + Vou mudar para a tarefa 416 + Iniciei tarefa 416 + Vou mudar para a tarefa 417 + Iniciei tarefa 417 + Vou mudar para a tarefa 418 + Iniciei tarefa 418 + Vou mudar para a tarefa 419 + Iniciei tarefa 419 + Vou mudar para a tarefa 420 + Iniciei tarefa 420 + Vou mudar para a tarefa 421 + Iniciei tarefa 421 + Vou mudar para a tarefa 422 + Iniciei tarefa 422 + Vou mudar para a tarefa 423 + Iniciei tarefa 423 + Vou mudar para a tarefa 424 + Iniciei tarefa 424 + Vou mudar para a tarefa 425 + Iniciei tarefa 425 + Vou mudar para a tarefa 426 + Iniciei tarefa 426 + Vou mudar para a tarefa 427 + Iniciei tarefa 427 + Vou mudar para a tarefa 428 + Iniciei tarefa 428 + Vou mudar para a tarefa 429 + Iniciei tarefa 429 + Vou mudar para a tarefa 430 + Iniciei tarefa 430 + Vou mudar para a tarefa 431 + Iniciei tarefa 431 + Vou mudar para a tarefa 432 + Iniciei tarefa 432 + Vou mudar para a tarefa 433 + Iniciei tarefa 433 + Vou mudar para a tarefa 434 + Iniciei tarefa 434 + Vou mudar para a tarefa 435 + Iniciei tarefa 435 + Vou mudar para a tarefa 436 + Iniciei tarefa 436 + Vou mudar para a tarefa 437 + Iniciei tarefa 437 + Vou mudar para a tarefa 438 + Iniciei tarefa 438 + Vou mudar para a tarefa 439 + Iniciei tarefa 439 + Vou mudar para a tarefa 440 + Iniciei tarefa 440 + Vou mudar para a tarefa 441 + Iniciei tarefa 441 + Vou mudar para a tarefa 442 + Iniciei tarefa 442 + Vou mudar para a tarefa 443 + Iniciei tarefa 443 + Vou mudar para a tarefa 444 + Iniciei tarefa 444 + Vou mudar para a tarefa 445 + Iniciei tarefa 445 + Vou mudar para a tarefa 446 + Iniciei tarefa 446 + Vou mudar para a tarefa 447 + Iniciei tarefa 447 + Vou mudar para a tarefa 448 + Iniciei tarefa 448 + Vou mudar para a tarefa 449 + Iniciei tarefa 449 + Vou mudar para a tarefa 450 + Iniciei tarefa 450 + Vou mudar para a tarefa 451 + Iniciei tarefa 451 + Vou mudar para a tarefa 452 + Iniciei tarefa 452 + Vou mudar para a tarefa 453 + Iniciei tarefa 453 + Vou mudar para a tarefa 454 + Iniciei tarefa 454 + Vou mudar para a tarefa 455 + Iniciei tarefa 455 + Vou mudar para a tarefa 456 + Iniciei tarefa 456 + Vou mudar para a tarefa 457 + Iniciei tarefa 457 + Vou mudar para a tarefa 458 + Iniciei tarefa 458 + Vou mudar para a tarefa 459 + Iniciei tarefa 459 + Vou mudar para a tarefa 460 + Iniciei tarefa 460 + Vou mudar para a tarefa 461 + Iniciei tarefa 461 + Vou mudar para a tarefa 462 + Iniciei tarefa 462 + Vou mudar para a tarefa 463 + Iniciei tarefa 463 + Vou mudar para a tarefa 464 + Iniciei tarefa 464 + Vou mudar para a tarefa 465 + Iniciei tarefa 465 + Vou mudar para a tarefa 466 + Iniciei tarefa 466 + Vou mudar para a tarefa 467 + Iniciei tarefa 467 + Vou mudar para a tarefa 468 + Iniciei tarefa 468 + Vou mudar para a tarefa 469 + Iniciei tarefa 469 + Vou mudar para a tarefa 470 + Iniciei tarefa 470 + Vou mudar para a tarefa 471 + Iniciei tarefa 471 + Vou mudar para a tarefa 472 + Iniciei tarefa 472 + Vou mudar para a tarefa 473 + Iniciei tarefa 473 + Vou mudar para a tarefa 474 + Iniciei tarefa 474 + Vou mudar para a tarefa 475 + Iniciei tarefa 475 + Vou mudar para a tarefa 476 + Iniciei tarefa 476 + Vou mudar para a tarefa 477 + Iniciei tarefa 477 + Vou mudar para a tarefa 478 + Iniciei tarefa 478 + Vou mudar para a tarefa 479 + Iniciei tarefa 479 + Vou mudar para a tarefa 480 + Iniciei tarefa 480 + Vou mudar para a tarefa 481 + Iniciei tarefa 481 + Vou mudar para a tarefa 482 + Iniciei tarefa 482 + Vou mudar para a tarefa 483 + Iniciei tarefa 483 + Vou mudar para a tarefa 484 + Iniciei tarefa 484 + Vou mudar para a tarefa 485 + Iniciei tarefa 485 + Vou mudar para a tarefa 486 + Iniciei tarefa 486 + Vou mudar para a tarefa 487 + Iniciei tarefa 487 + Vou mudar para a tarefa 488 + Iniciei tarefa 488 + Vou mudar para a tarefa 489 + Iniciei tarefa 489 + Vou mudar para a tarefa 490 + Iniciei tarefa 490 + Vou mudar para a tarefa 491 + Iniciei tarefa 491 + Vou mudar para a tarefa 492 + Iniciei tarefa 492 + Vou mudar para a tarefa 493 + Iniciei tarefa 493 + Vou mudar para a tarefa 494 + Iniciei tarefa 494 + Vou mudar para a tarefa 495 + Iniciei tarefa 495 + Vou mudar para a tarefa 496 + Iniciei tarefa 496 + Vou mudar para a tarefa 497 + Iniciei tarefa 497 + Vou mudar para a tarefa 498 + Iniciei tarefa 498 + Vou mudar para a tarefa 499 + Iniciei tarefa 499 + Vou mudar para a tarefa 500 + Iniciei tarefa 500 + Vou mudar para a tarefa 501 + Iniciei tarefa 501 + Vou mudar para a tarefa 502 + Iniciei tarefa 502 + Vou mudar para a tarefa 503 + Iniciei tarefa 503 + Vou mudar para a tarefa 504 + Iniciei tarefa 504 + Vou mudar para a tarefa 505 + Iniciei tarefa 505 + Vou mudar para a tarefa 506 + Iniciei tarefa 506 + Vou mudar para a tarefa 507 + Iniciei tarefa 507 + Vou mudar para a tarefa 508 + Iniciei tarefa 508 + Vou mudar para a tarefa 509 + Iniciei tarefa 509 + Vou mudar para a tarefa 510 + Iniciei tarefa 510 + Vou mudar para a tarefa 511 + Iniciei tarefa 511 + Vou mudar para a tarefa 512 + Iniciei tarefa 512 + Vou mudar para a tarefa 513 + Iniciei tarefa 513 + Vou mudar para a tarefa 2 + Encerrei tarefa 2 +user_main: vou ativar a tarefa 3 + Encerrei tarefa 3 +user_main: vou ativar a tarefa 4 + Encerrei tarefa 4 +user_main: vou ativar a tarefa 5 + Encerrei tarefa 5 +user_main: vou ativar a tarefa 6 + Encerrei tarefa 6 +user_main: vou ativar a tarefa 7 + Encerrei tarefa 7 +user_main: vou ativar a tarefa 8 + Encerrei tarefa 8 +user_main: vou ativar a tarefa 9 + Encerrei tarefa 9 +user_main: vou ativar a tarefa 10 + Encerrei tarefa 10 +user_main: vou ativar a tarefa 11 + Encerrei tarefa 11 +user_main: vou ativar a tarefa 12 + Encerrei tarefa 12 +user_main: vou ativar a tarefa 13 + Encerrei tarefa 13 +user_main: vou ativar a tarefa 14 + Encerrei tarefa 14 +user_main: vou ativar a tarefa 15 + Encerrei tarefa 15 +user_main: vou ativar a tarefa 16 + Encerrei tarefa 16 +user_main: vou ativar a tarefa 17 + Encerrei tarefa 17 +user_main: vou ativar a tarefa 18 + Encerrei tarefa 18 +user_main: vou ativar a tarefa 19 + Encerrei tarefa 19 +user_main: vou ativar a tarefa 20 + Encerrei tarefa 20 +user_main: vou ativar a tarefa 21 + Encerrei tarefa 21 +user_main: vou ativar a tarefa 22 + Encerrei tarefa 22 +user_main: vou ativar a tarefa 23 + Encerrei tarefa 23 +user_main: vou ativar a tarefa 24 + Encerrei tarefa 24 +user_main: vou ativar a tarefa 25 + Encerrei tarefa 25 +user_main: vou ativar a tarefa 26 + Encerrei tarefa 26 +user_main: vou ativar a tarefa 27 + Encerrei tarefa 27 +user_main: vou ativar a tarefa 28 + Encerrei tarefa 28 +user_main: vou ativar a tarefa 29 + Encerrei tarefa 29 +user_main: vou ativar a tarefa 30 + Encerrei tarefa 30 +user_main: vou ativar a tarefa 31 + Encerrei tarefa 31 +user_main: vou ativar a tarefa 32 + Encerrei tarefa 32 +user_main: vou ativar a tarefa 33 + Encerrei tarefa 33 +user_main: vou ativar a tarefa 34 + Encerrei tarefa 34 +user_main: vou ativar a tarefa 35 + Encerrei tarefa 35 +user_main: vou ativar a tarefa 36 + Encerrei tarefa 36 +user_main: vou ativar a tarefa 37 + Encerrei tarefa 37 +user_main: vou ativar a tarefa 38 + Encerrei tarefa 38 +user_main: vou ativar a tarefa 39 + Encerrei tarefa 39 +user_main: vou ativar a tarefa 40 + Encerrei tarefa 40 +user_main: vou ativar a tarefa 41 + Encerrei tarefa 41 +user_main: vou ativar a tarefa 42 + Encerrei tarefa 42 +user_main: vou ativar a tarefa 43 + Encerrei tarefa 43 +user_main: vou ativar a tarefa 44 + Encerrei tarefa 44 +user_main: vou ativar a tarefa 45 + Encerrei tarefa 45 +user_main: vou ativar a tarefa 46 + Encerrei tarefa 46 +user_main: vou ativar a tarefa 47 + Encerrei tarefa 47 +user_main: vou ativar a tarefa 48 + Encerrei tarefa 48 +user_main: vou ativar a tarefa 49 + Encerrei tarefa 49 +user_main: vou ativar a tarefa 50 + Encerrei tarefa 50 +user_main: vou ativar a tarefa 51 + Encerrei tarefa 51 +user_main: vou ativar a tarefa 52 + Encerrei tarefa 52 +user_main: vou ativar a tarefa 53 + Encerrei tarefa 53 +user_main: vou ativar a tarefa 54 + Encerrei tarefa 54 +user_main: vou ativar a tarefa 55 + Encerrei tarefa 55 +user_main: vou ativar a tarefa 56 + Encerrei tarefa 56 +user_main: vou ativar a tarefa 57 + Encerrei tarefa 57 +user_main: vou ativar a tarefa 58 + Encerrei tarefa 58 +user_main: vou ativar a tarefa 59 + Encerrei tarefa 59 +user_main: vou ativar a tarefa 60 + Encerrei tarefa 60 +user_main: vou ativar a tarefa 61 + Encerrei tarefa 61 +user_main: vou ativar a tarefa 62 + Encerrei tarefa 62 +user_main: vou ativar a tarefa 63 + Encerrei tarefa 63 +user_main: vou ativar a tarefa 64 + Encerrei tarefa 64 +user_main: vou ativar a tarefa 65 + Encerrei tarefa 65 +user_main: vou ativar a tarefa 66 + Encerrei tarefa 66 +user_main: vou ativar a tarefa 67 + Encerrei tarefa 67 +user_main: vou ativar a tarefa 68 + Encerrei tarefa 68 +user_main: vou ativar a tarefa 69 + Encerrei tarefa 69 +user_main: vou ativar a tarefa 70 + Encerrei tarefa 70 +user_main: vou ativar a tarefa 71 + Encerrei tarefa 71 +user_main: vou ativar a tarefa 72 + Encerrei tarefa 72 +user_main: vou ativar a tarefa 73 + Encerrei tarefa 73 +user_main: vou ativar a tarefa 74 + Encerrei tarefa 74 +user_main: vou ativar a tarefa 75 + Encerrei tarefa 75 +user_main: vou ativar a tarefa 76 + Encerrei tarefa 76 +user_main: vou ativar a tarefa 77 + Encerrei tarefa 77 +user_main: vou ativar a tarefa 78 + Encerrei tarefa 78 +user_main: vou ativar a tarefa 79 + Encerrei tarefa 79 +user_main: vou ativar a tarefa 80 + Encerrei tarefa 80 +user_main: vou ativar a tarefa 81 + Encerrei tarefa 81 +user_main: vou ativar a tarefa 82 + Encerrei tarefa 82 +user_main: vou ativar a tarefa 83 + Encerrei tarefa 83 +user_main: vou ativar a tarefa 84 + Encerrei tarefa 84 +user_main: vou ativar a tarefa 85 + Encerrei tarefa 85 +user_main: vou ativar a tarefa 86 + Encerrei tarefa 86 +user_main: vou ativar a tarefa 87 + Encerrei tarefa 87 +user_main: vou ativar a tarefa 88 + Encerrei tarefa 88 +user_main: vou ativar a tarefa 89 + Encerrei tarefa 89 +user_main: vou ativar a tarefa 90 + Encerrei tarefa 90 +user_main: vou ativar a tarefa 91 + Encerrei tarefa 91 +user_main: vou ativar a tarefa 92 + Encerrei tarefa 92 +user_main: vou ativar a tarefa 93 + Encerrei tarefa 93 +user_main: vou ativar a tarefa 94 + Encerrei tarefa 94 +user_main: vou ativar a tarefa 95 + Encerrei tarefa 95 +user_main: vou ativar a tarefa 96 + Encerrei tarefa 96 +user_main: vou ativar a tarefa 97 + Encerrei tarefa 97 +user_main: vou ativar a tarefa 98 + Encerrei tarefa 98 +user_main: vou ativar a tarefa 99 + Encerrei tarefa 99 +user_main: vou ativar a tarefa 100 + Encerrei tarefa 100 +user_main: vou ativar a tarefa 101 + Encerrei tarefa 101 +user_main: vou ativar a tarefa 102 + Encerrei tarefa 102 +user_main: vou ativar a tarefa 103 + Encerrei tarefa 103 +user_main: vou ativar a tarefa 104 + Encerrei tarefa 104 +user_main: vou ativar a tarefa 105 + Encerrei tarefa 105 +user_main: vou ativar a tarefa 106 + Encerrei tarefa 106 +user_main: vou ativar a tarefa 107 + Encerrei tarefa 107 +user_main: vou ativar a tarefa 108 + Encerrei tarefa 108 +user_main: vou ativar a tarefa 109 + Encerrei tarefa 109 +user_main: vou ativar a tarefa 110 + Encerrei tarefa 110 +user_main: vou ativar a tarefa 111 + Encerrei tarefa 111 +user_main: vou ativar a tarefa 112 + Encerrei tarefa 112 +user_main: vou ativar a tarefa 113 + Encerrei tarefa 113 +user_main: vou ativar a tarefa 114 + Encerrei tarefa 114 +user_main: vou ativar a tarefa 115 + Encerrei tarefa 115 +user_main: vou ativar a tarefa 116 + Encerrei tarefa 116 +user_main: vou ativar a tarefa 117 + Encerrei tarefa 117 +user_main: vou ativar a tarefa 118 + Encerrei tarefa 118 +user_main: vou ativar a tarefa 119 + Encerrei tarefa 119 +user_main: vou ativar a tarefa 120 + Encerrei tarefa 120 +user_main: vou ativar a tarefa 121 + Encerrei tarefa 121 +user_main: vou ativar a tarefa 122 + Encerrei tarefa 122 +user_main: vou ativar a tarefa 123 + Encerrei tarefa 123 +user_main: vou ativar a tarefa 124 + Encerrei tarefa 124 +user_main: vou ativar a tarefa 125 + Encerrei tarefa 125 +user_main: vou ativar a tarefa 126 + Encerrei tarefa 126 +user_main: vou ativar a tarefa 127 + Encerrei tarefa 127 +user_main: vou ativar a tarefa 128 + Encerrei tarefa 128 +user_main: vou ativar a tarefa 129 + Encerrei tarefa 129 +user_main: vou ativar a tarefa 130 + Encerrei tarefa 130 +user_main: vou ativar a tarefa 131 + Encerrei tarefa 131 +user_main: vou ativar a tarefa 132 + Encerrei tarefa 132 +user_main: vou ativar a tarefa 133 + Encerrei tarefa 133 +user_main: vou ativar a tarefa 134 + Encerrei tarefa 134 +user_main: vou ativar a tarefa 135 + Encerrei tarefa 135 +user_main: vou ativar a tarefa 136 + Encerrei tarefa 136 +user_main: vou ativar a tarefa 137 + Encerrei tarefa 137 +user_main: vou ativar a tarefa 138 + Encerrei tarefa 138 +user_main: vou ativar a tarefa 139 + Encerrei tarefa 139 +user_main: vou ativar a tarefa 140 + Encerrei tarefa 140 +user_main: vou ativar a tarefa 141 + Encerrei tarefa 141 +user_main: vou ativar a tarefa 142 + Encerrei tarefa 142 +user_main: vou ativar a tarefa 143 + Encerrei tarefa 143 +user_main: vou ativar a tarefa 144 + Encerrei tarefa 144 +user_main: vou ativar a tarefa 145 + Encerrei tarefa 145 +user_main: vou ativar a tarefa 146 + Encerrei tarefa 146 +user_main: vou ativar a tarefa 147 + Encerrei tarefa 147 +user_main: vou ativar a tarefa 148 + Encerrei tarefa 148 +user_main: vou ativar a tarefa 149 + Encerrei tarefa 149 +user_main: vou ativar a tarefa 150 + Encerrei tarefa 150 +user_main: vou ativar a tarefa 151 + Encerrei tarefa 151 +user_main: vou ativar a tarefa 152 + Encerrei tarefa 152 +user_main: vou ativar a tarefa 153 + Encerrei tarefa 153 +user_main: vou ativar a tarefa 154 + Encerrei tarefa 154 +user_main: vou ativar a tarefa 155 + Encerrei tarefa 155 +user_main: vou ativar a tarefa 156 + Encerrei tarefa 156 +user_main: vou ativar a tarefa 157 + Encerrei tarefa 157 +user_main: vou ativar a tarefa 158 + Encerrei tarefa 158 +user_main: vou ativar a tarefa 159 + Encerrei tarefa 159 +user_main: vou ativar a tarefa 160 + Encerrei tarefa 160 +user_main: vou ativar a tarefa 161 + Encerrei tarefa 161 +user_main: vou ativar a tarefa 162 + Encerrei tarefa 162 +user_main: vou ativar a tarefa 163 + Encerrei tarefa 163 +user_main: vou ativar a tarefa 164 + Encerrei tarefa 164 +user_main: vou ativar a tarefa 165 + Encerrei tarefa 165 +user_main: vou ativar a tarefa 166 + Encerrei tarefa 166 +user_main: vou ativar a tarefa 167 + Encerrei tarefa 167 +user_main: vou ativar a tarefa 168 + Encerrei tarefa 168 +user_main: vou ativar a tarefa 169 + Encerrei tarefa 169 +user_main: vou ativar a tarefa 170 + Encerrei tarefa 170 +user_main: vou ativar a tarefa 171 + Encerrei tarefa 171 +user_main: vou ativar a tarefa 172 + Encerrei tarefa 172 +user_main: vou ativar a tarefa 173 + Encerrei tarefa 173 +user_main: vou ativar a tarefa 174 + Encerrei tarefa 174 +user_main: vou ativar a tarefa 175 + Encerrei tarefa 175 +user_main: vou ativar a tarefa 176 + Encerrei tarefa 176 +user_main: vou ativar a tarefa 177 + Encerrei tarefa 177 +user_main: vou ativar a tarefa 178 + Encerrei tarefa 178 +user_main: vou ativar a tarefa 179 + Encerrei tarefa 179 +user_main: vou ativar a tarefa 180 + Encerrei tarefa 180 +user_main: vou ativar a tarefa 181 + Encerrei tarefa 181 +user_main: vou ativar a tarefa 182 + Encerrei tarefa 182 +user_main: vou ativar a tarefa 183 + Encerrei tarefa 183 +user_main: vou ativar a tarefa 184 + Encerrei tarefa 184 +user_main: vou ativar a tarefa 185 + Encerrei tarefa 185 +user_main: vou ativar a tarefa 186 + Encerrei tarefa 186 +user_main: vou ativar a tarefa 187 + Encerrei tarefa 187 +user_main: vou ativar a tarefa 188 + Encerrei tarefa 188 +user_main: vou ativar a tarefa 189 + Encerrei tarefa 189 +user_main: vou ativar a tarefa 190 + Encerrei tarefa 190 +user_main: vou ativar a tarefa 191 + Encerrei tarefa 191 +user_main: vou ativar a tarefa 192 + Encerrei tarefa 192 +user_main: vou ativar a tarefa 193 + Encerrei tarefa 193 +user_main: vou ativar a tarefa 194 + Encerrei tarefa 194 +user_main: vou ativar a tarefa 195 + Encerrei tarefa 195 +user_main: vou ativar a tarefa 196 + Encerrei tarefa 196 +user_main: vou ativar a tarefa 197 + Encerrei tarefa 197 +user_main: vou ativar a tarefa 198 + Encerrei tarefa 198 +user_main: vou ativar a tarefa 199 + Encerrei tarefa 199 +user_main: vou ativar a tarefa 200 + Encerrei tarefa 200 +user_main: vou ativar a tarefa 201 + Encerrei tarefa 201 +user_main: vou ativar a tarefa 202 + Encerrei tarefa 202 +user_main: vou ativar a tarefa 203 + Encerrei tarefa 203 +user_main: vou ativar a tarefa 204 + Encerrei tarefa 204 +user_main: vou ativar a tarefa 205 + Encerrei tarefa 205 +user_main: vou ativar a tarefa 206 + Encerrei tarefa 206 +user_main: vou ativar a tarefa 207 + Encerrei tarefa 207 +user_main: vou ativar a tarefa 208 + Encerrei tarefa 208 +user_main: vou ativar a tarefa 209 + Encerrei tarefa 209 +user_main: vou ativar a tarefa 210 + Encerrei tarefa 210 +user_main: vou ativar a tarefa 211 + Encerrei tarefa 211 +user_main: vou ativar a tarefa 212 + Encerrei tarefa 212 +user_main: vou ativar a tarefa 213 + Encerrei tarefa 213 +user_main: vou ativar a tarefa 214 + Encerrei tarefa 214 +user_main: vou ativar a tarefa 215 + Encerrei tarefa 215 +user_main: vou ativar a tarefa 216 + Encerrei tarefa 216 +user_main: vou ativar a tarefa 217 + Encerrei tarefa 217 +user_main: vou ativar a tarefa 218 + Encerrei tarefa 218 +user_main: vou ativar a tarefa 219 + Encerrei tarefa 219 +user_main: vou ativar a tarefa 220 + Encerrei tarefa 220 +user_main: vou ativar a tarefa 221 + Encerrei tarefa 221 +user_main: vou ativar a tarefa 222 + Encerrei tarefa 222 +user_main: vou ativar a tarefa 223 + Encerrei tarefa 223 +user_main: vou ativar a tarefa 224 + Encerrei tarefa 224 +user_main: vou ativar a tarefa 225 + Encerrei tarefa 225 +user_main: vou ativar a tarefa 226 + Encerrei tarefa 226 +user_main: vou ativar a tarefa 227 + Encerrei tarefa 227 +user_main: vou ativar a tarefa 228 + Encerrei tarefa 228 +user_main: vou ativar a tarefa 229 + Encerrei tarefa 229 +user_main: vou ativar a tarefa 230 + Encerrei tarefa 230 +user_main: vou ativar a tarefa 231 + Encerrei tarefa 231 +user_main: vou ativar a tarefa 232 + Encerrei tarefa 232 +user_main: vou ativar a tarefa 233 + Encerrei tarefa 233 +user_main: vou ativar a tarefa 234 + Encerrei tarefa 234 +user_main: vou ativar a tarefa 235 + Encerrei tarefa 235 +user_main: vou ativar a tarefa 236 + Encerrei tarefa 236 +user_main: vou ativar a tarefa 237 + Encerrei tarefa 237 +user_main: vou ativar a tarefa 238 + Encerrei tarefa 238 +user_main: vou ativar a tarefa 239 + Encerrei tarefa 239 +user_main: vou ativar a tarefa 240 + Encerrei tarefa 240 +user_main: vou ativar a tarefa 241 + Encerrei tarefa 241 +user_main: vou ativar a tarefa 242 + Encerrei tarefa 242 +user_main: vou ativar a tarefa 243 + Encerrei tarefa 243 +user_main: vou ativar a tarefa 244 + Encerrei tarefa 244 +user_main: vou ativar a tarefa 245 + Encerrei tarefa 245 +user_main: vou ativar a tarefa 246 + Encerrei tarefa 246 +user_main: vou ativar a tarefa 247 + Encerrei tarefa 247 +user_main: vou ativar a tarefa 248 + Encerrei tarefa 248 +user_main: vou ativar a tarefa 249 + Encerrei tarefa 249 +user_main: vou ativar a tarefa 250 + Encerrei tarefa 250 +user_main: vou ativar a tarefa 251 + Encerrei tarefa 251 +user_main: vou ativar a tarefa 252 + Encerrei tarefa 252 +user_main: vou ativar a tarefa 253 + Encerrei tarefa 253 +user_main: vou ativar a tarefa 254 + Encerrei tarefa 254 +user_main: vou ativar a tarefa 255 + Encerrei tarefa 255 +user_main: vou ativar a tarefa 256 + Encerrei tarefa 256 +user_main: vou ativar a tarefa 257 + Encerrei tarefa 257 +user_main: vou ativar a tarefa 258 + Encerrei tarefa 258 +user_main: vou ativar a tarefa 259 + Encerrei tarefa 259 +user_main: vou ativar a tarefa 260 + Encerrei tarefa 260 +user_main: vou ativar a tarefa 261 + Encerrei tarefa 261 +user_main: vou ativar a tarefa 262 + Encerrei tarefa 262 +user_main: vou ativar a tarefa 263 + Encerrei tarefa 263 +user_main: vou ativar a tarefa 264 + Encerrei tarefa 264 +user_main: vou ativar a tarefa 265 + Encerrei tarefa 265 +user_main: vou ativar a tarefa 266 + Encerrei tarefa 266 +user_main: vou ativar a tarefa 267 + Encerrei tarefa 267 +user_main: vou ativar a tarefa 268 + Encerrei tarefa 268 +user_main: vou ativar a tarefa 269 + Encerrei tarefa 269 +user_main: vou ativar a tarefa 270 + Encerrei tarefa 270 +user_main: vou ativar a tarefa 271 + Encerrei tarefa 271 +user_main: vou ativar a tarefa 272 + Encerrei tarefa 272 +user_main: vou ativar a tarefa 273 + Encerrei tarefa 273 +user_main: vou ativar a tarefa 274 + Encerrei tarefa 274 +user_main: vou ativar a tarefa 275 + Encerrei tarefa 275 +user_main: vou ativar a tarefa 276 + Encerrei tarefa 276 +user_main: vou ativar a tarefa 277 + Encerrei tarefa 277 +user_main: vou ativar a tarefa 278 + Encerrei tarefa 278 +user_main: vou ativar a tarefa 279 + Encerrei tarefa 279 +user_main: vou ativar a tarefa 280 + Encerrei tarefa 280 +user_main: vou ativar a tarefa 281 + Encerrei tarefa 281 +user_main: vou ativar a tarefa 282 + Encerrei tarefa 282 +user_main: vou ativar a tarefa 283 + Encerrei tarefa 283 +user_main: vou ativar a tarefa 284 + Encerrei tarefa 284 +user_main: vou ativar a tarefa 285 + Encerrei tarefa 285 +user_main: vou ativar a tarefa 286 + Encerrei tarefa 286 +user_main: vou ativar a tarefa 287 + Encerrei tarefa 287 +user_main: vou ativar a tarefa 288 + Encerrei tarefa 288 +user_main: vou ativar a tarefa 289 + Encerrei tarefa 289 +user_main: vou ativar a tarefa 290 + Encerrei tarefa 290 +user_main: vou ativar a tarefa 291 + Encerrei tarefa 291 +user_main: vou ativar a tarefa 292 + Encerrei tarefa 292 +user_main: vou ativar a tarefa 293 + Encerrei tarefa 293 +user_main: vou ativar a tarefa 294 + Encerrei tarefa 294 +user_main: vou ativar a tarefa 295 + Encerrei tarefa 295 +user_main: vou ativar a tarefa 296 + Encerrei tarefa 296 +user_main: vou ativar a tarefa 297 + Encerrei tarefa 297 +user_main: vou ativar a tarefa 298 + Encerrei tarefa 298 +user_main: vou ativar a tarefa 299 + Encerrei tarefa 299 +user_main: vou ativar a tarefa 300 + Encerrei tarefa 300 +user_main: vou ativar a tarefa 301 + Encerrei tarefa 301 +user_main: vou ativar a tarefa 302 + Encerrei tarefa 302 +user_main: vou ativar a tarefa 303 + Encerrei tarefa 303 +user_main: vou ativar a tarefa 304 + Encerrei tarefa 304 +user_main: vou ativar a tarefa 305 + Encerrei tarefa 305 +user_main: vou ativar a tarefa 306 + Encerrei tarefa 306 +user_main: vou ativar a tarefa 307 + Encerrei tarefa 307 +user_main: vou ativar a tarefa 308 + Encerrei tarefa 308 +user_main: vou ativar a tarefa 309 + Encerrei tarefa 309 +user_main: vou ativar a tarefa 310 + Encerrei tarefa 310 +user_main: vou ativar a tarefa 311 + Encerrei tarefa 311 +user_main: vou ativar a tarefa 312 + Encerrei tarefa 312 +user_main: vou ativar a tarefa 313 + Encerrei tarefa 313 +user_main: vou ativar a tarefa 314 + Encerrei tarefa 314 +user_main: vou ativar a tarefa 315 + Encerrei tarefa 315 +user_main: vou ativar a tarefa 316 + Encerrei tarefa 316 +user_main: vou ativar a tarefa 317 + Encerrei tarefa 317 +user_main: vou ativar a tarefa 318 + Encerrei tarefa 318 +user_main: vou ativar a tarefa 319 + Encerrei tarefa 319 +user_main: vou ativar a tarefa 320 + Encerrei tarefa 320 +user_main: vou ativar a tarefa 321 + Encerrei tarefa 321 +user_main: vou ativar a tarefa 322 + Encerrei tarefa 322 +user_main: vou ativar a tarefa 323 + Encerrei tarefa 323 +user_main: vou ativar a tarefa 324 + Encerrei tarefa 324 +user_main: vou ativar a tarefa 325 + Encerrei tarefa 325 +user_main: vou ativar a tarefa 326 + Encerrei tarefa 326 +user_main: vou ativar a tarefa 327 + Encerrei tarefa 327 +user_main: vou ativar a tarefa 328 + Encerrei tarefa 328 +user_main: vou ativar a tarefa 329 + Encerrei tarefa 329 +user_main: vou ativar a tarefa 330 + Encerrei tarefa 330 +user_main: vou ativar a tarefa 331 + Encerrei tarefa 331 +user_main: vou ativar a tarefa 332 + Encerrei tarefa 332 +user_main: vou ativar a tarefa 333 + Encerrei tarefa 333 +user_main: vou ativar a tarefa 334 + Encerrei tarefa 334 +user_main: vou ativar a tarefa 335 + Encerrei tarefa 335 +user_main: vou ativar a tarefa 336 + Encerrei tarefa 336 +user_main: vou ativar a tarefa 337 + Encerrei tarefa 337 +user_main: vou ativar a tarefa 338 + Encerrei tarefa 338 +user_main: vou ativar a tarefa 339 + Encerrei tarefa 339 +user_main: vou ativar a tarefa 340 + Encerrei tarefa 340 +user_main: vou ativar a tarefa 341 + Encerrei tarefa 341 +user_main: vou ativar a tarefa 342 + Encerrei tarefa 342 +user_main: vou ativar a tarefa 343 + Encerrei tarefa 343 +user_main: vou ativar a tarefa 344 + Encerrei tarefa 344 +user_main: vou ativar a tarefa 345 + Encerrei tarefa 345 +user_main: vou ativar a tarefa 346 + Encerrei tarefa 346 +user_main: vou ativar a tarefa 347 + Encerrei tarefa 347 +user_main: vou ativar a tarefa 348 + Encerrei tarefa 348 +user_main: vou ativar a tarefa 349 + Encerrei tarefa 349 +user_main: vou ativar a tarefa 350 + Encerrei tarefa 350 +user_main: vou ativar a tarefa 351 + Encerrei tarefa 351 +user_main: vou ativar a tarefa 352 + Encerrei tarefa 352 +user_main: vou ativar a tarefa 353 + Encerrei tarefa 353 +user_main: vou ativar a tarefa 354 + Encerrei tarefa 354 +user_main: vou ativar a tarefa 355 + Encerrei tarefa 355 +user_main: vou ativar a tarefa 356 + Encerrei tarefa 356 +user_main: vou ativar a tarefa 357 + Encerrei tarefa 357 +user_main: vou ativar a tarefa 358 + Encerrei tarefa 358 +user_main: vou ativar a tarefa 359 + Encerrei tarefa 359 +user_main: vou ativar a tarefa 360 + Encerrei tarefa 360 +user_main: vou ativar a tarefa 361 + Encerrei tarefa 361 +user_main: vou ativar a tarefa 362 + Encerrei tarefa 362 +user_main: vou ativar a tarefa 363 + Encerrei tarefa 363 +user_main: vou ativar a tarefa 364 + Encerrei tarefa 364 +user_main: vou ativar a tarefa 365 + Encerrei tarefa 365 +user_main: vou ativar a tarefa 366 + Encerrei tarefa 366 +user_main: vou ativar a tarefa 367 + Encerrei tarefa 367 +user_main: vou ativar a tarefa 368 + Encerrei tarefa 368 +user_main: vou ativar a tarefa 369 + Encerrei tarefa 369 +user_main: vou ativar a tarefa 370 + Encerrei tarefa 370 +user_main: vou ativar a tarefa 371 + Encerrei tarefa 371 +user_main: vou ativar a tarefa 372 + Encerrei tarefa 372 +user_main: vou ativar a tarefa 373 + Encerrei tarefa 373 +user_main: vou ativar a tarefa 374 + Encerrei tarefa 374 +user_main: vou ativar a tarefa 375 + Encerrei tarefa 375 +user_main: vou ativar a tarefa 376 + Encerrei tarefa 376 +user_main: vou ativar a tarefa 377 + Encerrei tarefa 377 +user_main: vou ativar a tarefa 378 + Encerrei tarefa 378 +user_main: vou ativar a tarefa 379 + Encerrei tarefa 379 +user_main: vou ativar a tarefa 380 + Encerrei tarefa 380 +user_main: vou ativar a tarefa 381 + Encerrei tarefa 381 +user_main: vou ativar a tarefa 382 + Encerrei tarefa 382 +user_main: vou ativar a tarefa 383 + Encerrei tarefa 383 +user_main: vou ativar a tarefa 384 + Encerrei tarefa 384 +user_main: vou ativar a tarefa 385 + Encerrei tarefa 385 +user_main: vou ativar a tarefa 386 + Encerrei tarefa 386 +user_main: vou ativar a tarefa 387 + Encerrei tarefa 387 +user_main: vou ativar a tarefa 388 + Encerrei tarefa 388 +user_main: vou ativar a tarefa 389 + Encerrei tarefa 389 +user_main: vou ativar a tarefa 390 + Encerrei tarefa 390 +user_main: vou ativar a tarefa 391 + Encerrei tarefa 391 +user_main: vou ativar a tarefa 392 + Encerrei tarefa 392 +user_main: vou ativar a tarefa 393 + Encerrei tarefa 393 +user_main: vou ativar a tarefa 394 + Encerrei tarefa 394 +user_main: vou ativar a tarefa 395 + Encerrei tarefa 395 +user_main: vou ativar a tarefa 396 + Encerrei tarefa 396 +user_main: vou ativar a tarefa 397 + Encerrei tarefa 397 +user_main: vou ativar a tarefa 398 + Encerrei tarefa 398 +user_main: vou ativar a tarefa 399 + Encerrei tarefa 399 +user_main: vou ativar a tarefa 400 + Encerrei tarefa 400 +user_main: vou ativar a tarefa 401 + Encerrei tarefa 401 +user_main: vou ativar a tarefa 402 + Encerrei tarefa 402 +user_main: vou ativar a tarefa 403 + Encerrei tarefa 403 +user_main: vou ativar a tarefa 404 + Encerrei tarefa 404 +user_main: vou ativar a tarefa 405 + Encerrei tarefa 405 +user_main: vou ativar a tarefa 406 + Encerrei tarefa 406 +user_main: vou ativar a tarefa 407 + Encerrei tarefa 407 +user_main: vou ativar a tarefa 408 + Encerrei tarefa 408 +user_main: vou ativar a tarefa 409 + Encerrei tarefa 409 +user_main: vou ativar a tarefa 410 + Encerrei tarefa 410 +user_main: vou ativar a tarefa 411 + Encerrei tarefa 411 +user_main: vou ativar a tarefa 412 + Encerrei tarefa 412 +user_main: vou ativar a tarefa 413 + Encerrei tarefa 413 +user_main: vou ativar a tarefa 414 + Encerrei tarefa 414 +user_main: vou ativar a tarefa 415 + Encerrei tarefa 415 +user_main: vou ativar a tarefa 416 + Encerrei tarefa 416 +user_main: vou ativar a tarefa 417 + Encerrei tarefa 417 +user_main: vou ativar a tarefa 418 + Encerrei tarefa 418 +user_main: vou ativar a tarefa 419 + Encerrei tarefa 419 +user_main: vou ativar a tarefa 420 + Encerrei tarefa 420 +user_main: vou ativar a tarefa 421 + Encerrei tarefa 421 +user_main: vou ativar a tarefa 422 + Encerrei tarefa 422 +user_main: vou ativar a tarefa 423 + Encerrei tarefa 423 +user_main: vou ativar a tarefa 424 + Encerrei tarefa 424 +user_main: vou ativar a tarefa 425 + Encerrei tarefa 425 +user_main: vou ativar a tarefa 426 + Encerrei tarefa 426 +user_main: vou ativar a tarefa 427 + Encerrei tarefa 427 +user_main: vou ativar a tarefa 428 + Encerrei tarefa 428 +user_main: vou ativar a tarefa 429 + Encerrei tarefa 429 +user_main: vou ativar a tarefa 430 + Encerrei tarefa 430 +user_main: vou ativar a tarefa 431 + Encerrei tarefa 431 +user_main: vou ativar a tarefa 432 + Encerrei tarefa 432 +user_main: vou ativar a tarefa 433 + Encerrei tarefa 433 +user_main: vou ativar a tarefa 434 + Encerrei tarefa 434 +user_main: vou ativar a tarefa 435 + Encerrei tarefa 435 +user_main: vou ativar a tarefa 436 + Encerrei tarefa 436 +user_main: vou ativar a tarefa 437 + Encerrei tarefa 437 +user_main: vou ativar a tarefa 438 + Encerrei tarefa 438 +user_main: vou ativar a tarefa 439 + Encerrei tarefa 439 +user_main: vou ativar a tarefa 440 + Encerrei tarefa 440 +user_main: vou ativar a tarefa 441 + Encerrei tarefa 441 +user_main: vou ativar a tarefa 442 + Encerrei tarefa 442 +user_main: vou ativar a tarefa 443 + Encerrei tarefa 443 +user_main: vou ativar a tarefa 444 + Encerrei tarefa 444 +user_main: vou ativar a tarefa 445 + Encerrei tarefa 445 +user_main: vou ativar a tarefa 446 + Encerrei tarefa 446 +user_main: vou ativar a tarefa 447 + Encerrei tarefa 447 +user_main: vou ativar a tarefa 448 + Encerrei tarefa 448 +user_main: vou ativar a tarefa 449 + Encerrei tarefa 449 +user_main: vou ativar a tarefa 450 + Encerrei tarefa 450 +user_main: vou ativar a tarefa 451 + Encerrei tarefa 451 +user_main: vou ativar a tarefa 452 + Encerrei tarefa 452 +user_main: vou ativar a tarefa 453 + Encerrei tarefa 453 +user_main: vou ativar a tarefa 454 + Encerrei tarefa 454 +user_main: vou ativar a tarefa 455 + Encerrei tarefa 455 +user_main: vou ativar a tarefa 456 + Encerrei tarefa 456 +user_main: vou ativar a tarefa 457 + Encerrei tarefa 457 +user_main: vou ativar a tarefa 458 + Encerrei tarefa 458 +user_main: vou ativar a tarefa 459 + Encerrei tarefa 459 +user_main: vou ativar a tarefa 460 + Encerrei tarefa 460 +user_main: vou ativar a tarefa 461 + Encerrei tarefa 461 +user_main: vou ativar a tarefa 462 + Encerrei tarefa 462 +user_main: vou ativar a tarefa 463 + Encerrei tarefa 463 +user_main: vou ativar a tarefa 464 + Encerrei tarefa 464 +user_main: vou ativar a tarefa 465 + Encerrei tarefa 465 +user_main: vou ativar a tarefa 466 + Encerrei tarefa 466 +user_main: vou ativar a tarefa 467 + Encerrei tarefa 467 +user_main: vou ativar a tarefa 468 + Encerrei tarefa 468 +user_main: vou ativar a tarefa 469 + Encerrei tarefa 469 +user_main: vou ativar a tarefa 470 + Encerrei tarefa 470 +user_main: vou ativar a tarefa 471 + Encerrei tarefa 471 +user_main: vou ativar a tarefa 472 + Encerrei tarefa 472 +user_main: vou ativar a tarefa 473 + Encerrei tarefa 473 +user_main: vou ativar a tarefa 474 + Encerrei tarefa 474 +user_main: vou ativar a tarefa 475 + Encerrei tarefa 475 +user_main: vou ativar a tarefa 476 + Encerrei tarefa 476 +user_main: vou ativar a tarefa 477 + Encerrei tarefa 477 +user_main: vou ativar a tarefa 478 + Encerrei tarefa 478 +user_main: vou ativar a tarefa 479 + Encerrei tarefa 479 +user_main: vou ativar a tarefa 480 + Encerrei tarefa 480 +user_main: vou ativar a tarefa 481 + Encerrei tarefa 481 +user_main: vou ativar a tarefa 482 + Encerrei tarefa 482 +user_main: vou ativar a tarefa 483 + Encerrei tarefa 483 +user_main: vou ativar a tarefa 484 + Encerrei tarefa 484 +user_main: vou ativar a tarefa 485 + Encerrei tarefa 485 +user_main: vou ativar a tarefa 486 + Encerrei tarefa 486 +user_main: vou ativar a tarefa 487 + Encerrei tarefa 487 +user_main: vou ativar a tarefa 488 + Encerrei tarefa 488 +user_main: vou ativar a tarefa 489 + Encerrei tarefa 489 +user_main: vou ativar a tarefa 490 + Encerrei tarefa 490 +user_main: vou ativar a tarefa 491 + Encerrei tarefa 491 +user_main: vou ativar a tarefa 492 + Encerrei tarefa 492 +user_main: vou ativar a tarefa 493 + Encerrei tarefa 493 +user_main: vou ativar a tarefa 494 + Encerrei tarefa 494 +user_main: vou ativar a tarefa 495 + Encerrei tarefa 495 +user_main: vou ativar a tarefa 496 + Encerrei tarefa 496 +user_main: vou ativar a tarefa 497 + Encerrei tarefa 497 +user_main: vou ativar a tarefa 498 + Encerrei tarefa 498 +user_main: vou ativar a tarefa 499 + Encerrei tarefa 499 +user_main: vou ativar a tarefa 500 + Encerrei tarefa 500 +user_main: vou ativar a tarefa 501 + Encerrei tarefa 501 +user_main: vou ativar a tarefa 502 + Encerrei tarefa 502 +user_main: vou ativar a tarefa 503 + Encerrei tarefa 503 +user_main: vou ativar a tarefa 504 + Encerrei tarefa 504 +user_main: vou ativar a tarefa 505 + Encerrei tarefa 505 +user_main: vou ativar a tarefa 506 + Encerrei tarefa 506 +user_main: vou ativar a tarefa 507 + Encerrei tarefa 507 +user_main: vou ativar a tarefa 508 + Encerrei tarefa 508 +user_main: vou ativar a tarefa 509 + Encerrei tarefa 509 +user_main: vou ativar a tarefa 510 + Encerrei tarefa 510 +user_main: vou ativar a tarefa 511 + Encerrei tarefa 511 +user_main: vou ativar a tarefa 512 + Encerrei tarefa 512 +user_main: vou ativar a tarefa 513 + Encerrei tarefa 513 +user_main: vou destruir a tarefa 2 +user_main: vou destruir a tarefa 3 +user_main: vou destruir a tarefa 4 +user_main: vou destruir a tarefa 5 +user_main: vou destruir a tarefa 6 +user_main: vou destruir a tarefa 7 +user_main: vou destruir a tarefa 8 +user_main: vou destruir a tarefa 9 +user_main: vou destruir a tarefa 10 +user_main: vou destruir a tarefa 11 +user_main: vou destruir a tarefa 12 +user_main: vou destruir a tarefa 13 +user_main: vou destruir a tarefa 14 +user_main: vou destruir a tarefa 15 +user_main: vou destruir a tarefa 16 +user_main: vou destruir a tarefa 17 +user_main: vou destruir a tarefa 18 +user_main: vou destruir a tarefa 19 +user_main: vou destruir a tarefa 20 +user_main: vou destruir a tarefa 21 +user_main: vou destruir a tarefa 22 +user_main: vou destruir a tarefa 23 +user_main: vou destruir a tarefa 24 +user_main: vou destruir a tarefa 25 +user_main: vou destruir a tarefa 26 +user_main: vou destruir a tarefa 27 +user_main: vou destruir a tarefa 28 +user_main: vou destruir a tarefa 29 +user_main: vou destruir a tarefa 30 +user_main: vou destruir a tarefa 31 +user_main: vou destruir a tarefa 32 +user_main: vou destruir a tarefa 33 +user_main: vou destruir a tarefa 34 +user_main: vou destruir a tarefa 35 +user_main: vou destruir a tarefa 36 +user_main: vou destruir a tarefa 37 +user_main: vou destruir a tarefa 38 +user_main: vou destruir a tarefa 39 +user_main: vou destruir a tarefa 40 +user_main: vou destruir a tarefa 41 +user_main: vou destruir a tarefa 42 +user_main: vou destruir a tarefa 43 +user_main: vou destruir a tarefa 44 +user_main: vou destruir a tarefa 45 +user_main: vou destruir a tarefa 46 +user_main: vou destruir a tarefa 47 +user_main: vou destruir a tarefa 48 +user_main: vou destruir a tarefa 49 +user_main: vou destruir a tarefa 50 +user_main: vou destruir a tarefa 51 +user_main: vou destruir a tarefa 52 +user_main: vou destruir a tarefa 53 +user_main: vou destruir a tarefa 54 +user_main: vou destruir a tarefa 55 +user_main: vou destruir a tarefa 56 +user_main: vou destruir a tarefa 57 +user_main: vou destruir a tarefa 58 +user_main: vou destruir a tarefa 59 +user_main: vou destruir a tarefa 60 +user_main: vou destruir a tarefa 61 +user_main: vou destruir a tarefa 62 +user_main: vou destruir a tarefa 63 +user_main: vou destruir a tarefa 64 +user_main: vou destruir a tarefa 65 +user_main: vou destruir a tarefa 66 +user_main: vou destruir a tarefa 67 +user_main: vou destruir a tarefa 68 +user_main: vou destruir a tarefa 69 +user_main: vou destruir a tarefa 70 +user_main: vou destruir a tarefa 71 +user_main: vou destruir a tarefa 72 +user_main: vou destruir a tarefa 73 +user_main: vou destruir a tarefa 74 +user_main: vou destruir a tarefa 75 +user_main: vou destruir a tarefa 76 +user_main: vou destruir a tarefa 77 +user_main: vou destruir a tarefa 78 +user_main: vou destruir a tarefa 79 +user_main: vou destruir a tarefa 80 +user_main: vou destruir a tarefa 81 +user_main: vou destruir a tarefa 82 +user_main: vou destruir a tarefa 83 +user_main: vou destruir a tarefa 84 +user_main: vou destruir a tarefa 85 +user_main: vou destruir a tarefa 86 +user_main: vou destruir a tarefa 87 +user_main: vou destruir a tarefa 88 +user_main: vou destruir a tarefa 89 +user_main: vou destruir a tarefa 90 +user_main: vou destruir a tarefa 91 +user_main: vou destruir a tarefa 92 +user_main: vou destruir a tarefa 93 +user_main: vou destruir a tarefa 94 +user_main: vou destruir a tarefa 95 +user_main: vou destruir a tarefa 96 +user_main: vou destruir a tarefa 97 +user_main: vou destruir a tarefa 98 +user_main: vou destruir a tarefa 99 +user_main: vou destruir a tarefa 100 +user_main: vou destruir a tarefa 101 +user_main: vou destruir a tarefa 102 +user_main: vou destruir a tarefa 103 +user_main: vou destruir a tarefa 104 +user_main: vou destruir a tarefa 105 +user_main: vou destruir a tarefa 106 +user_main: vou destruir a tarefa 107 +user_main: vou destruir a tarefa 108 +user_main: vou destruir a tarefa 109 +user_main: vou destruir a tarefa 110 +user_main: vou destruir a tarefa 111 +user_main: vou destruir a tarefa 112 +user_main: vou destruir a tarefa 113 +user_main: vou destruir a tarefa 114 +user_main: vou destruir a tarefa 115 +user_main: vou destruir a tarefa 116 +user_main: vou destruir a tarefa 117 +user_main: vou destruir a tarefa 118 +user_main: vou destruir a tarefa 119 +user_main: vou destruir a tarefa 120 +user_main: vou destruir a tarefa 121 +user_main: vou destruir a tarefa 122 +user_main: vou destruir a tarefa 123 +user_main: vou destruir a tarefa 124 +user_main: vou destruir a tarefa 125 +user_main: vou destruir a tarefa 126 +user_main: vou destruir a tarefa 127 +user_main: vou destruir a tarefa 128 +user_main: vou destruir a tarefa 129 +user_main: vou destruir a tarefa 130 +user_main: vou destruir a tarefa 131 +user_main: vou destruir a tarefa 132 +user_main: vou destruir a tarefa 133 +user_main: vou destruir a tarefa 134 +user_main: vou destruir a tarefa 135 +user_main: vou destruir a tarefa 136 +user_main: vou destruir a tarefa 137 +user_main: vou destruir a tarefa 138 +user_main: vou destruir a tarefa 139 +user_main: vou destruir a tarefa 140 +user_main: vou destruir a tarefa 141 +user_main: vou destruir a tarefa 142 +user_main: vou destruir a tarefa 143 +user_main: vou destruir a tarefa 144 +user_main: vou destruir a tarefa 145 +user_main: vou destruir a tarefa 146 +user_main: vou destruir a tarefa 147 +user_main: vou destruir a tarefa 148 +user_main: vou destruir a tarefa 149 +user_main: vou destruir a tarefa 150 +user_main: vou destruir a tarefa 151 +user_main: vou destruir a tarefa 152 +user_main: vou destruir a tarefa 153 +user_main: vou destruir a tarefa 154 +user_main: vou destruir a tarefa 155 +user_main: vou destruir a tarefa 156 +user_main: vou destruir a tarefa 157 +user_main: vou destruir a tarefa 158 +user_main: vou destruir a tarefa 159 +user_main: vou destruir a tarefa 160 +user_main: vou destruir a tarefa 161 +user_main: vou destruir a tarefa 162 +user_main: vou destruir a tarefa 163 +user_main: vou destruir a tarefa 164 +user_main: vou destruir a tarefa 165 +user_main: vou destruir a tarefa 166 +user_main: vou destruir a tarefa 167 +user_main: vou destruir a tarefa 168 +user_main: vou destruir a tarefa 169 +user_main: vou destruir a tarefa 170 +user_main: vou destruir a tarefa 171 +user_main: vou destruir a tarefa 172 +user_main: vou destruir a tarefa 173 +user_main: vou destruir a tarefa 174 +user_main: vou destruir a tarefa 175 +user_main: vou destruir a tarefa 176 +user_main: vou destruir a tarefa 177 +user_main: vou destruir a tarefa 178 +user_main: vou destruir a tarefa 179 +user_main: vou destruir a tarefa 180 +user_main: vou destruir a tarefa 181 +user_main: vou destruir a tarefa 182 +user_main: vou destruir a tarefa 183 +user_main: vou destruir a tarefa 184 +user_main: vou destruir a tarefa 185 +user_main: vou destruir a tarefa 186 +user_main: vou destruir a tarefa 187 +user_main: vou destruir a tarefa 188 +user_main: vou destruir a tarefa 189 +user_main: vou destruir a tarefa 190 +user_main: vou destruir a tarefa 191 +user_main: vou destruir a tarefa 192 +user_main: vou destruir a tarefa 193 +user_main: vou destruir a tarefa 194 +user_main: vou destruir a tarefa 195 +user_main: vou destruir a tarefa 196 +user_main: vou destruir a tarefa 197 +user_main: vou destruir a tarefa 198 +user_main: vou destruir a tarefa 199 +user_main: vou destruir a tarefa 200 +user_main: vou destruir a tarefa 201 +user_main: vou destruir a tarefa 202 +user_main: vou destruir a tarefa 203 +user_main: vou destruir a tarefa 204 +user_main: vou destruir a tarefa 205 +user_main: vou destruir a tarefa 206 +user_main: vou destruir a tarefa 207 +user_main: vou destruir a tarefa 208 +user_main: vou destruir a tarefa 209 +user_main: vou destruir a tarefa 210 +user_main: vou destruir a tarefa 211 +user_main: vou destruir a tarefa 212 +user_main: vou destruir a tarefa 213 +user_main: vou destruir a tarefa 214 +user_main: vou destruir a tarefa 215 +user_main: vou destruir a tarefa 216 +user_main: vou destruir a tarefa 217 +user_main: vou destruir a tarefa 218 +user_main: vou destruir a tarefa 219 +user_main: vou destruir a tarefa 220 +user_main: vou destruir a tarefa 221 +user_main: vou destruir a tarefa 222 +user_main: vou destruir a tarefa 223 +user_main: vou destruir a tarefa 224 +user_main: vou destruir a tarefa 225 +user_main: vou destruir a tarefa 226 +user_main: vou destruir a tarefa 227 +user_main: vou destruir a tarefa 228 +user_main: vou destruir a tarefa 229 +user_main: vou destruir a tarefa 230 +user_main: vou destruir a tarefa 231 +user_main: vou destruir a tarefa 232 +user_main: vou destruir a tarefa 233 +user_main: vou destruir a tarefa 234 +user_main: vou destruir a tarefa 235 +user_main: vou destruir a tarefa 236 +user_main: vou destruir a tarefa 237 +user_main: vou destruir a tarefa 238 +user_main: vou destruir a tarefa 239 +user_main: vou destruir a tarefa 240 +user_main: vou destruir a tarefa 241 +user_main: vou destruir a tarefa 242 +user_main: vou destruir a tarefa 243 +user_main: vou destruir a tarefa 244 +user_main: vou destruir a tarefa 245 +user_main: vou destruir a tarefa 246 +user_main: vou destruir a tarefa 247 +user_main: vou destruir a tarefa 248 +user_main: vou destruir a tarefa 249 +user_main: vou destruir a tarefa 250 +user_main: vou destruir a tarefa 251 +user_main: vou destruir a tarefa 252 +user_main: vou destruir a tarefa 253 +user_main: vou destruir a tarefa 254 +user_main: vou destruir a tarefa 255 +user_main: vou destruir a tarefa 256 +user_main: vou destruir a tarefa 257 +user_main: vou destruir a tarefa 258 +user_main: vou destruir a tarefa 259 +user_main: vou destruir a tarefa 260 +user_main: vou destruir a tarefa 261 +user_main: vou destruir a tarefa 262 +user_main: vou destruir a tarefa 263 +user_main: vou destruir a tarefa 264 +user_main: vou destruir a tarefa 265 +user_main: vou destruir a tarefa 266 +user_main: vou destruir a tarefa 267 +user_main: vou destruir a tarefa 268 +user_main: vou destruir a tarefa 269 +user_main: vou destruir a tarefa 270 +user_main: vou destruir a tarefa 271 +user_main: vou destruir a tarefa 272 +user_main: vou destruir a tarefa 273 +user_main: vou destruir a tarefa 274 +user_main: vou destruir a tarefa 275 +user_main: vou destruir a tarefa 276 +user_main: vou destruir a tarefa 277 +user_main: vou destruir a tarefa 278 +user_main: vou destruir a tarefa 279 +user_main: vou destruir a tarefa 280 +user_main: vou destruir a tarefa 281 +user_main: vou destruir a tarefa 282 +user_main: vou destruir a tarefa 283 +user_main: vou destruir a tarefa 284 +user_main: vou destruir a tarefa 285 +user_main: vou destruir a tarefa 286 +user_main: vou destruir a tarefa 287 +user_main: vou destruir a tarefa 288 +user_main: vou destruir a tarefa 289 +user_main: vou destruir a tarefa 290 +user_main: vou destruir a tarefa 291 +user_main: vou destruir a tarefa 292 +user_main: vou destruir a tarefa 293 +user_main: vou destruir a tarefa 294 +user_main: vou destruir a tarefa 295 +user_main: vou destruir a tarefa 296 +user_main: vou destruir a tarefa 297 +user_main: vou destruir a tarefa 298 +user_main: vou destruir a tarefa 299 +user_main: vou destruir a tarefa 300 +user_main: vou destruir a tarefa 301 +user_main: vou destruir a tarefa 302 +user_main: vou destruir a tarefa 303 +user_main: vou destruir a tarefa 304 +user_main: vou destruir a tarefa 305 +user_main: vou destruir a tarefa 306 +user_main: vou destruir a tarefa 307 +user_main: vou destruir a tarefa 308 +user_main: vou destruir a tarefa 309 +user_main: vou destruir a tarefa 310 +user_main: vou destruir a tarefa 311 +user_main: vou destruir a tarefa 312 +user_main: vou destruir a tarefa 313 +user_main: vou destruir a tarefa 314 +user_main: vou destruir a tarefa 315 +user_main: vou destruir a tarefa 316 +user_main: vou destruir a tarefa 317 +user_main: vou destruir a tarefa 318 +user_main: vou destruir a tarefa 319 +user_main: vou destruir a tarefa 320 +user_main: vou destruir a tarefa 321 +user_main: vou destruir a tarefa 322 +user_main: vou destruir a tarefa 323 +user_main: vou destruir a tarefa 324 +user_main: vou destruir a tarefa 325 +user_main: vou destruir a tarefa 326 +user_main: vou destruir a tarefa 327 +user_main: vou destruir a tarefa 328 +user_main: vou destruir a tarefa 329 +user_main: vou destruir a tarefa 330 +user_main: vou destruir a tarefa 331 +user_main: vou destruir a tarefa 332 +user_main: vou destruir a tarefa 333 +user_main: vou destruir a tarefa 334 +user_main: vou destruir a tarefa 335 +user_main: vou destruir a tarefa 336 +user_main: vou destruir a tarefa 337 +user_main: vou destruir a tarefa 338 +user_main: vou destruir a tarefa 339 +user_main: vou destruir a tarefa 340 +user_main: vou destruir a tarefa 341 +user_main: vou destruir a tarefa 342 +user_main: vou destruir a tarefa 343 +user_main: vou destruir a tarefa 344 +user_main: vou destruir a tarefa 345 +user_main: vou destruir a tarefa 346 +user_main: vou destruir a tarefa 347 +user_main: vou destruir a tarefa 348 +user_main: vou destruir a tarefa 349 +user_main: vou destruir a tarefa 350 +user_main: vou destruir a tarefa 351 +user_main: vou destruir a tarefa 352 +user_main: vou destruir a tarefa 353 +user_main: vou destruir a tarefa 354 +user_main: vou destruir a tarefa 355 +user_main: vou destruir a tarefa 356 +user_main: vou destruir a tarefa 357 +user_main: vou destruir a tarefa 358 +user_main: vou destruir a tarefa 359 +user_main: vou destruir a tarefa 360 +user_main: vou destruir a tarefa 361 +user_main: vou destruir a tarefa 362 +user_main: vou destruir a tarefa 363 +user_main: vou destruir a tarefa 364 +user_main: vou destruir a tarefa 365 +user_main: vou destruir a tarefa 366 +user_main: vou destruir a tarefa 367 +user_main: vou destruir a tarefa 368 +user_main: vou destruir a tarefa 369 +user_main: vou destruir a tarefa 370 +user_main: vou destruir a tarefa 371 +user_main: vou destruir a tarefa 372 +user_main: vou destruir a tarefa 373 +user_main: vou destruir a tarefa 374 +user_main: vou destruir a tarefa 375 +user_main: vou destruir a tarefa 376 +user_main: vou destruir a tarefa 377 +user_main: vou destruir a tarefa 378 +user_main: vou destruir a tarefa 379 +user_main: vou destruir a tarefa 380 +user_main: vou destruir a tarefa 381 +user_main: vou destruir a tarefa 382 +user_main: vou destruir a tarefa 383 +user_main: vou destruir a tarefa 384 +user_main: vou destruir a tarefa 385 +user_main: vou destruir a tarefa 386 +user_main: vou destruir a tarefa 387 +user_main: vou destruir a tarefa 388 +user_main: vou destruir a tarefa 389 +user_main: vou destruir a tarefa 390 +user_main: vou destruir a tarefa 391 +user_main: vou destruir a tarefa 392 +user_main: vou destruir a tarefa 393 +user_main: vou destruir a tarefa 394 +user_main: vou destruir a tarefa 395 +user_main: vou destruir a tarefa 396 +user_main: vou destruir a tarefa 397 +user_main: vou destruir a tarefa 398 +user_main: vou destruir a tarefa 399 +user_main: vou destruir a tarefa 400 +user_main: vou destruir a tarefa 401 +user_main: vou destruir a tarefa 402 +user_main: vou destruir a tarefa 403 +user_main: vou destruir a tarefa 404 +user_main: vou destruir a tarefa 405 +user_main: vou destruir a tarefa 406 +user_main: vou destruir a tarefa 407 +user_main: vou destruir a tarefa 408 +user_main: vou destruir a tarefa 409 +user_main: vou destruir a tarefa 410 +user_main: vou destruir a tarefa 411 +user_main: vou destruir a tarefa 412 +user_main: vou destruir a tarefa 413 +user_main: vou destruir a tarefa 414 +user_main: vou destruir a tarefa 415 +user_main: vou destruir a tarefa 416 +user_main: vou destruir a tarefa 417 +user_main: vou destruir a tarefa 418 +user_main: vou destruir a tarefa 419 +user_main: vou destruir a tarefa 420 +user_main: vou destruir a tarefa 421 +user_main: vou destruir a tarefa 422 +user_main: vou destruir a tarefa 423 +user_main: vou destruir a tarefa 424 +user_main: vou destruir a tarefa 425 +user_main: vou destruir a tarefa 426 +user_main: vou destruir a tarefa 427 +user_main: vou destruir a tarefa 428 +user_main: vou destruir a tarefa 429 +user_main: vou destruir a tarefa 430 +user_main: vou destruir a tarefa 431 +user_main: vou destruir a tarefa 432 +user_main: vou destruir a tarefa 433 +user_main: vou destruir a tarefa 434 +user_main: vou destruir a tarefa 435 +user_main: vou destruir a tarefa 436 +user_main: vou destruir a tarefa 437 +user_main: vou destruir a tarefa 438 +user_main: vou destruir a tarefa 439 +user_main: vou destruir a tarefa 440 +user_main: vou destruir a tarefa 441 +user_main: vou destruir a tarefa 442 +user_main: vou destruir a tarefa 443 +user_main: vou destruir a tarefa 444 +user_main: vou destruir a tarefa 445 +user_main: vou destruir a tarefa 446 +user_main: vou destruir a tarefa 447 +user_main: vou destruir a tarefa 448 +user_main: vou destruir a tarefa 449 +user_main: vou destruir a tarefa 450 +user_main: vou destruir a tarefa 451 +user_main: vou destruir a tarefa 452 +user_main: vou destruir a tarefa 453 +user_main: vou destruir a tarefa 454 +user_main: vou destruir a tarefa 455 +user_main: vou destruir a tarefa 456 +user_main: vou destruir a tarefa 457 +user_main: vou destruir a tarefa 458 +user_main: vou destruir a tarefa 459 +user_main: vou destruir a tarefa 460 +user_main: vou destruir a tarefa 461 +user_main: vou destruir a tarefa 462 +user_main: vou destruir a tarefa 463 +user_main: vou destruir a tarefa 464 +user_main: vou destruir a tarefa 465 +user_main: vou destruir a tarefa 466 +user_main: vou destruir a tarefa 467 +user_main: vou destruir a tarefa 468 +user_main: vou destruir a tarefa 469 +user_main: vou destruir a tarefa 470 +user_main: vou destruir a tarefa 471 +user_main: vou destruir a tarefa 472 +user_main: vou destruir a tarefa 473 +user_main: vou destruir a tarefa 474 +user_main: vou destruir a tarefa 475 +user_main: vou destruir a tarefa 476 +user_main: vou destruir a tarefa 477 +user_main: vou destruir a tarefa 478 +user_main: vou destruir a tarefa 479 +user_main: vou destruir a tarefa 480 +user_main: vou destruir a tarefa 481 +user_main: vou destruir a tarefa 482 +user_main: vou destruir a tarefa 483 +user_main: vou destruir a tarefa 484 +user_main: vou destruir a tarefa 485 +user_main: vou destruir a tarefa 486 +user_main: vou destruir a tarefa 487 +user_main: vou destruir a tarefa 488 +user_main: vou destruir a tarefa 489 +user_main: vou destruir a tarefa 490 +user_main: vou destruir a tarefa 491 +user_main: vou destruir a tarefa 492 +user_main: vou destruir a tarefa 493 +user_main: vou destruir a tarefa 494 +user_main: vou destruir a tarefa 495 +user_main: vou destruir a tarefa 496 +user_main: vou destruir a tarefa 497 +user_main: vou destruir a tarefa 498 +user_main: vou destruir a tarefa 499 +user_main: vou destruir a tarefa 500 +user_main: vou destruir a tarefa 501 +user_main: vou destruir a tarefa 502 +user_main: vou destruir a tarefa 503 +user_main: vou destruir a tarefa 504 +user_main: vou destruir a tarefa 505 +user_main: vou destruir a tarefa 506 +user_main: vou destruir a tarefa 507 +user_main: vou destruir a tarefa 508 +user_main: vou destruir a tarefa 509 +user_main: vou destruir a tarefa 510 +user_main: vou destruir a tarefa 511 +user_main: vou destruir a tarefa 512 +user_main: vou destruir a tarefa 513 + 0 ms: user_main fim +PPOS: system terminating +PPOS: system terminated (uptime 0 ms) diff --git a/test/pingpong-task3.c b/test/pingpong-task3.c @@ -0,0 +1,53 @@ +// PingPongOS - PingPong Operating System +// Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 07/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Teste da gestão básica de tarefas + +#include <assert.h> +#include "lib/pplibc.h" +#include "syscall.h" + +#define NUMTASKS 512 + +static struct task_t *task; + +// corpo das tarefas +void body_task(void *) +{ + printk("\tEstou na tarefa %5d\n", task_id(NULL)); + task_switch(NULL); +} + +// corpo da tarefa principal +void user_main(void *arg) +{ + int status, id; + char *name; + + name = task_name(NULL); + id = task_id(NULL); + printk("%5u ms: %s (id %d): inicio\n", time(), name, id); + + for (int i = 0; i < NUMTASKS; i++) + { + // cria a tarefa + task = task_create(NULL, body_task, NULL); + assert(task); + + // ativa a tarefa + status = task_switch(task); + assert(status == NOERROR); + + // após retornar, destrói a tarefa + status = task_destroy(task); + assert(status == NOERROR); + } + + printk("%5u ms: %s fim\n", time(), name); + + task_switch(NULL); +} diff --git a/test/pingpong-task3.txt b/test/pingpong-task3.txt @@ -0,0 +1,518 @@ +PPOS: system initializing +PPOS: system ready (uptime 0 ms) + 0 ms: user_main (id 1): inicio + Estou na tarefa 2 + Estou na tarefa 3 + Estou na tarefa 4 + Estou na tarefa 5 + Estou na tarefa 6 + Estou na tarefa 7 + Estou na tarefa 8 + Estou na tarefa 9 + Estou na tarefa 10 + Estou na tarefa 11 + Estou na tarefa 12 + Estou na tarefa 13 + Estou na tarefa 14 + Estou na tarefa 15 + Estou na tarefa 16 + Estou na tarefa 17 + Estou na tarefa 18 + Estou na tarefa 19 + Estou na tarefa 20 + Estou na tarefa 21 + Estou na tarefa 22 + Estou na tarefa 23 + Estou na tarefa 24 + Estou na tarefa 25 + Estou na tarefa 26 + Estou na tarefa 27 + Estou na tarefa 28 + Estou na tarefa 29 + Estou na tarefa 30 + Estou na tarefa 31 + Estou na tarefa 32 + Estou na tarefa 33 + Estou na tarefa 34 + Estou na tarefa 35 + Estou na tarefa 36 + Estou na tarefa 37 + Estou na tarefa 38 + Estou na tarefa 39 + Estou na tarefa 40 + Estou na tarefa 41 + Estou na tarefa 42 + Estou na tarefa 43 + Estou na tarefa 44 + Estou na tarefa 45 + Estou na tarefa 46 + Estou na tarefa 47 + Estou na tarefa 48 + Estou na tarefa 49 + Estou na tarefa 50 + Estou na tarefa 51 + Estou na tarefa 52 + Estou na tarefa 53 + Estou na tarefa 54 + Estou na tarefa 55 + Estou na tarefa 56 + Estou na tarefa 57 + Estou na tarefa 58 + Estou na tarefa 59 + Estou na tarefa 60 + Estou na tarefa 61 + Estou na tarefa 62 + Estou na tarefa 63 + Estou na tarefa 64 + Estou na tarefa 65 + Estou na tarefa 66 + Estou na tarefa 67 + Estou na tarefa 68 + Estou na tarefa 69 + Estou na tarefa 70 + Estou na tarefa 71 + Estou na tarefa 72 + Estou na tarefa 73 + Estou na tarefa 74 + Estou na tarefa 75 + Estou na tarefa 76 + Estou na tarefa 77 + Estou na tarefa 78 + Estou na tarefa 79 + Estou na tarefa 80 + Estou na tarefa 81 + Estou na tarefa 82 + Estou na tarefa 83 + Estou na tarefa 84 + Estou na tarefa 85 + Estou na tarefa 86 + Estou na tarefa 87 + Estou na tarefa 88 + Estou na tarefa 89 + Estou na tarefa 90 + Estou na tarefa 91 + Estou na tarefa 92 + Estou na tarefa 93 + Estou na tarefa 94 + Estou na tarefa 95 + Estou na tarefa 96 + Estou na tarefa 97 + Estou na tarefa 98 + Estou na tarefa 99 + Estou na tarefa 100 + Estou na tarefa 101 + Estou na tarefa 102 + Estou na tarefa 103 + Estou na tarefa 104 + Estou na tarefa 105 + Estou na tarefa 106 + Estou na tarefa 107 + Estou na tarefa 108 + Estou na tarefa 109 + Estou na tarefa 110 + Estou na tarefa 111 + Estou na tarefa 112 + Estou na tarefa 113 + Estou na tarefa 114 + Estou na tarefa 115 + Estou na tarefa 116 + Estou na tarefa 117 + Estou na tarefa 118 + Estou na tarefa 119 + Estou na tarefa 120 + Estou na tarefa 121 + Estou na tarefa 122 + Estou na tarefa 123 + Estou na tarefa 124 + Estou na tarefa 125 + Estou na tarefa 126 + Estou na tarefa 127 + Estou na tarefa 128 + Estou na tarefa 129 + Estou na tarefa 130 + Estou na tarefa 131 + Estou na tarefa 132 + Estou na tarefa 133 + Estou na tarefa 134 + Estou na tarefa 135 + Estou na tarefa 136 + Estou na tarefa 137 + Estou na tarefa 138 + Estou na tarefa 139 + Estou na tarefa 140 + Estou na tarefa 141 + Estou na tarefa 142 + Estou na tarefa 143 + Estou na tarefa 144 + Estou na tarefa 145 + Estou na tarefa 146 + Estou na tarefa 147 + Estou na tarefa 148 + Estou na tarefa 149 + Estou na tarefa 150 + Estou na tarefa 151 + Estou na tarefa 152 + Estou na tarefa 153 + Estou na tarefa 154 + Estou na tarefa 155 + Estou na tarefa 156 + Estou na tarefa 157 + Estou na tarefa 158 + Estou na tarefa 159 + Estou na tarefa 160 + Estou na tarefa 161 + Estou na tarefa 162 + Estou na tarefa 163 + Estou na tarefa 164 + Estou na tarefa 165 + Estou na tarefa 166 + Estou na tarefa 167 + Estou na tarefa 168 + Estou na tarefa 169 + Estou na tarefa 170 + Estou na tarefa 171 + Estou na tarefa 172 + Estou na tarefa 173 + Estou na tarefa 174 + Estou na tarefa 175 + Estou na tarefa 176 + Estou na tarefa 177 + Estou na tarefa 178 + Estou na tarefa 179 + Estou na tarefa 180 + Estou na tarefa 181 + Estou na tarefa 182 + Estou na tarefa 183 + Estou na tarefa 184 + Estou na tarefa 185 + Estou na tarefa 186 + Estou na tarefa 187 + Estou na tarefa 188 + Estou na tarefa 189 + Estou na tarefa 190 + Estou na tarefa 191 + Estou na tarefa 192 + Estou na tarefa 193 + Estou na tarefa 194 + Estou na tarefa 195 + Estou na tarefa 196 + Estou na tarefa 197 + Estou na tarefa 198 + Estou na tarefa 199 + Estou na tarefa 200 + Estou na tarefa 201 + Estou na tarefa 202 + Estou na tarefa 203 + Estou na tarefa 204 + Estou na tarefa 205 + Estou na tarefa 206 + Estou na tarefa 207 + Estou na tarefa 208 + Estou na tarefa 209 + Estou na tarefa 210 + Estou na tarefa 211 + Estou na tarefa 212 + Estou na tarefa 213 + Estou na tarefa 214 + Estou na tarefa 215 + Estou na tarefa 216 + Estou na tarefa 217 + Estou na tarefa 218 + Estou na tarefa 219 + Estou na tarefa 220 + Estou na tarefa 221 + Estou na tarefa 222 + Estou na tarefa 223 + Estou na tarefa 224 + Estou na tarefa 225 + Estou na tarefa 226 + Estou na tarefa 227 + Estou na tarefa 228 + Estou na tarefa 229 + Estou na tarefa 230 + Estou na tarefa 231 + Estou na tarefa 232 + Estou na tarefa 233 + Estou na tarefa 234 + Estou na tarefa 235 + Estou na tarefa 236 + Estou na tarefa 237 + Estou na tarefa 238 + Estou na tarefa 239 + Estou na tarefa 240 + Estou na tarefa 241 + Estou na tarefa 242 + Estou na tarefa 243 + Estou na tarefa 244 + Estou na tarefa 245 + Estou na tarefa 246 + Estou na tarefa 247 + Estou na tarefa 248 + Estou na tarefa 249 + Estou na tarefa 250 + Estou na tarefa 251 + Estou na tarefa 252 + Estou na tarefa 253 + Estou na tarefa 254 + Estou na tarefa 255 + Estou na tarefa 256 + Estou na tarefa 257 + Estou na tarefa 258 + Estou na tarefa 259 + Estou na tarefa 260 + Estou na tarefa 261 + Estou na tarefa 262 + Estou na tarefa 263 + Estou na tarefa 264 + Estou na tarefa 265 + Estou na tarefa 266 + Estou na tarefa 267 + Estou na tarefa 268 + Estou na tarefa 269 + Estou na tarefa 270 + Estou na tarefa 271 + Estou na tarefa 272 + Estou na tarefa 273 + Estou na tarefa 274 + Estou na tarefa 275 + Estou na tarefa 276 + Estou na tarefa 277 + Estou na tarefa 278 + Estou na tarefa 279 + Estou na tarefa 280 + Estou na tarefa 281 + Estou na tarefa 282 + Estou na tarefa 283 + Estou na tarefa 284 + Estou na tarefa 285 + Estou na tarefa 286 + Estou na tarefa 287 + Estou na tarefa 288 + Estou na tarefa 289 + Estou na tarefa 290 + Estou na tarefa 291 + Estou na tarefa 292 + Estou na tarefa 293 + Estou na tarefa 294 + Estou na tarefa 295 + Estou na tarefa 296 + Estou na tarefa 297 + Estou na tarefa 298 + Estou na tarefa 299 + Estou na tarefa 300 + Estou na tarefa 301 + Estou na tarefa 302 + Estou na tarefa 303 + Estou na tarefa 304 + Estou na tarefa 305 + Estou na tarefa 306 + Estou na tarefa 307 + Estou na tarefa 308 + Estou na tarefa 309 + Estou na tarefa 310 + Estou na tarefa 311 + Estou na tarefa 312 + Estou na tarefa 313 + Estou na tarefa 314 + Estou na tarefa 315 + Estou na tarefa 316 + Estou na tarefa 317 + Estou na tarefa 318 + Estou na tarefa 319 + Estou na tarefa 320 + Estou na tarefa 321 + Estou na tarefa 322 + Estou na tarefa 323 + Estou na tarefa 324 + Estou na tarefa 325 + Estou na tarefa 326 + Estou na tarefa 327 + Estou na tarefa 328 + Estou na tarefa 329 + Estou na tarefa 330 + Estou na tarefa 331 + Estou na tarefa 332 + Estou na tarefa 333 + Estou na tarefa 334 + Estou na tarefa 335 + Estou na tarefa 336 + Estou na tarefa 337 + Estou na tarefa 338 + Estou na tarefa 339 + Estou na tarefa 340 + Estou na tarefa 341 + Estou na tarefa 342 + Estou na tarefa 343 + Estou na tarefa 344 + Estou na tarefa 345 + Estou na tarefa 346 + Estou na tarefa 347 + Estou na tarefa 348 + Estou na tarefa 349 + Estou na tarefa 350 + Estou na tarefa 351 + Estou na tarefa 352 + Estou na tarefa 353 + Estou na tarefa 354 + Estou na tarefa 355 + Estou na tarefa 356 + Estou na tarefa 357 + Estou na tarefa 358 + Estou na tarefa 359 + Estou na tarefa 360 + Estou na tarefa 361 + Estou na tarefa 362 + Estou na tarefa 363 + Estou na tarefa 364 + Estou na tarefa 365 + Estou na tarefa 366 + Estou na tarefa 367 + Estou na tarefa 368 + Estou na tarefa 369 + Estou na tarefa 370 + Estou na tarefa 371 + Estou na tarefa 372 + Estou na tarefa 373 + Estou na tarefa 374 + Estou na tarefa 375 + Estou na tarefa 376 + Estou na tarefa 377 + Estou na tarefa 378 + Estou na tarefa 379 + Estou na tarefa 380 + Estou na tarefa 381 + Estou na tarefa 382 + Estou na tarefa 383 + Estou na tarefa 384 + Estou na tarefa 385 + Estou na tarefa 386 + Estou na tarefa 387 + Estou na tarefa 388 + Estou na tarefa 389 + Estou na tarefa 390 + Estou na tarefa 391 + Estou na tarefa 392 + Estou na tarefa 393 + Estou na tarefa 394 + Estou na tarefa 395 + Estou na tarefa 396 + Estou na tarefa 397 + Estou na tarefa 398 + Estou na tarefa 399 + Estou na tarefa 400 + Estou na tarefa 401 + Estou na tarefa 402 + Estou na tarefa 403 + Estou na tarefa 404 + Estou na tarefa 405 + Estou na tarefa 406 + Estou na tarefa 407 + Estou na tarefa 408 + Estou na tarefa 409 + Estou na tarefa 410 + Estou na tarefa 411 + Estou na tarefa 412 + Estou na tarefa 413 + Estou na tarefa 414 + Estou na tarefa 415 + Estou na tarefa 416 + Estou na tarefa 417 + Estou na tarefa 418 + Estou na tarefa 419 + Estou na tarefa 420 + Estou na tarefa 421 + Estou na tarefa 422 + Estou na tarefa 423 + Estou na tarefa 424 + Estou na tarefa 425 + Estou na tarefa 426 + Estou na tarefa 427 + Estou na tarefa 428 + Estou na tarefa 429 + Estou na tarefa 430 + Estou na tarefa 431 + Estou na tarefa 432 + Estou na tarefa 433 + Estou na tarefa 434 + Estou na tarefa 435 + Estou na tarefa 436 + Estou na tarefa 437 + Estou na tarefa 438 + Estou na tarefa 439 + Estou na tarefa 440 + Estou na tarefa 441 + Estou na tarefa 442 + Estou na tarefa 443 + Estou na tarefa 444 + Estou na tarefa 445 + Estou na tarefa 446 + Estou na tarefa 447 + Estou na tarefa 448 + Estou na tarefa 449 + Estou na tarefa 450 + Estou na tarefa 451 + Estou na tarefa 452 + Estou na tarefa 453 + Estou na tarefa 454 + Estou na tarefa 455 + Estou na tarefa 456 + Estou na tarefa 457 + Estou na tarefa 458 + Estou na tarefa 459 + Estou na tarefa 460 + Estou na tarefa 461 + Estou na tarefa 462 + Estou na tarefa 463 + Estou na tarefa 464 + Estou na tarefa 465 + Estou na tarefa 466 + Estou na tarefa 467 + Estou na tarefa 468 + Estou na tarefa 469 + Estou na tarefa 470 + Estou na tarefa 471 + Estou na tarefa 472 + Estou na tarefa 473 + Estou na tarefa 474 + Estou na tarefa 475 + Estou na tarefa 476 + Estou na tarefa 477 + Estou na tarefa 478 + Estou na tarefa 479 + Estou na tarefa 480 + Estou na tarefa 481 + Estou na tarefa 482 + Estou na tarefa 483 + Estou na tarefa 484 + Estou na tarefa 485 + Estou na tarefa 486 + Estou na tarefa 487 + Estou na tarefa 488 + Estou na tarefa 489 + Estou na tarefa 490 + Estou na tarefa 491 + Estou na tarefa 492 + Estou na tarefa 493 + Estou na tarefa 494 + Estou na tarefa 495 + Estou na tarefa 496 + Estou na tarefa 497 + Estou na tarefa 498 + Estou na tarefa 499 + Estou na tarefa 500 + Estou na tarefa 501 + Estou na tarefa 502 + Estou na tarefa 503 + Estou na tarefa 504 + Estou na tarefa 505 + Estou na tarefa 506 + Estou na tarefa 507 + Estou na tarefa 508 + Estou na tarefa 509 + Estou na tarefa 510 + Estou na tarefa 511 + Estou na tarefa 512 + Estou na tarefa 513 + 0 ms: user_main fim +PPOS: system terminating +PPOS: system terminated (uptime 0 ms) diff --git a/test/pingpong-wait-stress.c b/test/pingpong-wait-stress.c @@ -0,0 +1,79 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Teste da função task_wait() com muitas tarefas + +#include <assert.h> +#include "lib/pplibc.h" +#include "syscall.h" + +#define WORKLOAD 3000 +#define NUMTASKS 512 + +struct task_t *task[NUMTASKS]; + +// simula um processamento pesado +int hardwork(int n) +{ + int soma = 0; + + for (int i = 0; i < n; i++) + for (int j = 0; j < n; j++) + soma += j; + return (soma); +} + +// corpo das tarefas +void body() +{ + int tid = task_id(NULL); + int max = 1 + randnum() % 5; + + for (int i = 0; i < max; i++) + hardwork(WORKLOAD + randnum() % WORKLOAD); + + printk("task %3d: fim\n", tid); + task_exit(tid); +} + +// corpo da tarefa principal +void user_main(void *arg) +{ + int status, id; + char *name; + + name = task_name(NULL); + id = task_id(NULL); + printk("%5u ms: %s (id %d): inicio\n", time(), name, id); + + // cria tarefas + printk("Creating %d tasks\n", NUMTASKS); + for (int i = 0; i < NUMTASKS; i++) + { + task[i] = task_create(NULL, body, NULL); + assert(task[i]); + } + + // espera tarefas encerrarem + for (int i = 0; i < NUMTASKS; i++) + { + printk("Waiting for task %d to finish\n", task_id(task[i])); + status = task_wait(task[i]); + assert(status == task_id(task[i])); + } + + // destrói as tarefas + for (int i = 0; i < NUMTASKS; i++) + { + status = task_destroy(task[i]); + assert(status == NOERROR); + } + + printk("%5u ms: %s fim\n", time(), name); + + task_exit(NOERROR); +} diff --git a/test/pingpong-wait-stress.txt b/test/pingpong-wait-stress.txt @@ -0,0 +1,1545 @@ +PPOS: system initializing +PPOS: system ready (uptime 0 ms) + 0 ms: user_main (id 1): inicio +Creating 512 tasks +Waiting for task 2 to finish +task 14: fim +PPOS: task 14 ((null)), 5247 ms run, 16 ms cpu, 2 acts, exit code 14 +task 23: fim +PPOS: task 23 ((null)), 5336 ms run, 19 ms cpu, 2 acts, exit code 23 +task 31: fim +PPOS: task 31 ((null)), 5412 ms run, 16 ms cpu, 2 acts, exit code 31 +task 34: fim +PPOS: task 34 ((null)), 5440 ms run, 18 ms cpu, 2 acts, exit code 34 +task 75: fim +PPOS: task 75 ((null)), 5849 ms run, 19 ms cpu, 2 acts, exit code 75 +task 79: fim +PPOS: task 79 ((null)), 5886 ms run, 17 ms cpu, 2 acts, exit code 79 +task 122: fim +PPOS: task 122 ((null)), 6312 ms run, 16 ms cpu, 2 acts, exit code 122 +task 162: fim +PPOS: task 162 ((null)), 6711 ms run, 19 ms cpu, 2 acts, exit code 162 +task 235: fim +PPOS: task 235 ((null)), 7436 ms run, 15 ms cpu, 2 acts, exit code 235 +task 308: fim +PPOS: task 308 ((null)), 8164 ms run, 18 ms cpu, 2 acts, exit code 308 +task 315: fim +PPOS: task 315 ((null)), 8232 ms run, 18 ms cpu, 2 acts, exit code 315 +task 446: fim +PPOS: task 446 ((null)), 9539 ms run, 17 ms cpu, 2 acts, exit code 446 +task 466: fim +PPOS: task 466 ((null)), 9735 ms run, 16 ms cpu, 2 acts, exit code 466 +task 81: fim +PPOS: task 81 ((null)), 10940 ms run, 25 ms cpu, 3 acts, exit code 81 +task 91: fim +PPOS: task 91 ((null)), 11036 ms run, 26 ms cpu, 3 acts, exit code 91 +task 126: fim +PPOS: task 126 ((null)), 11373 ms run, 27 ms cpu, 3 acts, exit code 126 +task 129: fim +PPOS: task 129 ((null)), 11399 ms run, 26 ms cpu, 3 acts, exit code 129 +task 133: fim +PPOS: task 133 ((null)), 11436 ms run, 27 ms cpu, 3 acts, exit code 133 +task 143: fim +PPOS: task 143 ((null)), 11530 ms run, 24 ms cpu, 3 acts, exit code 143 +task 150: fim +PPOS: task 150 ((null)), 11598 ms run, 27 ms cpu, 3 acts, exit code 150 +task 181: fim +PPOS: task 181 ((null)), 11893 ms run, 25 ms cpu, 3 acts, exit code 181 +task 196: fim +PPOS: task 196 ((null)), 12033 ms run, 20 ms cpu, 3 acts, exit code 196 +task 220: fim +PPOS: task 220 ((null)), 12271 ms run, 28 ms cpu, 3 acts, exit code 220 +task 234: fim +PPOS: task 234 ((null)), 12402 ms run, 21 ms cpu, 3 acts, exit code 234 +task 251: fim +PPOS: task 251 ((null)), 12557 ms run, 24 ms cpu, 3 acts, exit code 251 +task 266: fim +PPOS: task 266 ((null)), 12706 ms run, 29 ms cpu, 3 acts, exit code 266 +task 366: fim +PPOS: task 366 ((null)), 13686 ms run, 29 ms cpu, 3 acts, exit code 366 +task 392: fim +PPOS: task 392 ((null)), 13940 ms run, 24 ms cpu, 3 acts, exit code 392 +task 402: fim +PPOS: task 402 ((null)), 14035 ms run, 25 ms cpu, 3 acts, exit code 402 +task 432: fim +PPOS: task 432 ((null)), 14332 ms run, 27 ms cpu, 3 acts, exit code 432 +task 438: fim +PPOS: task 438 ((null)), 14384 ms run, 22 ms cpu, 3 acts, exit code 438 +task 501: fim +PPOS: task 501 ((null)), 14990 ms run, 26 ms cpu, 3 acts, exit code 501 +task 503: fim +PPOS: task 503 ((null)), 15003 ms run, 23 ms cpu, 3 acts, exit code 503 +task 513: fim +PPOS: task 513 ((null)), 15094 ms run, 21 ms cpu, 3 acts, exit code 513 +task 10: fim +PPOS: task 10 ((null)), 15183 ms run, 39 ms cpu, 4 acts, exit code 10 +task 21: fim +PPOS: task 21 ((null)), 15275 ms run, 32 ms cpu, 4 acts, exit code 21 +task 36: fim +PPOS: task 36 ((null)), 15390 ms run, 35 ms cpu, 4 acts, exit code 36 +task 60: fim +PPOS: task 60 ((null)), 15621 ms run, 31 ms cpu, 4 acts, exit code 60 +task 76: fim +PPOS: task 76 ((null)), 15763 ms run, 32 ms cpu, 4 acts, exit code 76 +task 85: fim +PPOS: task 85 ((null)), 15832 ms run, 39 ms cpu, 4 acts, exit code 85 +task 101: fim +PPOS: task 101 ((null)), 15972 ms run, 30 ms cpu, 4 acts, exit code 101 +task 116: fim +PPOS: task 116 ((null)), 16115 ms run, 33 ms cpu, 4 acts, exit code 116 +task 119: fim +PPOS: task 119 ((null)), 16139 ms run, 34 ms cpu, 4 acts, exit code 119 +task 142: fim +PPOS: task 142 ((null)), 16326 ms run, 37 ms cpu, 4 acts, exit code 142 +task 145: fim +PPOS: task 145 ((null)), 16342 ms run, 36 ms cpu, 4 acts, exit code 145 +task 146: fim +PPOS: task 146 ((null)), 16347 ms run, 35 ms cpu, 4 acts, exit code 146 +task 148: fim +PPOS: task 148 ((null)), 16361 ms run, 34 ms cpu, 4 acts, exit code 148 +task 165: fim +PPOS: task 165 ((null)), 16506 ms run, 35 ms cpu, 4 acts, exit code 165 +task 183: fim +PPOS: task 183 ((null)), 16674 ms run, 38 ms cpu, 4 acts, exit code 183 +task 188: fim +PPOS: task 188 ((null)), 16714 ms run, 30 ms cpu, 4 acts, exit code 188 +task 193: fim +PPOS: task 193 ((null)), 16760 ms run, 36 ms cpu, 4 acts, exit code 193 +task 260: fim +PPOS: task 260 ((null)), 17376 ms run, 36 ms cpu, 4 acts, exit code 260 +task 270: fim +PPOS: task 270 ((null)), 17462 ms run, 36 ms cpu, 4 acts, exit code 270 +task 286: fim +PPOS: task 286 ((null)), 17616 ms run, 34 ms cpu, 4 acts, exit code 286 +task 304: fim +PPOS: task 304 ((null)), 17792 ms run, 35 ms cpu, 4 acts, exit code 304 +task 311: fim +PPOS: task 311 ((null)), 17848 ms run, 36 ms cpu, 4 acts, exit code 311 +task 316: fim +PPOS: task 316 ((null)), 17885 ms run, 37 ms cpu, 4 acts, exit code 316 +task 317: fim +PPOS: task 317 ((null)), 17889 ms run, 34 ms cpu, 4 acts, exit code 317 +task 327: fim +PPOS: task 327 ((null)), 17985 ms run, 36 ms cpu, 4 acts, exit code 327 +task 359: fim +PPOS: task 359 ((null)), 18299 ms run, 34 ms cpu, 4 acts, exit code 359 +task 361: fim +PPOS: task 361 ((null)), 18316 ms run, 36 ms cpu, 4 acts, exit code 361 +task 376: fim +PPOS: task 376 ((null)), 18452 ms run, 36 ms cpu, 4 acts, exit code 376 +task 386: fim +PPOS: task 386 ((null)), 18550 ms run, 38 ms cpu, 4 acts, exit code 386 +task 391: fim +PPOS: task 391 ((null)), 18599 ms run, 39 ms cpu, 4 acts, exit code 391 +task 395: fim +PPOS: task 395 ((null)), 18619 ms run, 30 ms cpu, 4 acts, exit code 395 +task 406: fim +PPOS: task 406 ((null)), 18717 ms run, 38 ms cpu, 4 acts, exit code 406 +task 417: fim +PPOS: task 417 ((null)), 18817 ms run, 30 ms cpu, 4 acts, exit code 417 +task 448: fim +PPOS: task 448 ((null)), 19097 ms run, 39 ms cpu, 4 acts, exit code 448 +task 484: fim +PPOS: task 484 ((null)), 19440 ms run, 33 ms cpu, 4 acts, exit code 484 +task 498: fim +PPOS: task 498 ((null)), 19576 ms run, 36 ms cpu, 4 acts, exit code 498 +task 17: fim +PPOS: task 17 ((null)), 19829 ms run, 43 ms cpu, 5 acts, exit code 17 +task 63: fim +PPOS: task 63 ((null)), 20226 ms run, 47 ms cpu, 5 acts, exit code 63 +task 64: fim +task 69: fim +PPOS: task 69 ((null)), 20282 ms run, 46 ms cpu, 5 acts, exit code 69 +task 72: fim +PPOS: task 72 ((null)), 20305 ms run, 43 ms cpu, 5 acts, exit code 72 +task 112: fim +PPOS: task 112 ((null)), 20628 ms run, 43 ms cpu, 5 acts, exit code 112 +task 115: fim +PPOS: task 115 ((null)), 20654 ms run, 46 ms cpu, 5 acts, exit code 115 +task 124: fim +PPOS: task 124 ((null)), 20710 ms run, 46 ms cpu, 5 acts, exit code 124 +task 144: fim +PPOS: task 144 ((null)), 20858 ms run, 48 ms cpu, 5 acts, exit code 144 +task 154: fim +PPOS: task 154 ((null)), 20908 ms run, 40 ms cpu, 5 acts, exit code 154 +task 169: fim +PPOS: task 169 ((null)), 21030 ms run, 42 ms cpu, 5 acts, exit code 169 +task 170: fim +PPOS: task 170 ((null)), 21033 ms run, 43 ms cpu, 5 acts, exit code 170 +task 195: fim +PPOS: task 195 ((null)), 21238 ms run, 45 ms cpu, 5 acts, exit code 195 +task 200: fim +PPOS: task 200 ((null)), 21275 ms run, 47 ms cpu, 5 acts, exit code 200 +task 219: fim +PPOS: task 219 ((null)), 21463 ms run, 48 ms cpu, 5 acts, exit code 219 +task 228: fim +PPOS: task 228 ((null)), 21536 ms run, 43 ms cpu, 5 acts, exit code 228 +task 252: fim +PPOS: task 252 ((null)), 21739 ms run, 43 ms cpu, 5 acts, exit code 252 +task 257: fim +PPOS: task 257 ((null)), 21786 ms run, 47 ms cpu, 5 acts, exit code 257 +task 289: fim +PPOS: task 289 ((null)), 22062 ms run, 46 ms cpu, 5 acts, exit code 289 +task 321: fim +PPOS: task 321 ((null)), 22321 ms run, 49 ms cpu, 5 acts, exit code 321 +task 322: fim +PPOS: task 322 ((null)), 22324 ms run, 43 ms cpu, 5 acts, exit code 322 +task 339: fim +PPOS: task 339 ((null)), 22478 ms run, 44 ms cpu, 5 acts, exit code 339 +task 356: fim +PPOS: task 356 ((null)), 22646 ms run, 48 ms cpu, 5 acts, exit code 356 +task 374: fim +PPOS: task 374 ((null)), 22793 ms run, 47 ms cpu, 5 acts, exit code 374 +task 401: fim +PPOS: task 401 ((null)), 23006 ms run, 42 ms cpu, 5 acts, exit code 401 +task 408: fim +PPOS: task 408 ((null)), 23051 ms run, 45 ms cpu, 5 acts, exit code 408 +task 423: fim +PPOS: task 423 ((null)), 23185 ms run, 44 ms cpu, 5 acts, exit code 423 +task 436: fim +PPOS: task 436 ((null)), 23303 ms run, 47 ms cpu, 5 acts, exit code 436 +task 441: fim +PPOS: task 441 ((null)), 23342 ms run, 49 ms cpu, 5 acts, exit code 441 +task 468: fim +PPOS: task 468 ((null)), 23574 ms run, 42 ms cpu, 5 acts, exit code 468 +task 491: fim +PPOS: task 491 ((null)), 23787 ms run, 43 ms cpu, 5 acts, exit code 491 +task 494: fim +PPOS: task 494 ((null)), 23816 ms run, 49 ms cpu, 5 acts, exit code 494 +task 6: fim +PPOS: task 6 ((null)), 24014 ms run, 58 ms cpu, 6 acts, exit code 6 +task 25: fim +PPOS: task 25 ((null)), 24148 ms run, 54 ms cpu, 6 acts, exit code 25 +task 27: fim +PPOS: task 27 ((null)), 24166 ms run, 58 ms cpu, 6 acts, exit code 27 +task 35: fim +PPOS: task 35 ((null)), 24220 ms run, 54 ms cpu, 6 acts, exit code 35 +task 50: fim +PPOS: task 50 ((null)), 24354 ms run, 54 ms cpu, 6 acts, exit code 50 +task 57: fim +PPOS: task 57 ((null)), 24416 ms run, 52 ms cpu, 6 acts, exit code 57 +PPOS: task 64 ((null)), 24456 ms run, 50 ms cpu, 6 acts, exit code 64 +task 65: fim +PPOS: task 65 ((null)), 24457 ms run, 51 ms cpu, 6 acts, exit code 65 +task 158: fim +PPOS: task 158 ((null)), 25119 ms run, 52 ms cpu, 6 acts, exit code 158 +task 166: fim +PPOS: task 166 ((null)), 25170 ms run, 51 ms cpu, 6 acts, exit code 166 +task 173: fim +PPOS: task 173 ((null)), 25215 ms run, 55 ms cpu, 6 acts, exit code 173 +task 184: fim +PPOS: task 184 ((null)), 25298 ms run, 53 ms cpu, 6 acts, exit code 184 +task 225: fim +PPOS: task 225 ((null)), 25630 ms run, 52 ms cpu, 6 acts, exit code 225 +task 285: fim +PPOS: task 285 ((null)), 26131 ms run, 51 ms cpu, 6 acts, exit code 285 +task 309: fim +PPOS: task 309 ((null)), 26323 ms run, 52 ms cpu, 6 acts, exit code 309 +task 375: fim +PPOS: task 375 ((null)), 26849 ms run, 56 ms cpu, 6 acts, exit code 375 +task 381: fim +PPOS: task 381 ((null)), 26897 ms run, 58 ms cpu, 6 acts, exit code 381 +task 422: fim +PPOS: task 422 ((null)), 27214 ms run, 57 ms cpu, 6 acts, exit code 422 +task 428: fim +PPOS: task 428 ((null)), 27260 ms run, 56 ms cpu, 6 acts, exit code 428 +task 444: fim +PPOS: task 444 ((null)), 27373 ms run, 52 ms cpu, 6 acts, exit code 444 +task 458: fim +PPOS: task 458 ((null)), 27483 ms run, 50 ms cpu, 6 acts, exit code 458 +task 464: fim +PPOS: task 464 ((null)), 27534 ms run, 51 ms cpu, 6 acts, exit code 464 +task 487: fim +PPOS: task 487 ((null)), 27732 ms run, 58 ms cpu, 6 acts, exit code 487 +task 492: fim +PPOS: task 492 ((null)), 27769 ms run, 57 ms cpu, 6 acts, exit code 492 +task 497: fim +PPOS: task 497 ((null)), 27804 ms run, 55 ms cpu, 6 acts, exit code 497 +task 9: fim +PPOS: task 9 ((null)), 27985 ms run, 61 ms cpu, 7 acts, exit code 9 +task 18: fim +PPOS: task 18 ((null)), 28036 ms run, 61 ms cpu, 7 acts, exit code 18 +task 19: fim +PPOS: task 19 ((null)), 28045 ms run, 69 ms cpu, 7 acts, exit code 19 +task 20: fim +PPOS: task 20 ((null)), 28049 ms run, 64 ms cpu, 7 acts, exit code 20 +task 38: fim +PPOS: task 38 ((null)), 28146 ms run, 67 ms cpu, 7 acts, exit code 38 +task 40: fim +PPOS: task 40 ((null)), 28158 ms run, 61 ms cpu, 7 acts, exit code 40 +task 45: fim +PPOS: task 45 ((null)), 28199 ms run, 61 ms cpu, 7 acts, exit code 45 +task 68: fim +PPOS: task 68 ((null)), 28360 ms run, 61 ms cpu, 7 acts, exit code 68 +task 128: fim +PPOS: task 128 ((null)), 28790 ms run, 60 ms cpu, 7 acts, exit code 128 +task 161: fim +PPOS: task 161 ((null)), 29001 ms run, 61 ms cpu, 7 acts, exit code 161 +task 190: fim +PPOS: task 190 ((null)), 29181 ms run, 60 ms cpu, 7 acts, exit code 190 +task 191: fim +PPOS: task 191 ((null)), 29187 ms run, 66 ms cpu, 7 acts, exit code 191 +task 217: fim +PPOS: task 217 ((null)), 29403 ms run, 66 ms cpu, 7 acts, exit code 217 +task 249: fim +PPOS: task 249 ((null)), 29662 ms run, 69 ms cpu, 7 acts, exit code 249 +task 306: fim +PPOS: task 306 ((null)), 30124 ms run, 62 ms cpu, 7 acts, exit code 306 +task 335: fim +PPOS: task 335 ((null)), 30318 ms run, 64 ms cpu, 7 acts, exit code 335 +task 336: fim +PPOS: task 336 ((null)), 30318 ms run, 60 ms cpu, 7 acts, exit code 336 +task 338: fim +PPOS: task 338 ((null)), 30329 ms run, 60 ms cpu, 7 acts, exit code 338 +task 348: fim +PPOS: task 348 ((null)), 30410 ms run, 61 ms cpu, 7 acts, exit code 348 +task 365: fim +PPOS: task 365 ((null)), 30545 ms run, 65 ms cpu, 7 acts, exit code 365 +task 368: fim +PPOS: task 368 ((null)), 30557 ms run, 62 ms cpu, 7 acts, exit code 368 +task 389: fim +PPOS: task 389 ((null)), 30715 ms run, 68 ms cpu, 7 acts, exit code 389 +task 400: fim +PPOS: task 400 ((null)), 30786 ms run, 61 ms cpu, 7 acts, exit code 400 +task 421: fim +PPOS: task 421 ((null)), 30937 ms run, 61 ms cpu, 7 acts, exit code 421 +task 430: fim +PPOS: task 430 ((null)), 30996 ms run, 69 ms cpu, 7 acts, exit code 430 +task 451: fim +PPOS: task 451 ((null)), 31134 ms run, 68 ms cpu, 7 acts, exit code 451 +task 452: fim +PPOS: task 452 ((null)), 31135 ms run, 61 ms cpu, 7 acts, exit code 452 +task 461: fim +PPOS: task 461 ((null)), 31211 ms run, 66 ms cpu, 7 acts, exit code 461 +task 469: fim +PPOS: task 469 ((null)), 31257 ms run, 66 ms cpu, 7 acts, exit code 469 +task 26: fim +PPOS: task 26 ((null)), 31733 ms run, 76 ms cpu, 8 acts, exit code 26 +task 55: fim +PPOS: task 55 ((null)), 31932 ms run, 79 ms cpu, 8 acts, exit code 55 +task 83: fim +PPOS: task 83 ((null)), 32083 ms run, 71 ms cpu, 8 acts, exit code 83 +task 96: fim +PPOS: task 96 ((null)), 32192 ms run, 79 ms cpu, 8 acts, exit code 96 +task 105: fim +PPOS: task 105 ((null)), 32263 ms run, 71 ms cpu, 8 acts, exit code 105 +task 136: fim +PPOS: task 136 ((null)), 32472 ms run, 79 ms cpu, 8 acts, exit code 136 +task 137: fim +PPOS: task 137 ((null)), 32481 ms run, 79 ms cpu, 8 acts, exit code 137 +task 140: fim +PPOS: task 140 ((null)), 32510 ms run, 79 ms cpu, 8 acts, exit code 140 +task 152: fim +PPOS: task 152 ((null)), 32558 ms run, 78 ms cpu, 8 acts, exit code 152 +task 153: fim +PPOS: task 153 ((null)), 32559 ms run, 71 ms cpu, 8 acts, exit code 153 +task 157: fim +PPOS: task 157 ((null)), 32580 ms run, 71 ms cpu, 8 acts, exit code 157 +task 194: fim +PPOS: task 194 ((null)), 32797 ms run, 77 ms cpu, 8 acts, exit code 194 +task 198: fim +PPOS: task 198 ((null)), 32812 ms run, 75 ms cpu, 8 acts, exit code 198 +task 206: fim +PPOS: task 206 ((null)), 32875 ms run, 73 ms cpu, 8 acts, exit code 206 +task 237: fim +PPOS: task 237 ((null)), 33113 ms run, 78 ms cpu, 8 acts, exit code 237 +task 244: fim +PPOS: task 244 ((null)), 33174 ms run, 71 ms cpu, 8 acts, exit code 244 +task 254: fim +PPOS: task 254 ((null)), 33241 ms run, 77 ms cpu, 8 acts, exit code 254 +task 261: fim +PPOS: task 261 ((null)), 33289 ms run, 78 ms cpu, 8 acts, exit code 261 +task 273: fim +PPOS: task 273 ((null)), 33386 ms run, 77 ms cpu, 8 acts, exit code 273 +task 288: fim +PPOS: task 288 ((null)), 33507 ms run, 71 ms cpu, 8 acts, exit code 288 +task 305: fim +PPOS: task 305 ((null)), 33649 ms run, 72 ms cpu, 8 acts, exit code 305 +task 318: fim +PPOS: task 318 ((null)), 33708 ms run, 79 ms cpu, 8 acts, exit code 318 +task 465: fim +PPOS: task 465 ((null)), 34710 ms run, 72 ms cpu, 8 acts, exit code 465 +task 476: fim +PPOS: task 476 ((null)), 34786 ms run, 76 ms cpu, 8 acts, exit code 476 +task 479: fim +PPOS: task 479 ((null)), 34807 ms run, 71 ms cpu, 8 acts, exit code 479 +task 485: fim +PPOS: task 485 ((null)), 34847 ms run, 70 ms cpu, 8 acts, exit code 485 +task 488: fim +PPOS: task 488 ((null)), 34859 ms run, 72 ms cpu, 8 acts, exit code 488 +task 490: fim +PPOS: task 490 ((null)), 34871 ms run, 72 ms cpu, 8 acts, exit code 490 +task 13: fim +PPOS: task 13 ((null)), 35103 ms run, 82 ms cpu, 9 acts, exit code 13 +task 56: fim +PPOS: task 56 ((null)), 35334 ms run, 81 ms cpu, 9 acts, exit code 56 +task 61: fim +PPOS: task 61 ((null)), 35358 ms run, 84 ms cpu, 9 acts, exit code 61 +task 70: fim +PPOS: task 70 ((null)), 35393 ms run, 85 ms cpu, 9 acts, exit code 70 +task 117: fim +PPOS: task 117 ((null)), 35721 ms run, 88 ms cpu, 9 acts, exit code 117 +task 134: fim +PPOS: task 134 ((null)), 35819 ms run, 88 ms cpu, 9 acts, exit code 134 +task 138: fim +PPOS: task 138 ((null)), 35831 ms run, 82 ms cpu, 9 acts, exit code 138 +task 155: fim +PPOS: task 155 ((null)), 35890 ms run, 89 ms cpu, 9 acts, exit code 155 +task 180: fim +PPOS: task 180 ((null)), 36042 ms run, 82 ms cpu, 9 acts, exit code 180 +task 208: fim +PPOS: task 208 ((null)), 36182 ms run, 80 ms cpu, 9 acts, exit code 208 +task 232: fim +PPOS: task 232 ((null)), 36366 ms run, 84 ms cpu, 9 acts, exit code 232 +task 236: fim +PPOS: task 236 ((null)), 36377 ms run, 81 ms cpu, 9 acts, exit code 236 +task 238: fim +PPOS: task 238 ((null)), 36383 ms run, 86 ms cpu, 9 acts, exit code 238 +task 247: fim +PPOS: task 247 ((null)), 36458 ms run, 85 ms cpu, 9 acts, exit code 247 +task 291: fim +PPOS: task 291 ((null)), 36750 ms run, 82 ms cpu, 9 acts, exit code 291 +task 296: fim +PPOS: task 296 ((null)), 36798 ms run, 88 ms cpu, 9 acts, exit code 296 +task 314: fim +PPOS: task 314 ((null)), 36913 ms run, 85 ms cpu, 9 acts, exit code 314 +task 319: fim +PPOS: task 319 ((null)), 36918 ms run, 85 ms cpu, 9 acts, exit code 319 +task 367: fim +PPOS: task 367 ((null)), 37261 ms run, 83 ms cpu, 9 acts, exit code 367 +task 372: fim +PPOS: task 372 ((null)), 37294 ms run, 83 ms cpu, 9 acts, exit code 372 +task 378: fim +PPOS: task 378 ((null)), 37318 ms run, 84 ms cpu, 9 acts, exit code 378 +task 412: fim +PPOS: task 412 ((null)), 37546 ms run, 88 ms cpu, 9 acts, exit code 412 +task 413: fim +PPOS: task 413 ((null)), 37551 ms run, 85 ms cpu, 9 acts, exit code 413 +task 427: fim +PPOS: task 427 ((null)), 37649 ms run, 88 ms cpu, 9 acts, exit code 427 +task 445: fim +PPOS: task 445 ((null)), 37755 ms run, 86 ms cpu, 9 acts, exit code 445 +task 447: fim +PPOS: task 447 ((null)), 37758 ms run, 83 ms cpu, 9 acts, exit code 447 +task 449: fim +PPOS: task 449 ((null)), 37760 ms run, 82 ms cpu, 9 acts, exit code 449 +task 460: fim +PPOS: task 460 ((null)), 37832 ms run, 82 ms cpu, 9 acts, exit code 460 +task 471: fim +PPOS: task 471 ((null)), 37874 ms run, 82 ms cpu, 9 acts, exit code 471 +task 475: fim +PPOS: task 475 ((null)), 37909 ms run, 85 ms cpu, 9 acts, exit code 475 +task 508: fim +PPOS: task 508 ((null)), 38094 ms run, 85 ms cpu, 9 acts, exit code 508 +task 33: fim +PPOS: task 33 ((null)), 38302 ms run, 98 ms cpu, 10 acts, exit code 33 +task 90: fim +PPOS: task 90 ((null)), 38616 ms run, 94 ms cpu, 10 acts, exit code 90 +task 93: fim +PPOS: task 93 ((null)), 38634 ms run, 98 ms cpu, 10 acts, exit code 93 +task 108: fim +PPOS: task 108 ((null)), 38750 ms run, 96 ms cpu, 10 acts, exit code 108 +task 120: fim +PPOS: task 120 ((null)), 38811 ms run, 91 ms cpu, 10 acts, exit code 120 +task 174: fim +PPOS: task 174 ((null)), 39032 ms run, 90 ms cpu, 10 acts, exit code 174 +task 186: fim +PPOS: task 186 ((null)), 39106 ms run, 94 ms cpu, 10 acts, exit code 186 +task 192: fim +PPOS: task 192 ((null)), 39129 ms run, 93 ms cpu, 10 acts, exit code 192 +task 201: fim +PPOS: task 201 ((null)), 39157 ms run, 98 ms cpu, 10 acts, exit code 201 +task 207: fim +PPOS: task 207 ((null)), 39205 ms run, 98 ms cpu, 10 acts, exit code 207 +task 229: fim +PPOS: task 229 ((null)), 39364 ms run, 99 ms cpu, 10 acts, exit code 229 +task 242: fim +PPOS: task 242 ((null)), 39424 ms run, 90 ms cpu, 10 acts, exit code 242 +task 248: fim +PPOS: task 248 ((null)), 39462 ms run, 98 ms cpu, 10 acts, exit code 248 +task 264: fim +PPOS: task 264 ((null)), 39549 ms run, 97 ms cpu, 10 acts, exit code 264 +task 276: fim +PPOS: task 276 ((null)), 39631 ms run, 91 ms cpu, 10 acts, exit code 276 +task 307: fim +PPOS: task 307 ((null)), 39846 ms run, 95 ms cpu, 10 acts, exit code 307 +task 312: fim +PPOS: task 312 ((null)), 39863 ms run, 97 ms cpu, 10 acts, exit code 312 +task 334: fim +PPOS: task 334 ((null)), 39985 ms run, 92 ms cpu, 10 acts, exit code 334 +task 353: fim +PPOS: task 353 ((null)), 40115 ms run, 90 ms cpu, 10 acts, exit code 353 +task 357: fim +PPOS: task 357 ((null)), 40135 ms run, 90 ms cpu, 10 acts, exit code 357 +task 373: fim +PPOS: task 373 ((null)), 40220 ms run, 95 ms cpu, 10 acts, exit code 373 +task 403: fim +PPOS: task 403 ((null)), 40386 ms run, 96 ms cpu, 10 acts, exit code 403 +task 419: fim +PPOS: task 419 ((null)), 40486 ms run, 90 ms cpu, 10 acts, exit code 419 +task 434: fim +PPOS: task 434 ((null)), 40562 ms run, 96 ms cpu, 10 acts, exit code 434 +task 482: fim +PPOS: task 482 ((null)), 40810 ms run, 98 ms cpu, 10 acts, exit code 482 +task 504: fim +PPOS: task 504 ((null)), 40905 ms run, 95 ms cpu, 10 acts, exit code 504 +task 506: fim +PPOS: task 506 ((null)), 40917 ms run, 92 ms cpu, 10 acts, exit code 506 +task 507: fim +PPOS: task 507 ((null)), 40925 ms run, 98 ms cpu, 10 acts, exit code 507 +task 4: fim +PPOS: task 4 ((null)), 40987 ms run, 101 ms cpu, 11 acts, exit code 4 +task 48: fim +PPOS: task 48 ((null)), 41197 ms run, 100 ms cpu, 11 acts, exit code 48 +task 53: fim +PPOS: task 53 ((null)), 41233 ms run, 106 ms cpu, 11 acts, exit code 53 +task 58: fim +PPOS: task 58 ((null)), 41250 ms run, 107 ms cpu, 11 acts, exit code 58 +task 73: fim +PPOS: task 73 ((null)), 41302 ms run, 102 ms cpu, 11 acts, exit code 73 +task 94: fim +PPOS: task 94 ((null)), 41419 ms run, 107 ms cpu, 11 acts, exit code 94 +task 99: fim +PPOS: task 99 ((null)), 41456 ms run, 107 ms cpu, 11 acts, exit code 99 +task 107: fim +PPOS: task 107 ((null)), 41508 ms run, 102 ms cpu, 11 acts, exit code 107 +task 125: fim +PPOS: task 125 ((null)), 41590 ms run, 102 ms cpu, 11 acts, exit code 125 +task 197: fim +PPOS: task 197 ((null)), 41875 ms run, 105 ms cpu, 11 acts, exit code 197 +task 211: fim +PPOS: task 211 ((null)), 41948 ms run, 103 ms cpu, 11 acts, exit code 211 +task 215: fim +PPOS: task 215 ((null)), 41984 ms run, 106 ms cpu, 11 acts, exit code 215 +task 239: fim +PPOS: task 239 ((null)), 42103 ms run, 109 ms cpu, 11 acts, exit code 239 +task 256: fim +PPOS: task 256 ((null)), 42190 ms run, 107 ms cpu, 11 acts, exit code 256 +task 259: fim +PPOS: task 259 ((null)), 42209 ms run, 109 ms cpu, 11 acts, exit code 259 +task 263: fim +PPOS: task 263 ((null)), 42226 ms run, 107 ms cpu, 11 acts, exit code 263 +task 294: fim +PPOS: task 294 ((null)), 42427 ms run, 101 ms cpu, 11 acts, exit code 294 +task 300: fim +PPOS: task 300 ((null)), 42474 ms run, 107 ms cpu, 11 acts, exit code 300 +task 310: fim +PPOS: task 310 ((null)), 42506 ms run, 102 ms cpu, 11 acts, exit code 310 +task 332: fim +PPOS: task 332 ((null)), 42610 ms run, 104 ms cpu, 11 acts, exit code 332 +task 354: fim +PPOS: task 354 ((null)), 42752 ms run, 102 ms cpu, 11 acts, exit code 354 +task 369: fim +PPOS: task 369 ((null)), 42818 ms run, 106 ms cpu, 11 acts, exit code 369 +task 384: fim +PPOS: task 384 ((null)), 42892 ms run, 104 ms cpu, 11 acts, exit code 384 +task 390: fim +PPOS: task 390 ((null)), 42927 ms run, 105 ms cpu, 11 acts, exit code 390 +task 405: fim +PPOS: task 405 ((null)), 42997 ms run, 100 ms cpu, 11 acts, exit code 405 +task 455: fim +PPOS: task 455 ((null)), 43243 ms run, 106 ms cpu, 11 acts, exit code 455 +task 472: fim +PPOS: task 472 ((null)), 43314 ms run, 101 ms cpu, 11 acts, exit code 472 +task 499: fim +PPOS: task 499 ((null)), 43443 ms run, 109 ms cpu, 11 acts, exit code 499 +task 11: fim +PPOS: task 11 ((null)), 43568 ms run, 115 ms cpu, 12 acts, exit code 11 +task 15: fim +PPOS: task 15 ((null)), 43581 ms run, 113 ms cpu, 12 acts, exit code 15 +task 39: fim +PPOS: task 39 ((null)), 43669 ms run, 118 ms cpu, 12 acts, exit code 39 +task 44: fim +PPOS: task 44 ((null)), 43706 ms run, 117 ms cpu, 12 acts, exit code 44 +task 47: fim +PPOS: task 47 ((null)), 43720 ms run, 114 ms cpu, 12 acts, exit code 47 +task 77: fim +PPOS: task 77 ((null)), 43829 ms run, 119 ms cpu, 12 acts, exit code 77 +task 98: fim +PPOS: task 98 ((null)), 43948 ms run, 118 ms cpu, 12 acts, exit code 98 +task 103: fim +PPOS: task 103 ((null)), 43977 ms run, 119 ms cpu, 12 acts, exit code 103 +task 104: fim +PPOS: task 104 ((null)), 43982 ms run, 115 ms cpu, 12 acts, exit code 104 +task 109: fim +PPOS: task 109 ((null)), 44001 ms run, 119 ms cpu, 12 acts, exit code 109 +task 130: fim +PPOS: task 130 ((null)), 44086 ms run, 115 ms cpu, 12 acts, exit code 130 +task 132: fim +PPOS: task 132 ((null)), 44096 ms run, 110 ms cpu, 12 acts, exit code 132 +task 168: fim +PPOS: task 168 ((null)), 44224 ms run, 118 ms cpu, 12 acts, exit code 168 +task 182: fim +PPOS: task 182 ((null)), 44296 ms run, 112 ms cpu, 12 acts, exit code 182 +task 203: fim +PPOS: task 203 ((null)), 44354 ms run, 118 ms cpu, 12 acts, exit code 203 +task 212: fim +PPOS: task 212 ((null)), 44397 ms run, 113 ms cpu, 12 acts, exit code 212 +task 267: fim +PPOS: task 267 ((null)), 44640 ms run, 113 ms cpu, 12 acts, exit code 267 +task 269: fim +PPOS: task 269 ((null)), 44657 ms run, 117 ms cpu, 12 acts, exit code 269 +task 275: fim +PPOS: task 275 ((null)), 44692 ms run, 115 ms cpu, 12 acts, exit code 275 +task 283: fim +PPOS: task 283 ((null)), 44756 ms run, 114 ms cpu, 12 acts, exit code 283 +task 292: fim +PPOS: task 292 ((null)), 44789 ms run, 113 ms cpu, 12 acts, exit code 292 +task 295: fim +PPOS: task 295 ((null)), 44800 ms run, 110 ms cpu, 12 acts, exit code 295 +task 297: fim +PPOS: task 297 ((null)), 44804 ms run, 114 ms cpu, 12 acts, exit code 297 +task 324: fim +PPOS: task 324 ((null)), 44891 ms run, 117 ms cpu, 12 acts, exit code 324 +task 325: fim +PPOS: task 325 ((null)), 44897 ms run, 116 ms cpu, 12 acts, exit code 325 +task 379: fim +PPOS: task 379 ((null)), 45177 ms run, 110 ms cpu, 12 acts, exit code 379 +task 382: fim +PPOS: task 382 ((null)), 45194 ms run, 117 ms cpu, 12 acts, exit code 382 +task 394: fim +PPOS: task 394 ((null)), 45247 ms run, 113 ms cpu, 12 acts, exit code 394 +task 425: fim +PPOS: task 425 ((null)), 45397 ms run, 110 ms cpu, 12 acts, exit code 425 +task 467: fim +PPOS: task 467 ((null)), 45578 ms run, 111 ms cpu, 12 acts, exit code 467 +task 493: fim +PPOS: task 493 ((null)), 45686 ms run, 118 ms cpu, 12 acts, exit code 493 +task 495: fim +PPOS: task 495 ((null)), 45692 ms run, 116 ms cpu, 12 acts, exit code 495 +task 42: fim +PPOS: task 42 ((null)), 45929 ms run, 127 ms cpu, 13 acts, exit code 42 +task 52: fim +PPOS: task 52 ((null)), 45971 ms run, 121 ms cpu, 13 acts, exit code 52 +task 113: fim +PPOS: task 113 ((null)), 46209 ms run, 128 ms cpu, 13 acts, exit code 113 +task 114: fim +PPOS: task 114 ((null)), 46215 ms run, 126 ms cpu, 13 acts, exit code 114 +task 160: fim +PPOS: task 160 ((null)), 46351 ms run, 126 ms cpu, 13 acts, exit code 160 +task 163: fim +PPOS: task 163 ((null)), 46359 ms run, 128 ms cpu, 13 acts, exit code 163 +task 172: fim +PPOS: task 172 ((null)), 46398 ms run, 129 ms cpu, 13 acts, exit code 172 +task 178: fim +PPOS: task 178 ((null)), 46435 ms run, 127 ms cpu, 13 acts, exit code 178 +task 185: fim +PPOS: task 185 ((null)), 46450 ms run, 125 ms cpu, 13 acts, exit code 185 +task 205: fim +PPOS: task 205 ((null)), 46501 ms run, 121 ms cpu, 13 acts, exit code 205 +task 230: fim +PPOS: task 230 ((null)), 46628 ms run, 127 ms cpu, 13 acts, exit code 230 +task 240: fim +PPOS: task 240 ((null)), 46657 ms run, 129 ms cpu, 13 acts, exit code 240 +task 245: fim +PPOS: task 245 ((null)), 46680 ms run, 123 ms cpu, 13 acts, exit code 245 +task 272: fim +PPOS: task 272 ((null)), 46778 ms run, 128 ms cpu, 13 acts, exit code 272 +task 274: fim +PPOS: task 274 ((null)), 46785 ms run, 127 ms cpu, 13 acts, exit code 274 +task 280: fim +PPOS: task 280 ((null)), 46817 ms run, 122 ms cpu, 13 acts, exit code 280 +task 299: fim +PPOS: task 299 ((null)), 46887 ms run, 120 ms cpu, 13 acts, exit code 299 +task 301: fim +PPOS: task 301 ((null)), 46888 ms run, 121 ms cpu, 13 acts, exit code 301 +task 330: fim +PPOS: task 330 ((null)), 46972 ms run, 124 ms cpu, 13 acts, exit code 330 +task 331: fim +PPOS: task 331 ((null)), 46981 ms run, 129 ms cpu, 13 acts, exit code 331 +task 347: fim +PPOS: task 347 ((null)), 47080 ms run, 129 ms cpu, 13 acts, exit code 347 +task 363: fim +PPOS: task 363 ((null)), 47169 ms run, 129 ms cpu, 13 acts, exit code 363 +task 440: fim +PPOS: task 440 ((null)), 47497 ms run, 128 ms cpu, 13 acts, exit code 440 +task 459: fim +PPOS: task 459 ((null)), 47576 ms run, 129 ms cpu, 13 acts, exit code 459 +task 474: fim +PPOS: task 474 ((null)), 47623 ms run, 127 ms cpu, 13 acts, exit code 474 +task 483: fim +PPOS: task 483 ((null)), 47664 ms run, 121 ms cpu, 13 acts, exit code 483 +task 32: fim +PPOS: task 32 ((null)), 47892 ms run, 138 ms cpu, 14 acts, exit code 32 +task 43: fim +PPOS: task 43 ((null)), 47918 ms run, 136 ms cpu, 14 acts, exit code 43 +task 67: fim +PPOS: task 67 ((null)), 47988 ms run, 130 ms cpu, 14 acts, exit code 67 +task 84: fim +PPOS: task 84 ((null)), 48044 ms run, 136 ms cpu, 14 acts, exit code 84 +task 88: fim +PPOS: task 88 ((null)), 48070 ms run, 136 ms cpu, 14 acts, exit code 88 +task 95: fim +PPOS: task 95 ((null)), 48091 ms run, 131 ms cpu, 14 acts, exit code 95 +task 100: fim +PPOS: task 100 ((null)), 48107 ms run, 136 ms cpu, 14 acts, exit code 100 +task 102: fim +PPOS: task 102 ((null)), 48110 ms run, 133 ms cpu, 14 acts, exit code 102 +task 123: fim +PPOS: task 123 ((null)), 48161 ms run, 131 ms cpu, 14 acts, exit code 123 +task 127: fim +PPOS: task 127 ((null)), 48165 ms run, 134 ms cpu, 14 acts, exit code 127 +task 151: fim +PPOS: task 151 ((null)), 48230 ms run, 135 ms cpu, 14 acts, exit code 151 +task 164: fim +PPOS: task 164 ((null)), 48252 ms run, 131 ms cpu, 14 acts, exit code 164 +task 171: fim +PPOS: task 171 ((null)), 48262 ms run, 130 ms cpu, 14 acts, exit code 171 +task 233: fim +PPOS: task 233 ((null)), 48490 ms run, 138 ms cpu, 14 acts, exit code 233 +task 243: fim +PPOS: task 243 ((null)), 48505 ms run, 135 ms cpu, 14 acts, exit code 243 +task 258: fim +PPOS: task 258 ((null)), 48550 ms run, 135 ms cpu, 14 acts, exit code 258 +task 271: fim +PPOS: task 271 ((null)), 48581 ms run, 131 ms cpu, 14 acts, exit code 271 +task 278: fim +PPOS: task 278 ((null)), 48593 ms run, 132 ms cpu, 14 acts, exit code 278 +task 284: fim +PPOS: task 284 ((null)), 48629 ms run, 136 ms cpu, 14 acts, exit code 284 +task 287: fim +PPOS: task 287 ((null)), 48633 ms run, 134 ms cpu, 14 acts, exit code 287 +task 293: fim +PPOS: task 293 ((null)), 48647 ms run, 134 ms cpu, 14 acts, exit code 293 +task 302: fim +PPOS: task 302 ((null)), 48658 ms run, 131 ms cpu, 14 acts, exit code 302 +task 329: fim +PPOS: task 329 ((null)), 48725 ms run, 137 ms cpu, 14 acts, exit code 329 +task 342: fim +PPOS: task 342 ((null)), 48769 ms run, 134 ms cpu, 14 acts, exit code 342 +task 344: fim +PPOS: task 344 ((null)), 48779 ms run, 130 ms cpu, 14 acts, exit code 344 +task 346: fim +PPOS: task 346 ((null)), 48789 ms run, 130 ms cpu, 14 acts, exit code 346 +task 396: fim +PPOS: task 396 ((null)), 48973 ms run, 134 ms cpu, 14 acts, exit code 396 +task 407: fim +PPOS: task 407 ((null)), 49016 ms run, 133 ms cpu, 14 acts, exit code 407 +task 418: fim +PPOS: task 418 ((null)), 49084 ms run, 138 ms cpu, 14 acts, exit code 418 +task 437: fim +PPOS: task 437 ((null)), 49154 ms run, 130 ms cpu, 14 acts, exit code 437 +task 462: fim +PPOS: task 462 ((null)), 49235 ms run, 131 ms cpu, 14 acts, exit code 462 +task 489: fim +PPOS: task 489 ((null)), 49323 ms run, 138 ms cpu, 14 acts, exit code 489 +task 28: fim +PPOS: task 28 ((null)), 49493 ms run, 140 ms cpu, 15 acts, exit code 28 +task 37: fim +PPOS: task 37 ((null)), 49520 ms run, 147 ms cpu, 15 acts, exit code 37 +task 62: fim +PPOS: task 62 ((null)), 49589 ms run, 148 ms cpu, 15 acts, exit code 62 +task 66: fim +PPOS: task 66 ((null)), 49593 ms run, 144 ms cpu, 15 acts, exit code 66 +task 97: fim +PPOS: task 97 ((null)), 49687 ms run, 144 ms cpu, 15 acts, exit code 97 +task 111: fim +PPOS: task 111 ((null)), 49707 ms run, 140 ms cpu, 15 acts, exit code 111 +task 135: fim +PPOS: task 135 ((null)), 49740 ms run, 143 ms cpu, 15 acts, exit code 135 +task 177: fim +PPOS: task 177 ((null)), 49838 ms run, 148 ms cpu, 15 acts, exit code 177 +task 179: fim +PPOS: task 179 ((null)), 49839 ms run, 141 ms cpu, 15 acts, exit code 179 +task 189: fim +PPOS: task 189 ((null)), 49854 ms run, 145 ms cpu, 15 acts, exit code 189 +task 216: fim +PPOS: task 216 ((null)), 49924 ms run, 140 ms cpu, 15 acts, exit code 216 +task 241: fim +PPOS: task 241 ((null)), 50010 ms run, 146 ms cpu, 15 acts, exit code 241 +task 290: fim +PPOS: task 290 ((null)), 50125 ms run, 145 ms cpu, 15 acts, exit code 290 +task 326: fim +PPOS: task 326 ((null)), 50180 ms run, 145 ms cpu, 15 acts, exit code 326 +task 337: fim +PPOS: task 337 ((null)), 50209 ms run, 149 ms cpu, 15 acts, exit code 337 +task 345: fim +PPOS: task 345 ((null)), 50246 ms run, 147 ms cpu, 15 acts, exit code 345 +task 377: fim +PPOS: task 377 ((null)), 50364 ms run, 148 ms cpu, 15 acts, exit code 377 +task 388: fim +PPOS: task 388 ((null)), 50404 ms run, 140 ms cpu, 15 acts, exit code 388 +task 456: fim +PPOS: task 456 ((null)), 50645 ms run, 141 ms cpu, 15 acts, exit code 456 +task 477: fim +PPOS: task 477 ((null)), 50690 ms run, 145 ms cpu, 15 acts, exit code 477 +task 480: fim +PPOS: task 480 ((null)), 50701 ms run, 141 ms cpu, 15 acts, exit code 480 +task 502: fim +PPOS: task 502 ((null)), 50741 ms run, 140 ms cpu, 15 acts, exit code 502 +task 509: fim +PPOS: task 509 ((null)), 50758 ms run, 147 ms cpu, 15 acts, exit code 509 +task 29: fim +PPOS: task 29 ((null)), 50882 ms run, 153 ms cpu, 16 acts, exit code 29 +task 30: fim +PPOS: task 30 ((null)), 50889 ms run, 156 ms cpu, 16 acts, exit code 30 +task 46: fim +PPOS: task 46 ((null)), 50905 ms run, 156 ms cpu, 16 acts, exit code 46 +task 51: fim +PPOS: task 51 ((null)), 50915 ms run, 150 ms cpu, 16 acts, exit code 51 +task 54: fim +PPOS: task 54 ((null)), 50917 ms run, 152 ms cpu, 16 acts, exit code 54 +task 59: fim +PPOS: task 59 ((null)), 50918 ms run, 151 ms cpu, 16 acts, exit code 59 +task 89: fim +PPOS: task 89 ((null)), 50994 ms run, 156 ms cpu, 16 acts, exit code 89 +task 139: fim +PPOS: task 139 ((null)), 51059 ms run, 155 ms cpu, 16 acts, exit code 139 +task 141: fim +PPOS: task 141 ((null)), 51068 ms run, 159 ms cpu, 16 acts, exit code 141 +task 213: fim +PPOS: task 213 ((null)), 51202 ms run, 154 ms cpu, 16 acts, exit code 213 +task 223: fim +PPOS: task 223 ((null)), 51244 ms run, 152 ms cpu, 16 acts, exit code 223 +task 226: fim +PPOS: task 226 ((null)), 51260 ms run, 156 ms cpu, 16 acts, exit code 226 +task 265: fim +PPOS: task 265 ((null)), 51330 ms run, 150 ms cpu, 16 acts, exit code 265 +task 298: fim +PPOS: task 298 ((null)), 51384 ms run, 154 ms cpu, 16 acts, exit code 298 +task 340: fim +PPOS: task 340 ((null)), 51450 ms run, 155 ms cpu, 16 acts, exit code 340 +task 350: fim +PPOS: task 350 ((null)), 51482 ms run, 152 ms cpu, 16 acts, exit code 350 +task 355: fim +PPOS: task 355 ((null)), 51510 ms run, 158 ms cpu, 16 acts, exit code 355 +task 362: fim +PPOS: task 362 ((null)), 51538 ms run, 158 ms cpu, 16 acts, exit code 362 +task 364: fim +PPOS: task 364 ((null)), 51543 ms run, 155 ms cpu, 16 acts, exit code 364 +task 387: fim +PPOS: task 387 ((null)), 51593 ms run, 150 ms cpu, 16 acts, exit code 387 +task 450: fim +PPOS: task 450 ((null)), 51806 ms run, 153 ms cpu, 16 acts, exit code 450 +task 478: fim +PPOS: task 478 ((null)), 51875 ms run, 159 ms cpu, 16 acts, exit code 478 +task 2: fim +PPOS: task 2 ((null)), 51958 ms run, 163 ms cpu, 17 acts, exit code 2 +task 12: fim +PPOS: task 12 ((null)), 52006 ms run, 168 ms cpu, 17 acts, exit code 12 +task 110: fim +PPOS: task 110 ((null)), 52150 ms run, 164 ms cpu, 17 acts, exit code 110 +task 175: fim +PPOS: task 175 ((null)), 52232 ms run, 162 ms cpu, 17 acts, exit code 175 +task 202: fim +PPOS: task 202 ((null)), 52264 ms run, 162 ms cpu, 17 acts, exit code 202 +task 222: fim +PPOS: task 222 ((null)), 52325 ms run, 161 ms cpu, 17 acts, exit code 222 +task 255: fim +PPOS: task 255 ((null)), 52387 ms run, 162 ms cpu, 17 acts, exit code 255 +task 328: fim +PPOS: task 328 ((null)), 52488 ms run, 161 ms cpu, 17 acts, exit code 328 +task 358: fim +PPOS: task 358 ((null)), 52553 ms run, 165 ms cpu, 17 acts, exit code 358 +task 360: fim +PPOS: task 360 ((null)), 52554 ms run, 160 ms cpu, 17 acts, exit code 360 +task 380: fim +PPOS: task 380 ((null)), 52576 ms run, 162 ms cpu, 17 acts, exit code 380 +task 385: fim +PPOS: task 385 ((null)), 52595 ms run, 169 ms cpu, 17 acts, exit code 385 +task 393: fim +PPOS: task 393 ((null)), 52604 ms run, 169 ms cpu, 17 acts, exit code 393 +task 404: fim +PPOS: task 404 ((null)), 52640 ms run, 166 ms cpu, 17 acts, exit code 404 +task 420: fim +PPOS: task 420 ((null)), 52704 ms run, 164 ms cpu, 17 acts, exit code 420 +task 442: fim +PPOS: task 442 ((null)), 52782 ms run, 168 ms cpu, 17 acts, exit code 442 +task 454: fim +PPOS: task 454 ((null)), 52807 ms run, 165 ms cpu, 17 acts, exit code 454 +task 473: fim +PPOS: task 473 ((null)), 52839 ms run, 162 ms cpu, 17 acts, exit code 473 +task 500: fim +PPOS: task 500 ((null)), 52877 ms run, 168 ms cpu, 17 acts, exit code 500 +task 505: fim +PPOS: task 505 ((null)), 52878 ms run, 161 ms cpu, 17 acts, exit code 505 +Waiting for task 3 to finish +task 7: fim +PPOS: task 7 ((null)), 52929 ms run, 171 ms cpu, 18 acts, exit code 7 +task 8: fim +PPOS: task 8 ((null)), 52934 ms run, 175 ms cpu, 18 acts, exit code 8 +task 24: fim +PPOS: task 24 ((null)), 52963 ms run, 179 ms cpu, 18 acts, exit code 24 +task 41: fim +PPOS: task 41 ((null)), 52971 ms run, 178 ms cpu, 18 acts, exit code 41 +task 74: fim +PPOS: task 74 ((null)), 52995 ms run, 174 ms cpu, 18 acts, exit code 74 +task 80: fim +PPOS: task 80 ((null)), 53009 ms run, 174 ms cpu, 18 acts, exit code 80 +task 118: fim +PPOS: task 118 ((null)), 53064 ms run, 175 ms cpu, 18 acts, exit code 118 +task 131: fim +PPOS: task 131 ((null)), 53075 ms run, 171 ms cpu, 18 acts, exit code 131 +task 147: fim +PPOS: task 147 ((null)), 53076 ms run, 171 ms cpu, 18 acts, exit code 147 +task 149: fim +PPOS: task 149 ((null)), 53080 ms run, 174 ms cpu, 18 acts, exit code 149 +task 199: fim +PPOS: task 199 ((null)), 53130 ms run, 170 ms cpu, 18 acts, exit code 199 +task 214: fim +PPOS: task 214 ((null)), 53165 ms run, 175 ms cpu, 18 acts, exit code 214 +task 231: fim +PPOS: task 231 ((null)), 53205 ms run, 170 ms cpu, 18 acts, exit code 231 +task 246: fim +PPOS: task 246 ((null)), 53205 ms run, 170 ms cpu, 18 acts, exit code 246 +task 277: fim +PPOS: task 277 ((null)), 53252 ms run, 177 ms cpu, 18 acts, exit code 277 +task 279: fim +PPOS: task 279 ((null)), 53257 ms run, 175 ms cpu, 18 acts, exit code 279 +task 303: fim +PPOS: task 303 ((null)), 53278 ms run, 171 ms cpu, 18 acts, exit code 303 +task 349: fim +PPOS: task 349 ((null)), 53347 ms run, 179 ms cpu, 18 acts, exit code 349 +task 398: fim +PPOS: task 398 ((null)), 53416 ms run, 178 ms cpu, 18 acts, exit code 398 +task 409: fim +PPOS: task 409 ((null)), 53431 ms run, 175 ms cpu, 18 acts, exit code 409 +task 416: fim +PPOS: task 416 ((null)), 53474 ms run, 173 ms cpu, 18 acts, exit code 416 +task 429: fim +PPOS: task 429 ((null)), 53501 ms run, 177 ms cpu, 18 acts, exit code 429 +task 431: fim +PPOS: task 431 ((null)), 53506 ms run, 175 ms cpu, 18 acts, exit code 431 +task 443: fim +PPOS: task 443 ((null)), 53537 ms run, 171 ms cpu, 18 acts, exit code 443 +task 457: fim +PPOS: task 457 ((null)), 53552 ms run, 175 ms cpu, 18 acts, exit code 457 +task 463: fim +PPOS: task 463 ((null)), 53556 ms run, 174 ms cpu, 18 acts, exit code 463 +task 486: fim +PPOS: task 486 ((null)), 53583 ms run, 177 ms cpu, 18 acts, exit code 486 +task 496: fim +PPOS: task 496 ((null)), 53586 ms run, 173 ms cpu, 18 acts, exit code 496 +task 510: fim +PPOS: task 510 ((null)), 53595 ms run, 179 ms cpu, 18 acts, exit code 510 +task 511: fim +PPOS: task 511 ((null)), 53599 ms run, 174 ms cpu, 18 acts, exit code 511 +task 22: fim +PPOS: task 22 ((null)), 53639 ms run, 180 ms cpu, 19 acts, exit code 22 +task 92: fim +PPOS: task 92 ((null)), 53702 ms run, 183 ms cpu, 19 acts, exit code 92 +task 204: fim +PPOS: task 204 ((null)), 53775 ms run, 183 ms cpu, 19 acts, exit code 204 +task 209: fim +PPOS: task 209 ((null)), 53777 ms run, 182 ms cpu, 19 acts, exit code 209 +task 221: fim +PPOS: task 221 ((null)), 53804 ms run, 187 ms cpu, 19 acts, exit code 221 +task 262: fim +PPOS: task 262 ((null)), 53851 ms run, 187 ms cpu, 19 acts, exit code 262 +task 383: fim +PPOS: task 383 ((null)), 53988 ms run, 187 ms cpu, 19 acts, exit code 383 +task 399: fim +PPOS: task 399 ((null)), 54001 ms run, 183 ms cpu, 19 acts, exit code 399 +task 410: fim +PPOS: task 410 ((null)), 54001 ms run, 180 ms cpu, 19 acts, exit code 410 +task 435: fim +PPOS: task 435 ((null)), 54070 ms run, 189 ms cpu, 19 acts, exit code 435 +task 512: fim +PPOS: task 512 ((null)), 54114 ms run, 184 ms cpu, 19 acts, exit code 512 +task 82: fim +PPOS: task 82 ((null)), 54179 ms run, 195 ms cpu, 20 acts, exit code 82 +task 121: fim +PPOS: task 121 ((null)), 54217 ms run, 198 ms cpu, 20 acts, exit code 121 +task 159: fim +PPOS: task 159 ((null)), 54227 ms run, 190 ms cpu, 20 acts, exit code 159 +task 176: fim +PPOS: task 176 ((null)), 54244 ms run, 197 ms cpu, 20 acts, exit code 176 +task 227: fim +PPOS: task 227 ((null)), 54290 ms run, 196 ms cpu, 20 acts, exit code 227 +task 250: fim +PPOS: task 250 ((null)), 54296 ms run, 196 ms cpu, 20 acts, exit code 250 +task 268: fim +PPOS: task 268 ((null)), 54314 ms run, 198 ms cpu, 20 acts, exit code 268 +task 313: fim +PPOS: task 313 ((null)), 54334 ms run, 190 ms cpu, 20 acts, exit code 313 +task 352: fim +PPOS: task 352 ((null)), 54395 ms run, 191 ms cpu, 20 acts, exit code 352 +task 370: fim +PPOS: task 370 ((null)), 54401 ms run, 196 ms cpu, 20 acts, exit code 370 +task 397: fim +PPOS: task 397 ((null)), 54418 ms run, 197 ms cpu, 20 acts, exit code 397 +task 414: fim +PPOS: task 414 ((null)), 54437 ms run, 199 ms cpu, 20 acts, exit code 414 +task 16: fim +PPOS: task 16 ((null)), 54542 ms run, 205 ms cpu, 21 acts, exit code 16 +task 71: fim +PPOS: task 71 ((null)), 54552 ms run, 200 ms cpu, 21 acts, exit code 71 +task 86: fim +PPOS: task 86 ((null)), 54563 ms run, 201 ms cpu, 21 acts, exit code 86 +task 187: fim +PPOS: task 187 ((null)), 54610 ms run, 207 ms cpu, 21 acts, exit code 187 +task 320: fim +PPOS: task 320 ((null)), 54679 ms run, 209 ms cpu, 21 acts, exit code 320 +task 323: fim +PPOS: task 323 ((null)), 54682 ms run, 203 ms cpu, 21 acts, exit code 323 +task 333: fim +PPOS: task 333 ((null)), 54690 ms run, 208 ms cpu, 21 acts, exit code 333 +task 351: fim +PPOS: task 351 ((null)), 54715 ms run, 205 ms cpu, 21 acts, exit code 351 +task 411: fim +PPOS: task 411 ((null)), 54726 ms run, 201 ms cpu, 21 acts, exit code 411 +task 415: fim +PPOS: task 415 ((null)), 54735 ms run, 209 ms cpu, 21 acts, exit code 415 +task 424: fim +PPOS: task 424 ((null)), 54736 ms run, 201 ms cpu, 21 acts, exit code 424 +task 453: fim +PPOS: task 453 ((null)), 54771 ms run, 205 ms cpu, 21 acts, exit code 453 +task 470: fim +PPOS: task 470 ((null)), 54777 ms run, 206 ms cpu, 21 acts, exit code 470 +task 78: fim +PPOS: task 78 ((null)), 54820 ms run, 213 ms cpu, 22 acts, exit code 78 +task 87: fim +PPOS: task 87 ((null)), 54820 ms run, 210 ms cpu, 22 acts, exit code 87 +task 106: fim +PPOS: task 106 ((null)), 54825 ms run, 215 ms cpu, 22 acts, exit code 106 +task 210: fim +PPOS: task 210 ((null)), 54848 ms run, 213 ms cpu, 22 acts, exit code 210 +task 218: fim +PPOS: task 218 ((null)), 54855 ms run, 217 ms cpu, 22 acts, exit code 218 +task 433: fim +PPOS: task 433 ((null)), 54941 ms run, 216 ms cpu, 22 acts, exit code 433 +task 439: fim +PPOS: task 439 ((null)), 54942 ms run, 211 ms cpu, 22 acts, exit code 439 +task 481: fim +PPOS: task 481 ((null)), 54942 ms run, 210 ms cpu, 22 acts, exit code 481 +task 5: fim +PPOS: task 5 ((null)), 54954 ms run, 222 ms cpu, 23 acts, exit code 5 +task 156: fim +PPOS: task 156 ((null)), 54972 ms run, 228 ms cpu, 23 acts, exit code 156 +task 167: fim +PPOS: task 167 ((null)), 54981 ms run, 229 ms cpu, 23 acts, exit code 167 +task 281: fim +PPOS: task 281 ((null)), 55004 ms run, 223 ms cpu, 23 acts, exit code 281 +task 3: fim +PPOS: task 3 ((null)), 55056 ms run, 232 ms cpu, 24 acts, exit code 3 +task 49: fim +PPOS: task 49 ((null)), 55060 ms run, 234 ms cpu, 24 acts, exit code 49 +task 224: fim +PPOS: task 224 ((null)), 55067 ms run, 237 ms cpu, 24 acts, exit code 224 +task 282: fim +PPOS: task 282 ((null)), 55080 ms run, 232 ms cpu, 24 acts, exit code 282 +Waiting for task 4 to finish +Waiting for task 5 to finish +Waiting for task 6 to finish +Waiting for task 7 to finish +Waiting for task 8 to finish +Waiting for task 9 to finish +Waiting for task 10 to finish +Waiting for task 11 to finish +Waiting for task 12 to finish +Waiting for task 13 to finish +Waiting for task 14 to finish +Waiting for task 15 to finish +Waiting for task 16 to finish +Waiting for task 17 to finish +Waiting for task 18 to finish +Waiting for task 19 to finish +Waiting for task 20 to finish +Waiting for task 21 to finish +Waiting for task 22 to finish +Waiting for task 23 to finish +Waiting for task 24 to finish +Waiting for task 25 to finish +Waiting for task 26 to finish +Waiting for task 27 to finish +Waiting for task 28 to finish +Waiting for task 29 to finish +Waiting for task 30 to finish +Waiting for task 31 to finish +Waiting for task 32 to finish +Waiting for task 33 to finish +Waiting for task 34 to finish +Waiting for task 35 to finish +Waiting for task 36 to finish +Waiting for task 37 to finish +Waiting for task 38 to finish +Waiting for task 39 to finish +Waiting for task 40 to finish +Waiting for task 41 to finish +Waiting for task 42 to finish +Waiting for task 43 to finish +Waiting for task 44 to finish +Waiting for task 45 to finish +Waiting for task 46 to finish +Waiting for task 47 to finish +Waiting for task 48 to finish +Waiting for task 49 to finish +Waiting for task 50 to finish +Waiting for task 51 to finish +Waiting for task 52 to finish +Waiting for task 53 to finish +Waiting for task 54 to finish +Waiting for task 55 to finish +Waiting for task 56 to finish +Waiting for task 57 to finish +Waiting for task 58 to finish +Waiting for task 59 to finish +Waiting for task 60 to finish +Waiting for task 61 to finish +Waiting for task 62 to finish +Waiting for task 63 to finish +Waiting for task 64 to finish +Waiting for task 65 to finish +Waiting for task 66 to finish +Waiting for task 67 to finish +Waiting for task 68 to finish +Waiting for task 69 to finish +Waiting for task 70 to finish +Waiting for task 71 to finish +Waiting for task 72 to finish +Waiting for task 73 to finish +Waiting for task 74 to finish +Waiting for task 75 to finish +Waiting for task 76 to finish +Waiting for task 77 to finish +Waiting for task 78 to finish +Waiting for task 79 to finish +Waiting for task 80 to finish +Waiting for task 81 to finish +Waiting for task 82 to finish +Waiting for task 83 to finish +Waiting for task 84 to finish +Waiting for task 85 to finish +Waiting for task 86 to finish +Waiting for task 87 to finish +Waiting for task 88 to finish +Waiting for task 89 to finish +Waiting for task 90 to finish +Waiting for task 91 to finish +Waiting for task 92 to finish +Waiting for task 93 to finish +Waiting for task 94 to finish +Waiting for task 95 to finish +Waiting for task 96 to finish +Waiting for task 97 to finish +Waiting for task 98 to finish +Waiting for task 99 to finish +Waiting for task 100 to finish +Waiting for task 101 to finish +Waiting for task 102 to finish +Waiting for task 103 to finish +Waiting for task 104 to finish +Waiting for task 105 to finish +Waiting for task 106 to finish +Waiting for task 107 to finish +Waiting for task 108 to finish +Waiting for task 109 to finish +Waiting for task 110 to finish +Waiting for task 111 to finish +Waiting for task 112 to finish +Waiting for task 113 to finish +Waiting for task 114 to finish +Waiting for task 115 to finish +Waiting for task 116 to finish +Waiting for task 117 to finish +Waiting for task 118 to finish +Waiting for task 119 to finish +Waiting for task 120 to finish +Waiting for task 121 to finish +Waiting for task 122 to finish +Waiting for task 123 to finish +Waiting for task 124 to finish +Waiting for task 125 to finish +Waiting for task 126 to finish +Waiting for task 127 to finish +Waiting for task 128 to finish +Waiting for task 129 to finish +Waiting for task 130 to finish +Waiting for task 131 to finish +Waiting for task 132 to finish +Waiting for task 133 to finish +Waiting for task 134 to finish +Waiting for task 135 to finish +Waiting for task 136 to finish +Waiting for task 137 to finish +Waiting for task 138 to finish +Waiting for task 139 to finish +Waiting for task 140 to finish +Waiting for task 141 to finish +Waiting for task 142 to finish +Waiting for task 143 to finish +Waiting for task 144 to finish +Waiting for task 145 to finish +Waiting for task 146 to finish +Waiting for task 147 to finish +Waiting for task 148 to finish +Waiting for task 149 to finish +Waiting for task 150 to finish +Waiting for task 151 to finish +Waiting for task 152 to finish +Waiting for task 153 to finish +Waiting for task 154 to finish +Waiting for task 155 to finish +Waiting for task 156 to finish +Waiting for task 157 to finish +Waiting for task 158 to finish +Waiting for task 159 to finish +Waiting for task 160 to finish +Waiting for task 161 to finish +Waiting for task 162 to finish +Waiting for task 163 to finish +Waiting for task 164 to finish +Waiting for task 165 to finish +Waiting for task 166 to finish +Waiting for task 167 to finish +Waiting for task 168 to finish +Waiting for task 169 to finish +Waiting for task 170 to finish +Waiting for task 171 to finish +Waiting for task 172 to finish +Waiting for task 173 to finish +Waiting for task 174 to finish +Waiting for task 175 to finish +Waiting for task 176 to finish +Waiting for task 177 to finish +Waiting for task 178 to finish +Waiting for task 179 to finish +Waiting for task 180 to finish +Waiting for task 181 to finish +Waiting for task 182 to finish +Waiting for task 183 to finish +Waiting for task 184 to finish +Waiting for task 185 to finish +Waiting for task 186 to finish +Waiting for task 187 to finish +Waiting for task 188 to finish +Waiting for task 189 to finish +Waiting for task 190 to finish +Waiting for task 191 to finish +Waiting for task 192 to finish +Waiting for task 193 to finish +Waiting for task 194 to finish +Waiting for task 195 to finish +Waiting for task 196 to finish +Waiting for task 197 to finish +Waiting for task 198 to finish +Waiting for task 199 to finish +Waiting for task 200 to finish +Waiting for task 201 to finish +Waiting for task 202 to finish +Waiting for task 203 to finish +Waiting for task 204 to finish +Waiting for task 205 to finish +Waiting for task 206 to finish +Waiting for task 207 to finish +Waiting for task 208 to finish +Waiting for task 209 to finish +Waiting for task 210 to finish +Waiting for task 211 to finish +Waiting for task 212 to finish +Waiting for task 213 to finish +Waiting for task 214 to finish +Waiting for task 215 to finish +Waiting for task 216 to finish +Waiting for task 217 to finish +Waiting for task 218 to finish +Waiting for task 219 to finish +Waiting for task 220 to finish +Waiting for task 221 to finish +Waiting for task 222 to finish +Waiting for task 223 to finish +Waiting for task 224 to finish +Waiting for task 225 to finish +Waiting for task 226 to finish +Waiting for task 227 to finish +Waiting for task 228 to finish +Waiting for task 229 to finish +Waiting for task 230 to finish +Waiting for task 231 to finish +Waiting for task 232 to finish +Waiting for task 233 to finish +Waiting for task 234 to finish +Waiting for task 235 to finish +Waiting for task 236 to finish +Waiting for task 237 to finish +Waiting for task 238 to finish +Waiting for task 239 to finish +Waiting for task 240 to finish +Waiting for task 241 to finish +Waiting for task 242 to finish +Waiting for task 243 to finish +Waiting for task 244 to finish +Waiting for task 245 to finish +Waiting for task 246 to finish +Waiting for task 247 to finish +Waiting for task 248 to finish +Waiting for task 249 to finish +Waiting for task 250 to finish +Waiting for task 251 to finish +Waiting for task 252 to finish +Waiting for task 253 to finish +task 253: fim +PPOS: task 253 ((null)), 55132 ms run, 249 ms cpu, 25 acts, exit code 253 +task 341: fim +PPOS: task 341 ((null)), 55134 ms run, 242 ms cpu, 25 acts, exit code 341 +task 343: fim +PPOS: task 343 ((null)), 55140 ms run, 246 ms cpu, 25 acts, exit code 343 +task 371: fim +PPOS: task 371 ((null)), 55148 ms run, 248 ms cpu, 25 acts, exit code 371 +Waiting for task 254 to finish +Waiting for task 255 to finish +Waiting for task 256 to finish +Waiting for task 257 to finish +Waiting for task 258 to finish +Waiting for task 259 to finish +Waiting for task 260 to finish +Waiting for task 261 to finish +Waiting for task 262 to finish +Waiting for task 263 to finish +Waiting for task 264 to finish +Waiting for task 265 to finish +Waiting for task 266 to finish +Waiting for task 267 to finish +Waiting for task 268 to finish +Waiting for task 269 to finish +Waiting for task 270 to finish +Waiting for task 271 to finish +Waiting for task 272 to finish +Waiting for task 273 to finish +Waiting for task 274 to finish +Waiting for task 275 to finish +Waiting for task 276 to finish +Waiting for task 277 to finish +Waiting for task 278 to finish +Waiting for task 279 to finish +Waiting for task 280 to finish +Waiting for task 281 to finish +Waiting for task 282 to finish +Waiting for task 283 to finish +Waiting for task 284 to finish +Waiting for task 285 to finish +Waiting for task 286 to finish +Waiting for task 287 to finish +Waiting for task 288 to finish +Waiting for task 289 to finish +Waiting for task 290 to finish +Waiting for task 291 to finish +Waiting for task 292 to finish +Waiting for task 293 to finish +Waiting for task 294 to finish +Waiting for task 295 to finish +Waiting for task 296 to finish +Waiting for task 297 to finish +Waiting for task 298 to finish +Waiting for task 299 to finish +Waiting for task 300 to finish +Waiting for task 301 to finish +Waiting for task 302 to finish +Waiting for task 303 to finish +Waiting for task 304 to finish +Waiting for task 305 to finish +Waiting for task 306 to finish +Waiting for task 307 to finish +Waiting for task 308 to finish +Waiting for task 309 to finish +Waiting for task 310 to finish +Waiting for task 311 to finish +Waiting for task 312 to finish +Waiting for task 313 to finish +Waiting for task 314 to finish +Waiting for task 315 to finish +Waiting for task 316 to finish +Waiting for task 317 to finish +Waiting for task 318 to finish +Waiting for task 319 to finish +Waiting for task 320 to finish +Waiting for task 321 to finish +Waiting for task 322 to finish +Waiting for task 323 to finish +Waiting for task 324 to finish +Waiting for task 325 to finish +Waiting for task 326 to finish +Waiting for task 327 to finish +Waiting for task 328 to finish +Waiting for task 329 to finish +Waiting for task 330 to finish +Waiting for task 331 to finish +Waiting for task 332 to finish +Waiting for task 333 to finish +Waiting for task 334 to finish +Waiting for task 335 to finish +Waiting for task 336 to finish +Waiting for task 337 to finish +Waiting for task 338 to finish +Waiting for task 339 to finish +Waiting for task 340 to finish +Waiting for task 341 to finish +Waiting for task 342 to finish +Waiting for task 343 to finish +Waiting for task 344 to finish +Waiting for task 345 to finish +Waiting for task 346 to finish +Waiting for task 347 to finish +Waiting for task 348 to finish +Waiting for task 349 to finish +Waiting for task 350 to finish +Waiting for task 351 to finish +Waiting for task 352 to finish +Waiting for task 353 to finish +Waiting for task 354 to finish +Waiting for task 355 to finish +Waiting for task 356 to finish +Waiting for task 357 to finish +Waiting for task 358 to finish +Waiting for task 359 to finish +Waiting for task 360 to finish +Waiting for task 361 to finish +Waiting for task 362 to finish +Waiting for task 363 to finish +Waiting for task 364 to finish +Waiting for task 365 to finish +Waiting for task 366 to finish +Waiting for task 367 to finish +Waiting for task 368 to finish +Waiting for task 369 to finish +Waiting for task 370 to finish +Waiting for task 371 to finish +Waiting for task 372 to finish +Waiting for task 373 to finish +Waiting for task 374 to finish +Waiting for task 375 to finish +Waiting for task 376 to finish +Waiting for task 377 to finish +Waiting for task 378 to finish +Waiting for task 379 to finish +Waiting for task 380 to finish +Waiting for task 381 to finish +Waiting for task 382 to finish +Waiting for task 383 to finish +Waiting for task 384 to finish +Waiting for task 385 to finish +Waiting for task 386 to finish +Waiting for task 387 to finish +Waiting for task 388 to finish +Waiting for task 389 to finish +Waiting for task 390 to finish +Waiting for task 391 to finish +Waiting for task 392 to finish +Waiting for task 393 to finish +Waiting for task 394 to finish +Waiting for task 395 to finish +Waiting for task 396 to finish +Waiting for task 397 to finish +Waiting for task 398 to finish +Waiting for task 399 to finish +Waiting for task 400 to finish +Waiting for task 401 to finish +Waiting for task 402 to finish +Waiting for task 403 to finish +Waiting for task 404 to finish +Waiting for task 405 to finish +Waiting for task 406 to finish +Waiting for task 407 to finish +Waiting for task 408 to finish +Waiting for task 409 to finish +Waiting for task 410 to finish +Waiting for task 411 to finish +Waiting for task 412 to finish +Waiting for task 413 to finish +Waiting for task 414 to finish +Waiting for task 415 to finish +Waiting for task 416 to finish +Waiting for task 417 to finish +Waiting for task 418 to finish +Waiting for task 419 to finish +Waiting for task 420 to finish +Waiting for task 421 to finish +Waiting for task 422 to finish +Waiting for task 423 to finish +Waiting for task 424 to finish +Waiting for task 425 to finish +Waiting for task 426 to finish +task 426: fim +PPOS: task 426 ((null)), 55164 ms run, 254 ms cpu, 26 acts, exit code 426 +Waiting for task 427 to finish +Waiting for task 428 to finish +Waiting for task 429 to finish +Waiting for task 430 to finish +Waiting for task 431 to finish +Waiting for task 432 to finish +Waiting for task 433 to finish +Waiting for task 434 to finish +Waiting for task 435 to finish +Waiting for task 436 to finish +Waiting for task 437 to finish +Waiting for task 438 to finish +Waiting for task 439 to finish +Waiting for task 440 to finish +Waiting for task 441 to finish +Waiting for task 442 to finish +Waiting for task 443 to finish +Waiting for task 444 to finish +Waiting for task 445 to finish +Waiting for task 446 to finish +Waiting for task 447 to finish +Waiting for task 448 to finish +Waiting for task 449 to finish +Waiting for task 450 to finish +Waiting for task 451 to finish +Waiting for task 452 to finish +Waiting for task 453 to finish +Waiting for task 454 to finish +Waiting for task 455 to finish +Waiting for task 456 to finish +Waiting for task 457 to finish +Waiting for task 458 to finish +Waiting for task 459 to finish +Waiting for task 460 to finish +Waiting for task 461 to finish +Waiting for task 462 to finish +Waiting for task 463 to finish +Waiting for task 464 to finish +Waiting for task 465 to finish +Waiting for task 466 to finish +Waiting for task 467 to finish +Waiting for task 468 to finish +Waiting for task 469 to finish +Waiting for task 470 to finish +Waiting for task 471 to finish +Waiting for task 472 to finish +Waiting for task 473 to finish +Waiting for task 474 to finish +Waiting for task 475 to finish +Waiting for task 476 to finish +Waiting for task 477 to finish +Waiting for task 478 to finish +Waiting for task 479 to finish +Waiting for task 480 to finish +Waiting for task 481 to finish +Waiting for task 482 to finish +Waiting for task 483 to finish +Waiting for task 484 to finish +Waiting for task 485 to finish +Waiting for task 486 to finish +Waiting for task 487 to finish +Waiting for task 488 to finish +Waiting for task 489 to finish +Waiting for task 490 to finish +Waiting for task 491 to finish +Waiting for task 492 to finish +Waiting for task 493 to finish +Waiting for task 494 to finish +Waiting for task 495 to finish +Waiting for task 496 to finish +Waiting for task 497 to finish +Waiting for task 498 to finish +Waiting for task 499 to finish +Waiting for task 500 to finish +Waiting for task 501 to finish +Waiting for task 502 to finish +Waiting for task 503 to finish +Waiting for task 504 to finish +Waiting for task 505 to finish +Waiting for task 506 to finish +Waiting for task 507 to finish +Waiting for task 508 to finish +Waiting for task 509 to finish +Waiting for task 510 to finish +Waiting for task 511 to finish +Waiting for task 512 to finish +Waiting for task 513 to finish +55165 ms: user_main fim +PPOS: task 1 (user_main), 55165 ms run, 7 ms cpu, 5 acts, exit code 0 +PPOS: task 0 (kernel), 55166 ms run, 26 ms cpu, 5797 acts, exit code 0 +PPOS: system terminating +PPOS: system terminated (uptime 55166 ms) diff --git a/test/pingpong-wait.c b/test/pingpong-wait.c @@ -0,0 +1,110 @@ +// PingPongOS - PingPong Operating System +// © Prof. Carlos A. Maziero, DINF UFPR +// Versão 2.1 -- 06/2026 + +// ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO; +// ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO. + +// Teste da função task_wait() (leve) + +#include <assert.h> +#include "lib/pplibc.h" +#include "syscall.h" + +#define WORKLOAD 20000 + +struct task_t *pang, *peng, *ping, *pong, *pung; + +// simula um processamento pesado +int hardwork(int n) +{ + int soma = 0; + + for (int i = 0; i < n; i++) + for (int j = 0; j < n; j++) + soma += j; + return (soma); +} + +// corpo das tarefas +void body(void *arg) +{ + int max, tid; + + tid = task_id(NULL); + max = tid * 2; + + printk("%5u ms: %s inicia\n", time(), (char *)arg); + for (int i = 0; i < max; i++) + { + printk("%5u ms: %s %d\n", time(), (char *)arg, i); + hardwork(WORKLOAD); + } + printk("%5u ms: %s termina\n", time(), (char *)arg); + + task_exit(tid); +} + +// corpo da tarefa principal +void user_main(void *arg) +{ + int status, id; + char *name; + + name = task_name(NULL); + id = task_id(NULL); + printk("%5u ms: %s (id %d): inicio\n", time(), name, id); + + pang = task_create("pang", body, "\tPang"); + assert(pang); + peng = task_create("peng", body, "\t\tPeng"); + assert(peng); + ping = task_create("ping", body, "\t\t\tPing"); + assert(ping); + pong = task_create("pong", body, "\t\t\t\tPong"); + assert(pong); + pung = task_create("pung", body, "\t\t\t\t\tPung"); + assert(pung); + + for (int i = 0; i < 2; i++) + { + printk("%5u ms: %s %d\n", time(), name, i); + hardwork(WORKLOAD); + } + + printk("%5u ms: %s esperando Pang...\n", time(), name); + status = task_wait(pang); + assert(status == task_id(pang)); + + printk("%5u ms: %s esperando Peng...\n", time(), name); + status = task_wait(peng); + assert(status == task_id(peng)); + + printk("%5u ms: %s esperando Ping...\n", time(), name); + status = task_wait(ping); + assert(status == task_id(ping)); + + printk("%5u ms: %s esperando Pong...\n", time(), name); + status = task_wait(pong); + assert(status == task_id(pong)); + + printk("%5u ms: %s esperando Pung...\n", time(), name); + status = task_wait(pung); + assert(status == task_id(pung)); + + // destrói as tarefas + status = task_destroy(pang); + assert(status == NOERROR); + status = task_destroy(peng); + assert(status == NOERROR); + status = task_destroy(ping); + assert(status == NOERROR); + status = task_destroy(pong); + assert(status == NOERROR); + status = task_destroy(pung); + assert(status == NOERROR); + + printk("%5u ms: %s fim\n", time(), name); + + task_exit(NOERROR); +} diff --git a/test/pingpong-wait.txt b/test/pingpong-wait.txt @@ -0,0 +1,70 @@ +PPOS: system initializing +PPOS: system ready (uptime 0 ms) + 0 ms: user_main (id 1): inicio + 0 ms: user_main 0 + 10 ms: Pang inicia + 10 ms: Pang 0 + 20 ms: Peng inicia + 20 ms: Peng 0 + 30 ms: Ping inicia + 30 ms: Ping 0 + 40 ms: Pong inicia + 40 ms: Pong 0 + 50 ms: Pung inicia + 50 ms: Pung 0 + 4079 ms: Pung 1 + 4140 ms: user_main 1 + 4159 ms: Pang 1 + 4180 ms: Pong 1 + 4221 ms: Peng 1 + 4230 ms: Ping 1 + 8279 ms: Pung 2 + 8329 ms: Pong 2 + 8340 ms: user_main esperando Pang... + 8344 ms: Pang 2 + 8357 ms: Peng 2 + 8410 ms: Ping 2 +11784 ms: Pung 3 +11825 ms: Pong 3 +11842 ms: Pang 3 +11857 ms: Peng 3 +11867 ms: Ping 3 +15287 ms: Pung 4 +15345 ms: Pang termina +PPOS: task 2 (pang), 15345 ms run, 2795 ms cpu, 280 acts, exit code 2 +15369 ms: Pong 4 +15386 ms: user_main esperando Peng... +15388 ms: Peng 4 +15400 ms: Ping 4 +18103 ms: Pung 5 +18168 ms: Pong 5 +18187 ms: Peng 5 +18198 ms: Ping 5 +20903 ms: Pung 6 +20969 ms: Pong 6 +20988 ms: Peng termina +PPOS: task 3 (peng), 20988 ms run, 4202 ms cpu, 421 acts, exit code 3 +20993 ms: Ping 6 +21019 ms: user_main esperando Ping... +23050 ms: Pung 7 +23076 ms: Pong 7 +23092 ms: Ping 7 +25092 ms: Pung 8 +25143 ms: Pong 8 +25165 ms: Ping termina +PPOS: task 4 (ping), 25165 ms run, 5596 ms cpu, 560 acts, exit code 4 +25185 ms: user_main esperando Pong... +26502 ms: Pung 9 +26534 ms: Pong 9 +27884 ms: Pung 10 +27926 ms: Pong termina +PPOS: task 5 (pong), 27926 ms run, 6971 ms cpu, 698 acts, exit code 5 +27936 ms: user_main esperando Pung... +28601 ms: Pung 11 +29319 ms: Pung termina +PPOS: task 6 (pung), 29319 ms run, 8363 ms cpu, 837 acts, exit code 6 +29319 ms: user_main fim +PPOS: task 1 (user_main), 29319 ms run, 1390 ms cpu, 145 acts, exit code 0 +PPOS: task 0 (kernel), 29319 ms run, 2 ms cpu, 2942 acts, exit code 0 +PPOS: system terminating +PPOS: system terminated (uptime 29320 ms)