Compiler-Assisted Thread Abstractions for Resource-Constrained Systems

Total Page:16

File Type:pdf, Size:1020Kb

Compiler-Assisted Thread Abstractions for Resource-Constrained Systems Research Collection Doctoral Thesis Compiler-assisted thread abstractions for resource-constrained systems Author(s): Bernauer, Alexander Publication Date: 2013 Permanent Link: https://doi.org/10.3929/ethz-a-009970097 Rights / License: In Copyright - Non-Commercial Use Permitted This page was generated automatically upon download from the ETH Zurich Research Collection. For more information please consult the Terms of use. ETH Library Diss. ETH No. 21182 Compiler-Assisted Thread Abstractions for Resource-Constrained Systems DISSERTATION submitted to ETH ZURICH for the degree of DOCTOR OF SCIENCES (Dr. sc. ETH Zürich) by ALEXANDER BERNAUER Diplom-Informatiker, University of Ulm, Germany born September 11, 1980 citizen of Germany accepted on the recommendation of Prof. Dr. Friedemann Mattern, examiner Prof. Dr. Kay Römer, co-examiner Prof. Dr. Thomas Gross, co-examiner 2013 ii Für Liesa Bernauer, meine Treue, meine Freiheit, mein Anker, die eine, die mich bindet — Mutter meines Sohnes. Ich liebe dich. Für Marco Baur, mein treuer Freund, mein Mentor, mein Schüler, der eine, der wie ich — Wanderer zwischen Welten. Ich werde dich nie vergessen. Danksagung Diese Arbeit wäre ohne die Hilfe vieler Mitmenschen nicht möglich gewesen. So danke ich Prof. Dr. Friedemann Mattern für sein Vertrauen in mich und für die Möglichkeit, an einer der führenden technischen Universitäten zu promovieren. Ausserdem danke ich ihm für die Freiheit, mein Thema selber zu suchen, und für die Unterstützung, diese themenübergreifende Arbeit zum Abschluss zu bringen. Ohne dich hätte sich meinen Traum zu promovieren wahrscheinlich nie erfüllt. Ich danke Prof. Dr. Kay Römer für die wertvolle inhaltliche Zusammenarbeit und das Vermitteln seiner Erfahrung, für seine Flexibilität, seine Offenheit und für seine Bereitschaft, mich über seine persönlichen Interessen hinaus zu unterstüzten. Ohne dich wäre ich in der Isolation versunken und hätte sicherlich noch nicht — und vielleicht niemals — abgeschlossen. Ich danke Prof. Dr. Thomas Gross für seine Zeit, mein Thema im Vorfeld inhaltlich zu begleiten, sich gründlich mit dieser Arbeit auseinanderzusetzen und schliesslich als wichtiger Gutachter für meine Dissertation zu aggieren. Ihre Unterstützung war eine Vorraussetzung für den Abschluss dieser Arbeit, die thematisch in Ihren Fachgebiet angesiedelt ist. Ich danke Liesa Bernauer dafür, dass sie mich von Anfang an ermutigt hat, meinen Traum zu verfolgen und an mich zu glauben, dass sie mich andauernd weiter angetrieben, hat auf mein Ziel hinzuarbeiten, und dass sie mir den Rücken frei gehalten hat, damit ich diese Arbeit abschliessen kann — und all das mit grossen persönlichem Verzicht und enormem Aufwand. Ohne dich hätte ich es nicht gewagt und schon gar nicht vollbracht. Ich danke Fritz und Jutta Bernauer dafür, dass sich mich im Geiste der Liebe, des Selbstbewusstseins und der persönlichen Entfaltung grossgezogen haben. Euer bedinung- loser Rückhalt hat mich den Mut aufbringen lassen, dieses Thema trotz Zweifel und Kritik bis zum Ende zu verfolgen. Ich danke Dr. Christian Flörkemeier für die inhaltliche und persönliche Betreuung am Ende meiner Dissertation. Ohne deine Erfahrung, deine Motivierungen und deinen Druck hätte ich diese Arbeit nicht zeitgerecht zu Ende gebracht. Ich danke Matthias Kovatsch für seine Freundschaft, sein offenes Ohr, den Zusam- menhalt, seine Bereitschaft mir immer wieder zu helfen und den ganzen Spass, den wir zusammen hatten. Es war eine schöne Zeit mit dir und ich hoffe, es kommen noch weitere. Ich danke Markus Weiss für seine Freundschaft, seine Treue und seine persönliche Unterstüztung, für die Skiausflüge, Feiern und Grillabende. Ich hab von dir gelernt und du hast mich verändert. Ich danke Simon Meier für seine fachliche Unterstüztung, seine Ideen und seine Bereitschaft, einem Anfänger ohne Eigennutz zu helfen. Ohne dich hätte ich kaum die fachliche Kompetenz aufbauen können, die für die Umsetzung dieser Arbeit nötig ist. Ich danke Steffanie Cantu für ihre professionelle sprachliche Korrektur dieser Arbeit. Dank deiner Hilfe ist es nicht ganz so offensichtlich, dass ich wenig Talent für Sprachliches habe. Darüberhinaus haben mir noch viele Menschen geholfen, indem sie mit mir über v Danksagung diese Arbeit diskutiert, Fragen beantwortet, auf Probleme hingewiesen und/oder Ideen beigesteuert haben. In alphabetischer Reihenfolge waren das: Andreas Bernauer, Anwar Hithnawi, Luca Mottola, Michael Pradel, Michael Schwarz, Moritz Strübe, Rico Schiekel, Silvia Santini, Simon Mayer, Wilhelm Kleiminger und Yunyan Ma. Ausserdem geht mein Dank an alle Beteiligten der ETH Zürich für die unglaubliche Infrastruktur und die umfassenden und freundlichen Dienstleistungen. Zuletzt möchte ich mich bei den Beteiligten der folgenden Projekte für die finanzielle Unterstützung und die Zusammenarbeit bedanken: • das National Competence Center in Research on Mobile Information and Commu- nication Systems (NCCR-MICS); unterstützt durch den Schweizer Nationalfonds zur Förderung der Wissenschaflichen Forschung unter der Kennung 5005-67322 • das Cooperating Objects Network of Excellence (CONET); gefördert durch die Europäische Komission im Rahmen des Seventh Framework Programme unter der Kennung FP7-2007-2-224053 vi Abstract Although increase of hardware resources is the general trend in information technology, resource-constrained systems continue to be of relevance. In wireless sensor networks (WSN), for example, a typical device is equipped with a few kilobytes of RAM and provides only limited computing power. Such systems aim to provide ad-hoc and long- term monitoring of physical or environmental conditions over large spatial regions. Maximizing the number of participating devices and extending the overall network lifetime is crucial for such applications. Moore’s Law is therefore exploited towards lower device costs and lower power consumption at almost constant resource capabilities per device. This scarcity of resources has various implications on how resource-constrained sys- tems such as wireless sensor networks are designed and implemented. Besides requiring highly optimized network protocols, one particularly important consequence is the preva- lent adoption of the event-based programming paradigm. This paradigm is considered well-suited for traditional WSN applications, because it can be implemented efficiently and matches the reactive nature of such applications. However, requirements of WSN applications are continuously increasing, causing higher software complexity to meet growing expectations. As a result, today’s sensor networks often run IP stacks, HTTP and CoAP services, middleware, and other extensive software components. Implementing the complex control and data flows of such applications and services in an event-based manner is error-prone and the resulting code is hard to maintain. This leads to software faults that are costly and time consuming to track down, both during development and testing, and particularly during deployment and operation. Additionally, the presence of software faults entails security issues for a deployed system. To counter these problems, better programming abstractions for resource-constrained systems seem necessary. Threads are known for overcoming many problems of events by supporting sequential control flows via synchronous functions, but existing solutions either provide incomplete thread semantics or introduce a significant resource overhead. This reflects the common believe that expressiveness has to be traded for efficiency and vice versa. With our work, we show that this trade-off is not inherent to resource-constrained systems. We follow the approach of compiler-assisted thread abstractions, where full-fledged thread-based C code is compiled to equivalent event-based C code that runs atop an event-based operating system. This approach is promising for two reasons. First, the event-based run-time system avoids multiple preallocated stacks and the overhead of a task scheduler. And second, a compiler can, in contrast to a run-time-based thread library, perform static program analysis and thus apply application-specific optimizations. Our thesis is that a comprehensive thread abstraction is possible also for resource- constrained systems. A compiler, which translates thread-based applications into event- based programs, is able to combine the efficiency of event-based programming with the comfort of thread-based programming. This addresses the increasing requirements of resource-constrained systems. We develop our thesis in the context of wireless sensor networks, assuming that resource scarcity will continue to be relevant. Existing threading vii Abstract solutions either provide only limited thread semantics or require more resources than common WSN devices offer. We therefore propose a compiler-assisted approach that can provide a comprehensive and efficient thread abstraction. We support our thesis by presenting a comprehensive compiler-assisted thread ab- straction concept for resource-constrained systems. To achieve this, we developed a platform-agnostic code transformation from thread-based C code to equivalent event- based C code. This enables developers to write thread-based applications without the additional costs of a thread library. Moreover, we present a way to reverse this transfor- mation at run-time for fault diagnostics purposes. Hiding the details of the transformation and the underlying run-time system during all phases of development completes the abstraction. In order to evaluate our approach, we designed
Recommended publications
  • Thread Scheduling in Multi-Core Operating Systems Redha Gouicem
    Thread Scheduling in Multi-core Operating Systems Redha Gouicem To cite this version: Redha Gouicem. Thread Scheduling in Multi-core Operating Systems. Computer Science [cs]. Sor- bonne Université, 2020. English. tel-02977242 HAL Id: tel-02977242 https://hal.archives-ouvertes.fr/tel-02977242 Submitted on 24 Oct 2020 HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. Ph.D thesis in Computer Science Thread Scheduling in Multi-core Operating Systems How to Understand, Improve and Fix your Scheduler Redha GOUICEM Sorbonne Université Laboratoire d’Informatique de Paris 6 Inria Whisper Team PH.D.DEFENSE: 23 October 2020, Paris, France JURYMEMBERS: Mr. Pascal Felber, Full Professor, Université de Neuchâtel Reviewer Mr. Vivien Quéma, Full Professor, Grenoble INP (ENSIMAG) Reviewer Mr. Rachid Guerraoui, Full Professor, École Polytechnique Fédérale de Lausanne Examiner Ms. Karine Heydemann, Associate Professor, Sorbonne Université Examiner Mr. Etienne Rivière, Full Professor, University of Louvain Examiner Mr. Gilles Muller, Senior Research Scientist, Inria Advisor Mr. Julien Sopena, Associate Professor, Sorbonne Université Advisor ABSTRACT In this thesis, we address the problem of schedulers for multi-core architectures from several perspectives: design (simplicity and correct- ness), performance improvement and the development of application- specific schedulers.
    [Show full text]
  • Table of Contents
    Parallel Programming Models Lawrence Rauchwerger http://parasol.tamu.edu Table of Contents Introduction to Parallelism Introduction to Programming Models Shared Memory Programming Message Passing Programming Shared Memory Models PGAS Languages Other Programming Models 1 Acknowledgement Material in this course has been adapted from various (cited) authoritative sources Presentation has been put together with the help of Dr. Mauro Bianco, Antoniu Pop, Tim Smith and Nathan Thomas – Parasol Lab, Department of Computer Science, Texas A&M University. What Will You Get from Class Ideas about parallel processing Different approaches to parallel programming Additional material in your classnotes 2 Table of Contents Introduction to Parallelism – What is Parallelism ? What is the Goal ? Introduction to Programming Models Shared Memory Programming Message Passing Programming Shared Memory Models PGAS Languages Other Programming Models Introduction to Parallelism Sequential Computing – Single CPU executes stream of instructions. Adapted from: http://www.llnl.gov/computing/tutorials/parallel_comp 3 Introduction to Parallelism Parallel computing – Partition problem into multiple, concurrent streams of instructions. Classification Flynn’s Taxonomy (1966-now) Nowadays SISD SIMD SPMD Single Instruction Single Instruction Single Program Single Data Multiple Data Multiple Data MISD MIMD MPMD Multiple Instructions Multiple Instructions Multiple Program Single Data Multiple Data Multiple Data • Execution models impact the above programming model • Traditional computer is SISD • SIMD is data parallelism while MISD is pure task parallelism • MIMD is a mixed model (harder to program) • SPMD and MPMD are less synchronized than SIMD and MIMD • SPMD is most used model, but MPMD is becoming popular 4 Introduction to Parallelism Goal of parallel computing – Save time - reduce wall clock time.
    [Show full text]
  • Kernel Threads
    CSMC 412 Operating Systems Prof. Ashok K Agrawala © 2019 Ashok Agrawala February 20 1 Threads & Concurrency Operating System Concepts – 10th Edition Silberschatz, Galvin and Gagne ©2018 Threads • Overview • Multicore Programming • Multithreading Models • Thread Libraries • Implicit Threading • Threading Issues • Operating System Examples February 20 Copyright 2018 Silberschatz, Gavin & Gagne 3 Objectives • To introduce the notion of a thread—a fundamental unit of CPU utilization that forms the basis of multithreaded computer systems • To discuss the APIs for the Pthreads, Windows, and Java thread libraries • To explore several strategies that provide implicit threading • To examine issues related to multithreaded programming • To cover operating system support for threads in Windows and Linux February 20 Copyright 2018 Silberschatz, Gavin & Gagne 4 Process PC … Address Space February 20 Copyright 2018 Silberschatz, Gavin & Gagne 5 Process Control Block (PCB) Information associated with each process (also called task control block) • Process state – running, waiting, etc • Program counter – location of instruction to next execute • CPU registers – contents of all process- centric registers • CPU scheduling information- priorities, scheduling queue pointers • Memory-management information – memory allocated to the process • Accounting information – CPU used, clock time elapsed since start, time limits • I/O status information – I/O devices allocated to process, list of open files February 20 Copyright 2018 Silberschatz, Gavin & Gagne 6
    [Show full text]
  • NSWI 0138: Advanced Unix Programming
    NSWI 0138: Advanced Unix programming (c) 2011-2016 Vladim´ırKotal (c) 2009-2010 Jan Pechanec, Vladim´ırKotal SISAL MFF UK, Malostransk´en´am.25, 118 00 Praha 1 Charles University Czech Republic Vladim´ırKotal [email protected] March 10, 2016 1 Vladim´ırKotal NSWI 0138 (Advanced Unix programming) Contents 1 Overview 5 1.1 What is this lecture about? . .5 1.2 The lecture will cover... .5 1.3 A few notes on source code files . .6 2 Testing 6 2.1 Why?...........................................6 2.2 When ? . .6 2.3 Types of testing . .7 3 Debugging 8 3.1 Debuging in general . .8 3.2 Observing . .9 3.3 Helper tools . .9 3.3.1 ctags . .9 3.3.2 cscope . 10 3.3.3 OpenGrok . 11 3.3.4 Other tools . 11 3.4 Debugging data . 11 3.4.1 stabs . 11 3.4.2 DWARF . 12 3.4.3 CTF (Compact C Type Format) . 12 3.5 Resource leaks . 13 3.6 libumem . 13 3.6.1 How does libumem work . 14 3.6.2 Using libumem+mdb to find memory leaks . 14 3.6.3 How does ::findleaks work . 16 3.7 watchmalloc . 17 3.8 Call tracing . 18 3.9 Using /proc . 19 3.10 Debugging dynamic libraries . 20 3.11 Debuggers . 20 3.12 Symbol search and interposition . 20 3.13 dtrace . 21 4 Terminals 21 4.1 Terminal I/O Overview . 21 4.2 Terminal I/O Overview (cont.) . 22 4.3 Physical (Hardware) Terminal . 24 4.4 stty(1) command . 24 4.5 TTY Driver Connected To a Phy Terminal .
    [Show full text]
  • Parallel Algorithms for Sparse Matrices in an Industrial Optimization Software
    JOHANNESKEPLER UNIVERSIT ATLINZ¨ Netzwerk f¨ur Forschung, Lehre und Praxis Parallel Algorithms for Sparse Matrices in an Industrial Optimization Software Master’s Thesis for obtaining the academic title Master of Science in Internationaler Univerisatslehrgang¨ Informatics: Engineering & Management composed at ISI-Hagenberg Handed in by: Kenji Miyamoto, 0756088 Fnished on: 3rd July, 2008 Scientific Management: A.Univ.-Prof. DI Dr.Wolfgang Schreiner Grade: Name of Grader: A.Univ.-Prof. DI Dr.Wolfgang Schreiner Hagenberg, July, 2008 Johannes Kepler Universit¨at A-4040 Linz · Altenbergerstraße 69 · Internet: http://www.uni-linz.ac.at · DVR 0093696 Abstract Optimization problems have an important role in industry, and the finite element method is a popular solution to solve optimization problems numerically. The finite element method rely on linear algebra, high performance linear equation solvera are there important topic in applied science. In this thesis, we study the high performance forward/backward substitution method by means of parallel computing. We implement various solutions and benchmark each of them in detail on two computers with different hardware architectures; one is a shared memory multicore machine, and the other one is a multicore machine with virtual shared memory machine. We tried two programming models, MPI and POSIX threading, and find the difference of these programming models by run benchmarks on two computers. We achieve good speedup by integrating some solutions. Acknowledgments. The author is grateful to Prof. Dr. Wolfgang Schreiner for his advice. The topic of this thesis is motivated by Dr. Peter Stadelmeyer and Dr. Gabor Bodnar of the RISC Software GmbH. A lot of advice were given by them.
    [Show full text]
  • POSIX Threads (Pthreads) Standard – Pthreads-Win32, POSIX Thread for Windows – Scheduler Activations (I.E
    Distributed Systems LEEC (2005/06 – 2º Sem.) Processes João Paulo Carvalho Universidade Técnica de Lisboa / Instituto Superior Técnico Outline • Processes and Threads –Overview – Processes, threads and fibers – Light weight processes • Client and Server Processes • Code migration • Software Agents • Case Studies J.P. Carvalho Sistemas Distribuídos 2005/2006 2 Processes Review • Multiprogramming versus multiprocessing • Kernel data structure: process control block (PCB) • Each process has an address space – Contains code, global and local variables.. • Process state transitions • Uniprocessor scheduling algorithms – Round-robin, shortest job first, FIFO, lottery scheduling, EDF • Performance metrics: throughput, CPU utilization, turnaround time, response time, fairness J.P. Carvalho Sistemas Distribuídos 2005/2006 3 Processes (2) Review - Scheduling • Priority queues: multiples queues, each with a different priority – Use strict priority scheduling – Example: page swapper, kernel tasks, real-time tasks, user tasks • Multi-level feedback queue – Multiple queues with priority – Processes dynamically move from one queue to another • Depending on priority/CPU characteristics – Gives higher priority to I/O bound or interactive tasks – Lower priority to CPU bound tasks – Round robin at each level J.P. Carvalho Sistemas Distribuídos 2005/2006 4 Processes and Threads • Processes – Typically independent – Carry considerable state information – Have separate address spaces – Interact only through system-provided inter-process communication mechanisms • Threads – Share the state information of a single process – Share memory and other resources directly • Context switching between threads in the same process is typically faster than context switching between processes. – Systems like Windows XP and OS/2 are said to have "cheap" threads and "expensive" processes, while in other operating systems there is not so big a difference.
    [Show full text]
  • Fibers Are Not (P)Threads the Case for Loose Coupling of Asynchronous Programming Models and MPI Through Continuations
    Fibers are not (P)Threads The Case for Loose Coupling of Asynchronous Programming Models and MPI Through Continuations Joseph Schuchart Christoph Niethammer José Gracia [email protected] [email protected] [email protected] Höchstleistungsrechenzentrum Höchstleistungsrechenzentrum Höchstleistungsrechenzentrum Stuttgart (HLRS) Stuttgart (HLRS) Stuttgart (HLRS) Stuttgart, Germany Stuttgart, Germany Stuttgart, Germany ABSTRACT multi- and many-core systems by exposing all available concur- Asynchronous programming models (APM) are gaining more and rency to a runtime system. Applications are expressed in terms of more traction, allowing applications to expose the available concur- work-packages (tasks) with well-defined inputs and outputs, which rency to a runtime system tasked with coordinating the execution. guide the runtime scheduler in determining the correct execution While MPI has long provided support for multi-threaded commu- order of tasks. A wide range of task-based programming models nication and non-blocking operations, it falls short of adequately have been developed, ranging from node-local approaches such supporting APMs as correctly and efficiently handling MPI com- as OpenMP [40] and OmpSs [13] to distributed systems such as munication in different models is still a challenge. Meanwhile, new HPX [27], StarPU [3], DASH [49], and PaRSEC [7]. All of them have low-level implementations of light-weight, cooperatively scheduled in common that a set of tasks is scheduled for execution by a set of execution contexts (fibers, aka user-level threads (ULT)) are meant to worker threads based on constraints provided by the user, either in serve as a basis for higher-level APMs and their integration in MPI the form of dependencies or dataflow expressions.
    [Show full text]
  • Unification of Lightweight Thread Solutions and Their Application in High Performance Programming Models
    UNIVERSITAT JAUME I DE CASTELLO´ ESCOLA DE DOCTORAT DE LA UNIVERSITAT JAUME I Unification of Lightweight Thread Solutions and their Application in High Performance Programming Models Castello´ de la Plana, July 2018 Ph.D. Thesis Presented by: Adrian´ Castello´ Gimeno Supervised by: Rafael Mayo Gual Antonio J. Pena~ Monferrer Programa de Doctorat en Informàtica Escola de Doctorat de la Universitat Jaume I Unification of Lightweight Thread Solutions and their Application in High Performance Programming Models Memòria presentada per Adrián Castelló Gimeno per optar al grau de doctor/a per la Universitat Jaume I. Adrián Castelló Gimeno Rafael Mayo Gual i Antonio J. Peña Monferrer Castelló de la Plana, Juliol de 2018 Agraïments Institucionals Esta tesi ha estat finançada pel projecte FP7 318793 “EXA2GREEN” de la Comisió Europea, i l’ajuda predoctoral FPI de la Generalitat Valenciana mijançant el programa Vali+D 2015 . Contents 1 Introduction 1 1.1 Motivation.........................................1 1.2 Objectives..........................................2 1.3 Structure of the Document................................3 2 Background 5 2.1 Introduction.........................................5 2.2 Operating System Threads................................6 2.2.1 POSIX Threads API................................6 2.3 Lightweight Threads....................................6 2.3.1 Converse Threads.................................7 2.3.2 MassiveThreads...................................8 2.3.3 Qthreads...................................... 11 2.3.4
    [Show full text]
  • V2616A Linux Software Manual
    V2616A Linux Software Manual First Edition, July 2014 www.moxa.com/product © 2014 Moxa Inc. All rights reserved. V2616A Linux Software Manual The software described in this manual is furnished under a license agreement and may be used only in accordance with the terms of that agreement. Copyright Notice © 2014 Moxa Inc. All rights reserved. Trademarks The MOXA logo is a registered trademark of Moxa Inc. All other trademarks or registered marks in this manual belong to their respective manufacturers. Disclaimer Information in this document is subject to change without notice and does not represent a commitment on the part of Moxa. Moxa provides this document as is, without warranty of any kind, either expressed or implied, including, but not limited to, its particular purpose. Moxa reserves the right to make improvements and/or changes to this manual, or to the products and/or the programs described in this manual, at any time. Information provided in this manual is intended to be accurate and reliable. However, Moxa assumes no responsibility for its use, or for any infringements on the rights of third parties that may result from its use. This product might include unintentional technical or typographical errors. Changes are periodically made to the information herein to correct such errors, and these changes are incorporated into new editions of the publication. Technical Support Contact Information www.moxa.com/support Moxa Americas Moxa China (Shanghai office) Toll-free: 1-888-669-2872 Toll-free: 800-820-5036 Tel: +1-714-528-6777 Tel: +86-21-5258-9955 Fax: +1-714-528-6778 Fax: +86-21-5258-5505 Moxa Europe Moxa Asia-Pacific Tel: +49-89-3 70 03 99-0 Tel: +886-2-8919-1230 Fax: +49-89-3 70 03 99-99 Fax: +886-2-8919-1231 Table of Contents 1.
    [Show full text]
  • Lifesize UVC Platform™ Third Party Licenses
    ® LifeSize UVC Platform™ Third Party Licenses This is the product of LifeSize a division of Logitech Copyright © 2013 and its licensors. All rights reserved. LifeSize is the trademark of Logitech. All other trademarks mentioned herein are the property of their respective owners. This product is shipped with software that has been licensed from other parties. Below is a list of some of that software. This product is licensed under the AVC patent portfolio license for the personal and non- commercial use of a consumer to (I) encode video in compliance with the AVC Standard ("AVC Video") and/or (ii) decode AVC video that was encoded by a consumer engaged in a personal and non-commercial activity and/or was obtained from a video provider licensed to provide AVC video. No license is granted or shall be implied for any other use. Additional information may be obtained from MPEG, L.L.C. See http://www.MPEGLA.com. This product is shipped with Wowza Media Server Software © 2006-2010 Wowza Media Systems, Inc. All rights reserved. WOWZA and related logos are registered trademarks of Wowza Media Systems, Inc. LifeSize Media Server is powered by Wowza Media Server Software. This product is shipped with software developed by the Apache Software Foundation (http://www.apache.org), Copyright © 1999 The Apache Software Foundation. All rights reserved. This product is shipped with certain Python software, Copyright © 2001-2006 Python Software Foundation. All rights reserved. This product is shipped with certain Pysolar software, Copyright © Joseph Kocherhans, Jacob Kaplan-Moss, Daniel Lindsley. All rights reserved. This product is shipped with certain Django software, Copyright © Django Software Foundation and individual contributors.
    [Show full text]
  • Analysis of Threading Libraries for High Performance Computing
    This is the author's version of an article that has been published in this journal. Changes were made to this version by the publisher prior to publication. The final version of record is available at http://dx.doi.org/10.1109/TC.2020.2970706 © 2019 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes,creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works. Analysis of Threading Libraries for High Performance Computing Adrian´ Castello´ Rafael Mayo Gual Sangmin Seo Pavan Balaji Universitat Jaume I Universitat Jaume I Ground X Argonne National Laboratory Castellon´ de la Plana, Spain Castellon´ de la Plana, Spain Seoul, Korea Lemmont, USA Email: [email protected] Email: [email protected] Email: [email protected] Email: [email protected] Enrique S. Quintana-Ort´ı Antonio J. Pena˜ Universitat Politecnica` de Valencia` Barcelona Supercomputing Center (BSC) Valencia,` Spain Barcelona, Spain Email: [email protected] Email: [email protected] Abstract—With the appearance of multi-/many core machines, of hardware parallelism may be inefficient. In response to applications and runtime systems evolved in order to exploit the this problem, dynamic scheduling and lightweight threads new on-node concurrency brought by new software paradigms. (LWTs) (also known as user-level threads, or ULTs) models POSIX threads (Pthreads) was widely-adopted for that purpose were first proposed in [5] in order to deal with the required and it remains as the most used threading solution in current levels of parallelism, offering more efficient management, hardware.
    [Show full text]
  • Linux-Unix-Programmierung – Das Umfassende Handbuch 1.435 Seiten, Gebunden, 4
    Wissen, wie’s geht. Leseprobe »Linux-Unix-Programmierung« deckt alle Bereiche ab, die für die Entwicklung von Anwendungen für die Linux-Welt wichtig sind, C-Kenntnisse vorausgesetzt. Diese Leseprobe enthält das vollstän- dige Kapitel 12, »Threads«. Außerdem können Sie das gesamte Inhaltsverzeichnis und den Index einsehen. Kapitel 12: »Threads« Inhaltsverzeichnis Index Die Autoren Leseprobe weiterempfehlen Jürgen Wolf, Klaus-Jürgen Wolf Linux-Unix-Programmierung – Das umfassende Handbuch 1.435 Seiten, gebunden, 4. Auflage 2016 49,90 Euro, ISBN 978-3-8362-3772-7 www.rheinwerk-verlag.de/3854 3772.book Seite 439 Montag, 11. Juli 2016 3:16 15 Kapitel 12 Threads Neben den Prozessen existiert noch eine andere Form der Programmaus- führung, die Linux unterstützt – die Threads, die auch als »leichtgewichtige« Prozesse bekannt sind. Mit der Thread-Programmierung können Sie Anwendungen schreiben, die erheblich schnel- ler und parallel ablaufen, und zwar gleichzeitig auf verschiedenen Prozessorkernen eines Computers. In diesem Kapitel erhalten Sie einen Einblick in die Thread-Programmierung unter Linux und erfahren, wie Sie diese Kenntnisse in der Praxis einsetzen können. 12 Hinweis Die Beispiele im Buch verwenden Pthreads und sind kompatibel zum plattformübergreifen- den POSIX-Standard. Früher gab es noch andere verbreitete Standards, darunter die soge- nannten »Linux-Threads«, die BSD-Threads, aber auch mehr kooperative Ansätze, wie die GNU Portable Threads. Diese Ansätze waren zum Teil völlig unterschiedlich und werden auch heute manchmal noch verwendet, gelten aber als überholt. Dennoch bleibt es Ihnen nicht erspart, Ihre Programme etwas anders zu übersetzen, und zwar mit diesem Compileraufruf: $ gcc -o thserver thserver.c -pthreads Der zusätzliche Parameter –pthreads setzt gleichzeitig verschiedene Präprozessoreinstellun- gen und fügt die Pthreads-Bibliothek der Linkliste hinzu.
    [Show full text]