Patents
US 8,752,018 B2#22319510 Most CitedActiveUnited States (USPTO)Utility

Emitting coherent output from multiple threads for printf

5Forward Citations (#22319510 Global)
0.4/yrCitation Velocity (#19421003 Global)
1.18Citation PageRank (#33069812 Global)
24Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

One embodiment of the present invention sets forth a technique for emitting coherent output from multiple threads for the printf( ) function. Additionally, parallel (not divergent) execution of the threads for the printf( ) function is maintained when possible to improve run-time performance. Processing of the printf( ) function is separated into two tasks, gathering of the per thread data and formatting the gathered data according to the formatting codes for display. The threads emit a coherent stream of contiguous segments, where each segment includes the format string for the printf( ) function and the gathered data for a thread. The coherent stream is written by the threads and read by a display processor. The display processor executes a single thread to format the gathered data according to the format string for display.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 24 · Forward citations: 5.

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A method of emitting coherent output from multiple execution threads, the method comprising: receiving a printf command for execution by multiple execution threads; for each execution thread of the multiple execution threads, examining contents of a printf string including a format string and data elements referenced by the printf command; for each execution thread of the multiple execution threads, determining a thread-specific amount of memory needed to store the contents of the printf string; allocating contiguous portions of memory in the thread-specific amounts for the multiple execution

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

References Cited — Backward Prior Art (24)

PatentTitleYearCitations
US 2004015884 A1Relocation format for linking—17
US 2005086644 A1Method and system for debugging a program—29
US 2005283781 A1Detecting data races in multithreaded computer programs—64
WO 2006/071337 A1Dynamic allocation of buffer across multiple clients in a threaded processor—3
US 2006174225 A1Debugging a High Level Language Program Operating Through a Runtime Engine—35
US 2006288332 A1Workflow debugger—69
US 2007150877 A1Image processing system and method employing a threaded scheduler—35
US 7,240,334 B1Methods, systems, and computer program products for deferred computer program tracing200713
US 2007288902 A1Replay debugging—49
US 2007288900 A1Atomic groups for debugging—19
US 7,603,544 B2Dynamic allocation of a buffer across multiple clients in multi-threaded processor without performing a complete flush of data associated with allocation20094
US 2009271775 A1Optimizing Just-In-Time Compiling For A Java Application Executing On A Compute Node—37
US 7,728,841 B1Coherent shader output for multiple targets201021
US 7,779,390 B1Thread-safe remote debugger201042
US 2011219360 A1Software debugging recommendations—50
GB 2,480,536 ATransferring data between central processors and graphics processors using buffers divided into sub-buffers—4
US 8,136,096 B1Backward post-execution software debugger201245
US 2012089812 A1Shared resource multi-thread processor array—126
US 8,234,635 B2Program processing device, parallel processing program, program processing method, parallel processing compiler, recording medium containing the parallel processing compiler, and multi-processor system201212
US 2012221808 A1Shared single-access memory with management of multiple parallel requests—11
US 8,266,609 B2Efficient placement of software transactional memory operations around procedure calls201225
US 2012317558 A1Binding executable code at runtime—17
US 2012317646 A1Virus co-processor instructions and methods for using such—8
US 8,561,041 B1Parallel execution of function calls in a graphical model201310

Non-Patent Literature (5)

  • Liu et al., "DTHREADS-Efficient Deterministic Multithreading", 2011 ACM, SOSP'11, Oct. 23-26, 2011, Cascais, Portugal; pp. 327-336; .
  • Liu et al., "DTHREADS—Efficient Deterministic Multithreading", 2011 ACM, SOSP'11, Oct. 23-26, 2011, Cascais, Portugal; pp. 327-336; <http://dl.acm.org/results.cfm?h=1&cfid=396631203&cftoken=47770437>.
  • Perrone et al., "The Design of an Output Data Collection Framework for NS-3", Proceedings of the 2013 Winter Simulation Conference, pp. 1-12; .
  • Perrone et al., "The Design of an Output Data Collection Framework for NS-3", Proceedings of the 2013 Winter Simulation Conference, pp. 1-12; <www.eg.bucknell.edu/˜perrone/wp-content/uploads/.../wsc2013-dcf.pdf>.
  • Suárez et al., "Performance Debugging of Parallel and Distributed Embedded Systems", 2000 IEEE, pp. 1-15; .