# US 2018/0322605 A1 · Asynchronous ui framework

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2018/0322605 A1
- Document ID: US20180322605A1
- Status: Published application
- Kind: A1
- Application number: 15/587,341
- Filed: 2017-05-04
- Published: 2018-11-08
- Earliest claimed: 2017-05-04
- Assignees: Facebook, Inc.
- Applicants: Facebook, Inc.
- Inventors: Andrew Lankes Street; Jordan Christopher Walke; Ashwin Ravindra Bharambe; Lin He
- Web page: https://patentgrep.com/patent/US20180322605A1

## CPC

- G06T 1/20: Processor architectures; Processor configuration, e.g. pipelining
- G06F 9/3009: {Thread control instructions}
- G06F 9/3851: {from multiple instruction streams, e.g. multistreaming}
- G06F 9/3885: {using a plurality of independent parallel functional units}
- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Parallel processing of frames by a first and second thread is disclosed. In particular, the systems and methods can process multiple frames in a pipelines manner by a JavaScript thread and a UI thread. The system first executes a first frame by a JavaScript thread during a first time interval. The system then executes the first frame by a UI thread during a second time interval. While the UI thread is executing the first frame, the JavaScript thread executes a second thread in parallel during the second time internal. As a result, latency is added to UI processing while maintaining the same throughput, to add parallelism. The JavaScript and UI threads can be handled by different processors (e.g., using a multi-core processor), thereby adding further parallelism and increasing the efficiency of processing an event.

## Claims

### Claim 1

A computer-readable storage medium storing instructions that, when executed by a computing system, cause the computing system to perform operations for parallel processing of a first thread and a second thread, the operations comprising:
processing the first thread on a first processor over a first time interval, wherein the first thread is configured to process a first frame; and
processing the second thread on a second processor over a second time interval, wherein the second thread is configured to process the first frame,
wherein the first thread is configured to be implemented in parallel to the second thread over the second time interval such that the first thread processes a second frame.

### Claim 2 (depends on 1)

The computer-readable storage medium of claim 1 wherein the first thread is a JavaScript thread.

### Claim 3 (depends on 1)

The computer-readable storage medium of claim 1 wherein the first thread is a User Interface thread.

### Claim 4 (depends on 1)

The computer-readable storage medium of claim 1 wherein the first time interval and the second time interval are offset by a length of time.

### Claim 5 (depends on 4)

The computer-readable storage medium of claim 4 wherein the length of time is time taken to process the first frame or the second frame.

### Claim 6 (depends on 5)

The computer-readable storage medium of claim 5 wherein the time taken to process the first frame or the second frame is 16 milliseconds.

### Claim 7 (depends on 1)

The computer-readable storage medium of claim 1 wherein the first frame is rendered to a graphical user interface coupled to the first processor or the second processor.

### Claim 8

A method performed by a computing system having memory and a processor for parallel processing of a first thread and a second thread, comprising:
processing the first thread on the processor over a first time interval, wherein the first thread is configured to process a first frame; and
processing the second thread on the processor over a second time interval, wherein the second thread is configured to process the first frame,
wherein the first thread is configured to be implemented in parallel to the second thread over the second time interval such that the first thread processes a second frame.

### Claim 9 (depends on 8)

The method of claim 8 wherein the first thread is a JavaScript thread.

### Claim 10 (depends on 8)

The method of claim 8 wherein the first thread is a User Interface thread.

### Claim 11 (depends on 8)

The method of claim 8 wherein the first time interval and the second time interval are offset by a length of time.

### Claim 12 (depends on 11)

The method of claim 11 wherein the length of time is time taken to process the first frame or the second frame.

### Claim 13 (depends on 12)

The method of claim 12 wherein the time taken to process the first frame or the second frame is 16 milliseconds.

### Claim 14 (depends on 8)

The method of claim 8 wherein the first frame is rendered to a graphical user interface coupled to the processor.

### Claim 15

A system for processing a thread and a second thread in parallel, comprising:
at least one hardware processor coupled to a network; and,
a memory configured to store processor-executable components, wherein the processor-executable components further comprises:
a component configured to process the first thread on the processor over a first time interval, wherein the first thread is configured to process a first frame; and
a component configured to process the second thread on the processor over a second time interval, wherein the second thread is configured to process the first frame,
wherein the first thread is configured to be implemented in parallel to the second thread over the second time interval such that the first thread processes a second frame.

### Claim 16 (depends on 15)

The system of claim 15 wherein the first thread is a JavaScript thread.

### Claim 17 (depends on 15)

The system of claim 15 wherein the first thread is a User Interface thread.

### Claim 18 (depends on 15)

The system of claim 15 wherein the first time interval and the second time interval are offset by a length of time.

### Claim 19 (depends on 18)

The system of claim 18 wherein the length of time is time taken to process the first frame or the second frame.

### Claim 20 (depends on 15)

The system of claim 15 further comprising:
a graphical user interface to render the first frame or the second frame.
