Abstract:
A network interface card configuration method and a resource management center are provided. According to the method, after obtaining a network interface card allocation request of an operating system that runs in a first CPU core, a resource management center selects, from M physical network interface cards and based on a network parameter of a network service required by the operating system, a target physical network interface card that conforms to the network parameter. Further, the resource management center selects at least one target hardware queue from each target physical network interface card and sends a command message to a network interface card controller. After receiving queue information of the target hardware queue from the network interface card controller, the resource management center send an instruction message to a CPU controller on a CPU board to instruct the CPU controller to construct a virtual network interface card.
Abstract:
A core resource allocation method and apparatus, and a many-core system for allocating core resources of the many-core system are disclosed. In the method, after acquiring a quantity of idle cores needed for a user process, an execution core of the many-core system determine at least two scattered core partitions meeting the quantity, where each core partition is a set of one or multiple cores, and all cores in each core partition are idle cores. Then, the execution core combines the at least two scattered core partitions to form one continuous core partition, and allocates the formed continuous core partition to the user process. In this way, process interaction can be directly performed between different cores in a continuous core partition allocated to a user process, thereby improving efficiency of communication between processes. Furthermore, a waste of core resources can be effectively avoided.
Abstract:
A method and a device for managing memories in a node are provided. The method includes: setting an appointed memory module in a slave node as a key memory module, setting, in a primary node, a mirror memory module of the key memory module, where same data is stored in the key memory module and the mirror memory module; and implementing hot swap processing of the slave node or the key memory module by using the mirror memory module. In the embodiments of the present invention, mirroring is formed by the key memory module in the slave node and the mirror memory module in the primary node, and the hot swap processing of the slave node or the key memory module is implemented by using the mirror memory module. Thus hot swapping of a single memory module is supported.
Abstract:
A method and a related device for unlocking a smart lock are provided, and may be applied to an intelligent vehicle or a self-driving vehicle, to implement an unlocking function of a smart lock of the vehicle. The method includes: A terminal device monitors a distance change trend between the terminal device and an intelligent device, where the intelligent device includes a smart lock. If the terminal device determines that the terminal device is approaching the intelligent device and a distance between the terminal device and the intelligent device is less than a first distance threshold, the terminal device enables an identity authentication process between the terminal device and the intelligent device. The terminal device unlocks the smart lock when identity authentication between the terminal device and the intelligent device succeeds.
Abstract:
This application relates to the field of electronic technologies, and relates to a camera module, an anti-jitter component, and a terminal. The camera module includes an optical folding element, a lens group, and an image sensor that are sequentially arranged along an imaging light beam transmission direction. The camera module further includes a front-end anti-jitter component and a back-end anti-jitter component. The front-end anti-jitter component is connected to at least one of the optical folding element and the lens group. The back-end anti-jitter component is connected to the image sensor. The front-end anti-jitter component is configured to perform first jitter compensation on the imaging light beam and the back-end anti-jitter component is configured to perform second jitter compensation on the imaging light beam.
Abstract:
A device occupation method includes a first device that obtains information related to the first device or information related to a second device, where the second device occupies a first to-be-occupied device, and the first device prepares to occupy the first to-be-occupied device, and occupying, by the first device, the first to-be-occupied device when the information matches.
Abstract:
An active transaction list synchronization method and apparatus comprising a first node that records, in a transaction list incremental log buffer, a transaction list incremental log that is obtained after last active transaction list synchronization, where the transaction list incremental log indicates a change of a transaction recorded in an active transaction list of the first node and includes an added-transaction log and a committed-transaction log, wherein the added-transaction log indicates a transaction is added to the active transaction list, wherein the committed-transaction log indicates a transaction is deleted from the active transaction list. When performing group commit on transactions recorded in the committed-transaction log, the first node sends the transaction list incremental log to at least one second node.
Abstract:
Embodiments of the present disclosure provide a method, an apparatus, and a system for controlling a self-optimization switch. By using technical solutions provided in embodiments of the present disclosure, enabling and disabling of self-optimization can be controlled, and a state of the self-optimization switch can be obtained. A technical solution provided in embodiments of the present disclosure is as follows: a method for controlling a self-optimization switch includes: obtaining a target state of a self-optimization switch; and sending a setting command that includes the target state to a managed unit, where the setting command instructs the managed unit to change the state of the self-optimization switch to the target state.
Abstract:
A screen projection method includes synthesizing, by a first electronic device first image data and second image data based on a selected screen projection manner to generate synthesized image data, and outputting, by the first electronic device, the synthesized image data to a second electronic device by using the screen projection port to trigger the second electronic device to display synthesized images corresponding to the synthesized image data based on the selected screen projection manner.
Abstract:
A decoder including a receiver and a processor configured to receive an encoded bitstream containing a motion vector (MV) candidate index for a current block. The processor is coupled to the receiver, and configured to obtain precisions of candidate motion vectors (MVs) corresponding to neighboring blocks of the current block, perform first rounding of the precisions based on a rounding scheme, perform second rounding of the candidate MVs based on the first rounding, perform pruning of the candidate MVs, generate a candidate list based on the second rounding and the pruning, and select one of the candidate MVs from the candidate list for decoding the current block based on the MV candidate index.