Emitting coherent output from multiple threads for printf
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)
- 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 ↗
Cited By — Indexed Forward Citations (5 of 5 total)
References Cited — Backward Prior Art (24)
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; .