87 resultados para Procedural Programming
Resumo:
This paper presents a new laboratory-based module for embedded systems teaching, which addresses the current lack of consideration for the link between hardware development, software implementation, course content and student evaluation in a laboratory environment. The course introduces second year undergraduate students to the interface between hardware and software and the programming of embedded devices; in this case, the PIC (originally peripheral interface controller, later rebranded programmable intelligent computer) microcontroller. A hardware development board designed for use in the laboratories of this module is presented. Through hands on laboratory experience, students are encouraged to engage with practical problem-solving exercises and develop programming skills across a broad range of scenarios.
Resumo:
Norms constitute a powerful coordination mechanism among heterogeneous agents. In this paper, we propose a rule language to specify and explicitly manage the normative positions of agents (permissions, prohibitions and obligations), with which distinct deontic notions and their relationships can be captured. Our rule-based formalism includes constraints for more expressiveness and precision and allows to supplement (and implement) electronic institutions with norms. We also show how some normative aspects are given computational interpretation. © 2008 Springer Science+Business Media, LLC.
Resumo:
Many scientific applications are programmed using hybrid programming models that use both message passing and shared memory, due to the increasing prevalence of large-scale systems with multicore, multisocket nodes. Previous work has shown that energy efficiency can be improved using software-controlled execution schemes that consider both the programming model and the power-aware execution capabilities of the system. However, such approaches have focused on identifying optimal resource utilization for one programming model, either shared memory or message passing, in isolation. The potential solution space, thus the challenge, increases substantially when optimizing hybrid models since the possible resource configurations increase exponentially. Nonetheless, with the accelerating adoption of hybrid programming models, we increasingly need improved energy efficiency in hybrid parallel applications on large-scale systems. In this work, we present new software-controlled execution schemes that consider the effects of dynamic concurrency throttling (DCT) and dynamic voltage and frequency scaling (DVFS) in the context of hybrid programming models. Specifically, we present predictive models and novel algorithms based on statistical analysis that anticipate application power and time requirements under different concurrency and frequency configurations. We apply our models and methods to the NPB MZ benchmarks and selected applications from the ASC Sequoia codes. Overall, we achieve substantial energy savings (8.74 percent on average and up to 13.8 percent) with some performance gain (up to 7.5 percent) or negligible performance loss.
Resumo:
An approach to the management of non-functional concerns in massively parallel and/or distributed architectures that marries parallel programming patterns with autonomic computing is presented. The necessity and suitability of the adoption of autonomic techniques are evidenced. Issues arising in the implementation of autonomic managers taking care of multiple concerns and of coordination among hierarchies of such autonomic managers are discussed. Experimental results are presented that demonstrate the feasibility of the approach.
Resumo:
OBJECTIVES:: Preterm infants undergo frequent painful procedures in the neonatal intensive care unit. Electroencephalography (EEG) changes in reaction to invasive procedures have been reported in preterm and full-term neonates. Frontal EEG asymmetry as an index of emotion during tactile stimulation shows inconsistent findings in full-term infants, and has not been examined in the context of pain in preterm infants. Our aim was to examine whether heel lance for blood collection induces changes in right-left frontal asymmetry, suggesting negative emotional response, in preterm neonates at different gestational age (GA) at birth and different duration of stay in the neonatal intensive care unit. MATERIALS AND METHODS:: Three groups of preterm infants were compared: set 1: group 1 (n=24), born and tested at 28 weeks GA; group 2 (n=22), born at 28 weeks GA and tested at 33 weeks; set 2: group 3 (n=25), born and tested at 33 weeks GA. EEG power was calculated for 30-second artifact-free periods, in standard frequency bandwidths, in 3 phases (baseline, up to 5 min after heel lance, 10 min after heel lance). RESULTS:: No significant differences were found in right-left frontal asymmetry, or in ipsilateral or contralateral somatosensory response, across phases. In contrast, the Behavioral Indicators of Infant Pain scores changed across phase (P
Resumo:
Objective: Preterm infants are exposed to multiple painful procedures in the neonatal intensive care unit (NICU) during a period of rapid brain development. Our aim was to examine relationships between procedural pain in the NICU and early brain development in very preterm infants.
Methods: Infants born very preterm (N ¼ 86; 24–32 weeks gestational age) were followed prospectively from birth, and studied with magnetic resonance imaging, 3-dimensional magnetic resonance spectroscopic imaging, and diffusion tensor imaging: scan 1 early in life (median, 32.1 weeks) and scan 2 at term-equivalent age (median, 40 weeks). We calculated N-acetylaspartate to choline ratios (NAA/choline), lactate to choline ratios, average diffusivity, and white matter fractional anisotropy (FA) from up to 7 white and 4 subcortical gray matter regions of interest. Procedural pain was quantified as the number of skin-breaking events from birth to term or scan 2. Data were
analyzed using generalized estimating equation modeling adjusting for clinical confounders such as illness severity, morphine exposure, brain injury, and surgery.
Results: After comprehensively adjusting for multiple clinical factors, greater neonatal procedural pain was associated with reduced white matter FA (b ¼ 0.0002, p ¼ 0.028) and reduced subcortical gray matter NAA/choline (b ¼ 0.0006, p ¼ 0.004). Reduced FA was predicted by early pain (before scan 1), whereas lower NAA/choline was predicted by pain exposure throughout the neonatal course, suggesting a primary and early effect on subcortical structures with secondary white matter changes.
Interpretation: Early procedural pain in very preterm infants may contribute to impaired brain development.
Resumo:
Preterm and critically ill newborns admitted to a NICU undergo repeated skin-breaking procedures that are necessary for their survival. Sucrose is rapidly becoming the accepted clinical standard nonpharmacologic intervention for managing acute procedural pain for these infants. Although shown to be safe in single doses, only 4 studies have evaluated the effects of repeated doses of sucrose over relatively short periods of time. None has examined the use of sucrose throughout the NICU stay, and only 1 study evaluated the neurodevelopmental outcomes after repeated doses of sucrose. In that study, infants born at 10 doses per day in the first week of life were more likely to show poorer attention and motor development in the early months after discharge from the NICU. Results of studies in animal models have suggested that the mechanism of action of sucrose is through opioid pathways; however, in human infants, little has been done to examine the physiologic mechanisms involved, and the findings reported thus far have been ambiguous. Drawing from the growing animal literature of research that has examined the effects of chronic sugar exposure, we describe alternative amine and hormone pathways that are common to the processing of sucrose, attention, and motor development. In addition, a review of the latest research to examine the effects of repeated sucrose on pain processing is presented. These 2 literatures each can inform the other and can provide an impetus to initiate research to examine not only the mechanisms involved in the calming mechanisms of sucrose but also in the long-term neurodevelopmental effects of repeated sucrose in those infants born extremely preterm or critically ill.
Resumo:
Data from animal models indicate that neonatal stress or pain can permanently alter subsequent behavioral and/or physiological reactivity to stressors. However, cumulative effects of pain related to acute procedures in the neonatal intensive care unit (NICU) on later stress and/or pain reactivity has received limited attention. The objective of this study is to examine relationships between prior neonatal pain exposure (number of skin breaking procedures), and subsequent stress and pain reactivity in preterm infants in the NICU. Eighty-seven preterm infants were studied at 32 (+/-1 week) postconceptional age (PCA). Infants who received analgesia or sedation in the 72 h prior to each study, or any postnatal dexamethasone, were excluded. Outcomes were infant responses to two different stressors studied on separate days in a repeated measures randomized crossover design: (1) plasma cortisol to stress of a fixed series of nursing procedures; (2) behavioral (Neonatal Facial Coding System; NFCS) and cardiac reactivity to pain of blood collection. Among infants born
Resumo:
Stress systems may be altered in the long term in preterm infants for multiple reasons, including early exposure to procedural pain in neonatal intensive care. This question has received little attention beyond hospital discharge. Stress responses (cortisol) to visual novelty in preterm infants who were born at extremely low gestational age (ELGA; <or =28 weeks), very low gestational age (VLGA; 29-32 weeks), and term were compared at 8 months of age corrected for prematurity (corrected chronological age [CCA]). In addition, among the preterm infants, we evaluated whether cortisol levels at 8 months were related to neonatal exposure to procedural pain and morphine in the neonatal intensive care unit.
Resumo:
Data flow techniques have been around since the early '70s when they were used in compilers for sequential languages. Shortly after their introduction they were also consideredas a possible model for parallel computing, although the impact here was limited. Recently, however, data flow has been identified as a candidate for efficient implementation of various programming models on multi-core architectures. In most cases, however, the burden of determining data flow "macro" instructions is left to the programmer, while the compiler/run time system manages only the efficient scheduling of these instructions. We discuss a structured parallel programming approach supporting automatic compilation of programs to macro data flow and we show experimental results demonstrating the feasibility of the approach and the efficiency of the resulting "object" code on different classes of state-of-the-art multi-core architectures. The experimental results use different base mechanisms to implement the macro data flow run time support, from plain pthreads with condition variables to more modern and effective lock- and fence-free parallel frameworks. Experimental results comparing efficiency of the proposed approach with those achieved using other, more classical, parallel frameworks are also presented. © 2012 IEEE.
Resumo:
Recent trends in computing systems, such as multi-core processors and cloud computing, expose tens to thousands of processors to the software. Software developers must respond by introducing parallelism in their software. To obtain highest performance, it is not only necessary to identify parallelism, but also to reason about synchronization between threads and the communication of data from one thread to another. This entry gives an overview on some of the most common abstractions that are used in parallel programming, namely explicit vs. implicit expression of parallelism and shared and distributed memory. Several parallel programming models are reviewed and categorized by means of these abstractions. The pros and cons of parallel programming models from the perspective of performance and programmability are discussed.
Resumo:
On multiprocessors with explicitly managed memory hierarchies (EMM), software has the responsibility of moving data in and out of fast local memories. This task can be complex and error-prone even for expert programmers. Before we can allow compilers to handle the complexity for us, we must identify the abstractions that are general enough to allow us to write applications with reasonable effort, yet speci?c enough to exploit the vast on-chip memory bandwidth of EMM multi-processors. To this end, we compare two programming models against hand-tuned codes on the STI Cell, paying attention to programmability and performance. The ?rst programming model, Sequoia, abstracts the memory hierarchy as private address spaces, each corresponding to a parallel task. The second, Cellgen, is a new framework which provides OpenMP-like semantics and the abstraction of a shared address spaces divided into private and shared data. We compare three applications programmed using these models against their hand-optimized counterparts in terms of abstractions, programming complexity, and performance.