WO2023174373A1 - Process scheduling method, apparatus, and device, and medium - Google Patents

Process scheduling method, apparatus, and device, and medium Download PDF

Info

Publication number
WO2023174373A1
WO2023174373A1 PCT/CN2023/081906 CN2023081906W WO2023174373A1 WO 2023174373 A1 WO2023174373 A1 WO 2023174373A1 CN 2023081906 W CN2023081906 W CN 2023081906W WO 2023174373 A1 WO2023174373 A1 WO 2023174373A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
usage scenario
time
real
state
Prior art date
Application number
PCT/CN2023/081906
Other languages
French (fr)
Chinese (zh)
Inventor
席宗虎
Original Assignee
北京罗克维尔斯科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京罗克维尔斯科技有限公司 filed Critical 北京罗克维尔斯科技有限公司
Publication of WO2023174373A1 publication Critical patent/WO2023174373A1/en

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W50/00Details of control systems for road vehicle drive control not related to the control of a particular sub-unit, e.g. process diagnostic or vehicle driver interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt

Definitions

  • the present disclosure relates to the field of smart car technology, and in particular, to a process scheduling method, device, equipment and medium.
  • the smart car vehicle controller needs to schedule various processes in its operating system in real time to complete the processing tasks of each process in a timely manner to ensure the normal operation of various functions of the smart car.
  • smart car vehicle controllers generally use a fixed and single scheduling strategy to implement process scheduling. Once the process scheduling is unreasonable, it will affect the operation of various functions of the smart car and bring danger or bad experience to users.
  • the present disclosure provides a process scheduling method, device, equipment and medium.
  • the present disclosure provides a process scheduling method, including:
  • the target process scheduling policy multiple processes created by the operating system of the target vehicle are scheduled.
  • the present disclosure provides a process scheduling device, including:
  • the first acquisition module is used to acquire the real-time operation behavior generated when the user operates the target vehicle;
  • the scene determination module is used to determine the target usage scenario corresponding to the target vehicle based on real-time operating behavior
  • the policy selection module is used to select the target process scheduling strategy used by the target vehicle in the target usage scenario among multiple preset process scheduling strategies;
  • the process scheduling module is used to schedule multiple processes created by the operating system of the target vehicle according to the target process scheduling policy.
  • the present disclosure provides a process scheduling device, including:
  • Memory used to store executable instructions
  • the processor is used to read executable instructions from the memory and execute the executable instructions to implement the process scheduling method of the first aspect.
  • the present disclosure provides a computer-readable storage medium that stores a computer program.
  • the processor implements the process scheduling method of the first aspect.
  • the present disclosure provides a computer program product, including a computer program or instructions.
  • the process scheduling method of the first aspect is implemented.
  • Figure 1 is a schematic flowchart of a process scheduling method provided by an embodiment of the present disclosure
  • Figure 2 is a schematic diagram of process state switching provided by an embodiment of the present disclosure
  • Figure 3 is a schematic diagram of switching usage scenarios provided by an embodiment of the present disclosure.
  • Figure 4 is a schematic diagram of a scheduling cycle provided by an embodiment of the present disclosure.
  • Figure 5 is a schematic structural diagram of a process scheduling device provided by an embodiment of the present disclosure.
  • Figure 6 is a schematic structural diagram of a process scheduling device provided by an embodiment of the present disclosure.
  • the term “include” and its variations are open-ended, ie, “including but not limited to.”
  • the term “based on” means “based at least in part on.”
  • the term “one embodiment” means “at least one embodiment”; the term “another embodiment” means “at least one additional embodiment”; and the term “some embodiments” means “at least some embodiments”. Relevant definitions of other terms will be given in the description below.
  • the smart car vehicle controller is the core control component of the entire smart car.
  • the vehicle controller is mainly used to implement various driving functions of smart cars and the operation of various audio and video functions.
  • the vehicle controller needs to reasonably schedule the processes corresponding to each function.
  • the smart car vehicle controller generally uses a fixed, single process scheduling strategy to schedule processes, such as:
  • first served policy that is, the process that is ready first is selected for each scheduling
  • Multi-priority scheduling strategy that is, selecting the highest priority process for each scheduling
  • Time slice rotation strategy that is, each process is moved to the schedule at a fixed time
  • a multi-level feedback queue strategy is to convert processes into domains for cascading.
  • the first level uses multi-priority scheduling, and the second level uses time slice rotation.
  • embodiments of the present disclosure provide a process scheduling method, device, equipment and medium.
  • Figure 1 shows a schematic flowchart of a process scheduling method provided by an embodiment of the present disclosure.
  • the process scheduling method can be executed by the vehicle controller.
  • the process scheduling method may include steps S110, S120, S130 and S140.
  • the target vehicle is a vehicle equipped with a vehicle controller.
  • the vehicle controller installed on the target vehicle can obtain the information generated when the user operates the target vehicle. real-time operational behavior.
  • the real-time operating behavior may be behavior related to safe driving and/or behavior related to entertainment experience.
  • the real-time operation behavior generated when the user operates the target vehicle may include a first real-time operation behavior, a second real-time operation behavior, a third real-time operation behavior and a fourth real-time operation behavior.
  • the first real-time operation behavior and the third real-time operation behavior may be behaviors related to safe driving; the second real-time operation behavior and the fourth real-time operation behavior may be behaviors related to entertainment experience.
  • the first real-time operation behavior may be an operation behavior for controlling the vehicle to drive.
  • the first real-time operation behavior may be the behavior of accelerating the vehicle to any speed, decelerating the vehicle to any speed, raising or lowering the window to any speed.
  • Status behavior, etc. are not limited here.
  • the first real-time operation behavior can be obtained through various sensors in the target vehicle, such as engine sensors, window sensors, etc.
  • the second real-time operation behavior may be an operation behavior for controlling the vehicle for entertainment.
  • the second real-time operation behavior may be the behavior of opening a music application, playing music, playing videos, etc., which are not limited here.
  • the second real-time operation behavior can be obtained through electronic devices in the target vehicle, such as vehicle-mounted terminals, vehicle-mounted microphones, etc.
  • the third real-time operation behavior may be an operation behavior used to control the vehicle to stop driving, such as the behavior of parking the vehicle.
  • the third real-time operation behavior can be obtained through various sensors in the target vehicle.
  • the fourth real-time operation behavior may be an operation behavior for controlling the vehicle to stop entertainment, such as closing a music application.
  • the behavior of turning off audio and video equipment is not limited here.
  • the fourth real-time operation behavior can be obtained through electronic devices in the target vehicle, such as vehicle-mounted terminals, vehicle-mounted microphones, etc.
  • the vehicle controller can determine the target usage scenario corresponding to the target vehicle based on the real-time operation behavior of the user.
  • the target usage scenario can be a usage scenario corresponding to the working state that the target vehicle enters due to the real-time operation behavior.
  • the target usage scenario may include an idle scenario, a first usage scenario, a second usage scenario, and a mixed usage scenario.
  • the idle scene can be a scene in which the user does not perform any operations on the target vehicle.
  • the working state of the target vehicle is an idle state.
  • the idle state means that the target vehicle is neither driving nor providing any entertainment services to the user.
  • the first usage scenario may be a scenario in which the user performs a driving operation on the target vehicle.
  • the working state of the target vehicle is a driving state.
  • the driving state refers to the target vehicle being driven, but does not provide any information to the user. Entertainment services.
  • the second usage scenario may be a scenario in which the user performs entertainment operations on the target vehicle.
  • the working state of the target vehicle is the entertainment state.
  • the entertainment state refers to that the target vehicle is not driving but is providing entertainment services to the user.
  • the mixed usage scenario can be a superposition of the first usage scenario and the second usage scenario.
  • the working state of the target vehicle is a mixed state.
  • the mixed state means that the target vehicle is driving and providing entertainment to the user at the same time. Serve.
  • the vehicle control can determine the working state of the target vehicle based on real-time operating behavior, and then dynamically match the appropriate usage scenario for the target vehicle.
  • the vehicle controller can select the target process used by the target vehicle in the target usage scenario among multiple preset process scheduling strategies. Scheduling strategy.
  • the preset process scheduling policy may be a process scheduling policy corresponding to each usage scenario that is formulated in advance according to different usage scenarios.
  • the process scheduling policies adopted in different usage scenarios should be related to the real-time operation behaviors involved in the usage scenarios. Furthermore, compared with other processes running in the usage scenario, the process scheduling policy adopted in the usage scenario more efficiently schedules the processes corresponding to the real-time operation behaviors involved in the usage scenario.
  • the processes corresponding to the behaviors related to safe driving involved in the usage scenario are more efficiently scheduled to ensure the user's driving safety; in the second usage scenario, the processes corresponding to the safe driving related behaviors involved in the usage scenario are The processes corresponding to the behaviors related to the entertainment experience are more efficiently scheduled to ensure the user's entertainment experience; in the mixed usage scenario, the processes corresponding to the behaviors related to safe driving involved in the usage scenario are scheduled more efficiently. Scheduling, and adaptive scheduling of processes corresponding to behaviors related to entertainment experience involved in the usage scenario, ensures the user's entertainment experience while ensuring the user's driving safety.
  • the processes corresponding to the real-time operation behaviors involved in the target usage scenario can be more efficiently scheduled, thereby ensuring the different experience needs of users in different target usage scenarios.
  • each process may include three states: active state, when the process is in this state, the instance corresponding to the process can be executed; suspend state, the process is preempted by other processes because of the CPU When the usage rights or its own running time is completed, the process will enter the suspended state and be loaded into the waiting pool (wopool); in the ready state, the process can be scheduled to enter the active state.
  • active state when the process is in this state, the instance corresponding to the process can be executed
  • suspend state the process is preempted by other processes because of the CPU
  • the process will enter the suspended state and be loaded into the waiting pool (wopool); in the ready state, the process can be scheduled to enter the active state.
  • FIG. 2 shows a schematic diagram of process state switching provided by an embodiment of the present disclosure.
  • the three states of the process can be switched through different events. For example, when the process is in the ready state, the process can be changed to the active state through the process exchange event; when the process is in the active state, The process can be changed to the suspended state through the end event; when the process is in the active state, the process can be changed to the ready state through the reload event; when the process is in the ready state, the process can be changed to the back event Suspended state; when a process is in a suspended state, the process can be changed to the ready state through a wake-up event.
  • the process exchange event when the process is in the active state, the process can be changed to the suspended state through the end event; when the process is in the active state, the process can be changed to the ready state through the reload event; when the process is in the ready state, the process can be changed to the back event Suspended state; when a process is in a suspended state, the process can be changed to the ready state through a wake-up event.
  • the preset process scheduling policy may be a predetermined scheduling policy for each state of the process corresponding to each function.
  • the first usage scenario may have a predefined first process scheduling policy
  • the second usage scenario may have a predefined second process scheduling policy
  • the mixed usage scenario may have a predefined mixed process scheduling policy
  • the vehicle controller can determine that the target vehicle is in the second usage scenario, and thus the vehicle control The processor will select the second process scheduling policy corresponding to the second usage scenario to schedule the states of different processes.
  • S140 According to the target process scheduling policy, schedule multiple processes that have been created by the operating system of the target vehicle.
  • the vehicle controller selects a target process scheduling policy for the target vehicle
  • multiple processes created by the operating system of the target vehicle can be scheduled based on the target process scheduling policy.
  • the multiple processes created by the operating system of the target vehicle may be processes corresponding to functions currently running on the target vehicle.
  • the target vehicle has already run the map function before the user performs the real-time operation behavior, the target vehicle has already created the map process before the user performs the real-time operation behavior.
  • the real-time operation behavior is the behavior of opening a music application and the map function is an entertainment function
  • the target vehicle still needs to run the music function.
  • the target vehicle has already created a map process and a music process. Since the music function is also an entertainment function, the target vehicle can be in an entertainment state, and the vehicle controller can determine that the target vehicle is in the second usage scenario. Therefore, the vehicle controller will select the second process scheduling strategy corresponding to the second usage scenario. Schedule the various states of the map process and music process.
  • the target usage scenario corresponding to the target vehicle can be determined based on the real-time operation behavior, and the target usage scenario corresponding to the target vehicle can be selected from multiple preset process scheduling strategies.
  • the target vehicle can be used for the usage scenarios that it is about to enter. Judgment, dynamically select a process scheduling strategy suitable for the usage scenario for the target vehicle, and complete subsequent process scheduling based on the selected process scheduling strategy to ensure user driving safety and improve user experience.
  • the vehicle controller can determine the target usage scenario corresponding to the target vehicle in various ways based on the real-time operation behavior. Two examples are used to illustrate below.
  • the vehicle controller can determine the target usage scenario corresponding to the target vehicle after acquiring the user's real-time operation behavior and based on the real-time operation behavior and historical operation behavior within a preset time period.
  • the preset time period may be a period of time preset as needed. For example, it can be within half an hour, within one hour, etc., and there is no limit here.
  • the historical operation behavior may be the operation behavior performed by the user on the target vehicle within a preset time period.
  • the following takes the preset time period of one hour as an example to illustrate the process of the vehicle controller determining the target usage scenario based on real-time operation behavior and historical operation behavior.
  • the vehicle controller when the vehicle controller obtains that the user's real-time operation behavior is the first real-time operation behavior, and queries that the user has no operation behavior within an hour or has historical operation behavior but all belong to the first real-time operation behavior, at this time, the entire vehicle controller
  • the vehicle controller may determine that the working state of the target vehicle is a driving state, that is, the target vehicle is in the first usage scenario at this time.
  • the vehicle controller when the vehicle controller obtains that the user's real-time operation behavior is the second real-time operation behavior, and queries that the user has no operation behavior within one hour or has historical operation behavior but all belong to the second real-time operation behavior, at this time, The vehicle controller can determine that the working state of the target vehicle is the entertainment state, that is, the target vehicle is in the second usage scenario at this time.
  • the vehicle controller when the vehicle controller obtains that the user's real-time operation behavior is the first real-time operation behavior, and queries that the user has historical operation behavior within one hour and there is an operation behavior that belongs to the second real-time operation behavior, at this time, the entire vehicle controller The vehicle controller can determine that the working state of the target vehicle is a mixed state, that is, the target vehicle is in a mixed use scenario at this time.
  • the vehicle controller when the vehicle controller obtains that the user's real-time operation behavior is the third real-time operation behavior, and queries that the user has historical operation behavior within one hour and there is an operation behavior that belongs to the second real-time operation behavior, at this time, the entire vehicle controller The vehicle controller may determine that the working state of the target vehicle is the entertainment state, that is, the target vehicle is in the second usage scenario at this time.
  • the vehicle controller when the vehicle controller obtains that the user's real-time operation behavior is the fourth real-time operation behavior, and queries that the user has historical operation behavior within one hour and there is an operation behavior that belongs to the first real-time operation behavior, at this time, the entire vehicle controller The vehicle controller may determine that the working state of the target vehicle is a driving state, that is, the target vehicle is in the first usage scenario at this time.
  • the vehicle controller can directly determine the target usage scenario that the target vehicle is about to enter based on the user's operating behavior, and dynamically select a process scheduling strategy suitable for the usage scenario for the target vehicle based on the desired usage scenario.
  • the selected process scheduling strategy completes subsequent process scheduling and reasonably schedules processes to ensure user driving safety and improve user experience.
  • the vehicle controller may first obtain the real-time usage scenario where the target vehicle is currently located, and then determine the target usage scenario corresponding to the target vehicle based on the real-time usage scenario and real-time operation behavior.
  • the process scheduling method may further include: obtaining the real-time usage scenario where the target vehicle is currently located.
  • the vehicle controller can update the usage scenario of the target vehicle based on the user's operation behavior. Therefore, the vehicle controller can obtain its latest stored target vehicle of Usage scenario, as the real-time usage scenario where the target vehicle is currently located.
  • S120 may specifically include: determining the target usage scenario that the target vehicle is about to enter based on the real-time usage scenario and real-time operation behavior.
  • the vehicle controller can determine the target usage scenario that the target vehicle is about to enter based on the real-time usage scenario and the acquired real-time operating behavior of the user.
  • the target usage scenario may be a usage scenario corresponding to the working state that the target vehicle is about to enter based on the real-time usage scenario and the acquired real-time operation behavior of the user.
  • the target usage scenario is determined to be a mixed usage scenario; if the real-time usage scenario is a mixed usage scenario and the real-time operation behavior type is the third real-time operation behavior and/or the fourth real-time operation behavior, then the target usage scenario is determined.
  • the scene is the scene after removing the usage scenario corresponding to the third real-time operation behavior and/or the fourth real-time operation behavior from the overlay scene; if the real-time usage scenario is the first usage scenario and the real-time operation behavior type is the third real-time operation behavior, then The target usage scenario is determined to be an idle scenario; if the real-time usage scenario is the second usage scenario and the real-time
  • FIG. 3 shows a schematic diagram of switching usage scenarios provided by an embodiment of the present disclosure.
  • different usage scenarios can be switched through different real-time operation behavior types. For example, when the usage scenario of the target vehicle is an idle scene, if the real-time operation behavior type is the first real-time operation behavior, then the target vehicle The usage scenario can be switched to the first usage scenario.
  • the usage scenario of the target vehicle can be switched to the second usage scenario; when the usage scenario of the target vehicle is the first usage scenario , if the real-time operation behavior type is the second real-time operation behavior, the usage scenario of the target vehicle can be switched to the mixed usage scenario at this time; if the real-time operation behavior type is the third real-time operation behavior, the usage scenario of the target vehicle can be switched to idle at this time Scenario: When the usage scenario of the target vehicle is the second usage scenario, if the real-time operation behavior type is the first real-time operation behavior, the usage scenario of the target vehicle can be switched to a mixed usage scenario. If the real-time operation behavior type is the fourth real-time operation behavior, Operation behavior.
  • the usage scenario of the target vehicle can be switched to the idle scenario; when the real-time usage scenario of the target vehicle is a mixed scenario, if the real-time operation behavior type is the fourth real-time operation behavior, the usage scenario of the target vehicle can be switched to In the first usage scenario, if the real-time operation behavior type is the third real-time operation behavior, the usage scenario of the target vehicle can be switched to the second usage scenario at this time.
  • the vehicle controller can first detect the current real-time usage scenario of the target vehicle, and combine it with the real-time operation behavior to determine the target usage scenario that the target vehicle is about to enter, so as to dynamically select a suitable vehicle for the target vehicle.
  • the process scheduling method may further include: updating the real-time usage scenario to the target usage scenario.
  • the vehicle controller after the vehicle controller determines the target usage scenario that the target vehicle is about to enter based on the current real-time usage scenario and real-time operation behavior of the target vehicle, the vehicle controller can also update the real-time usage scenario to the target scenes to be used.
  • the vehicle controller can determine that the target usage scenario that the target vehicle is about to enter is a mixed usage scenario based on real-time operating behaviors such as playing music.
  • the vehicle controller may update the real-time usage scenario of the target vehicle from the first usage scenario to the mixed usage scenario to determine that the target vehicle has currently entered and is in the mixed usage scenario.
  • the vehicle controller can update the usage scenario where the target vehicle is located, and then cooperate with the real-time operation behavior to accurately determine the target usage scenario that the target vehicle is about to enter, ensuring that the process schedule can be correctly selected for the target vehicle. Strategy.
  • the vehicle controller can further subdivide the calling status of the usage scenario in which the vehicle is located, and dynamically select a more precise process scheduling strategy for the vehicle according to different calling statuses.
  • the preset process scheduling policy may further be a process scheduling policy corresponding to each calling state that is formulated in advance according to each calling state in different usage scenarios.
  • any calling state under the first usage scenario can have different predetermined first process scheduling strategies; any calling state under the second usage scenario can have different predetermined second process scheduling strategies; any calling state under mixed usage scenarios can have different predetermined second process scheduling strategies.
  • Call states can have different pre-established mixed process scheduling policies.
  • the process scheduling method may further include: obtaining real-time vehicle data of the target vehicle; and determining the target calling state of the target vehicle in the target usage scenario based on the real-time vehicle data.
  • S130 may specifically include: selecting a target process scheduling strategy used by the target vehicle when it is in the target calling state in the target usage scenario among multiple preset process scheduling strategies.
  • the vehicle controller can also obtain the real-time vehicle data of the target vehicle, and determine the target vehicle based on the real-time vehicle data. Based on the target calling state in the target usage scenario, and then select the corresponding target process scheduling policy that has been formulated in advance for the target calling status in the target usage scenario among multiple preset process scheduling strategies, so as to determine the target process scheduling policy based on the target process scheduling policy.
  • the target vehicle's operating system has created multiple processes for scheduling.
  • the real-time vehicle data corresponding to the target vehicle may include real-time driving speed, and the real-time driving speed of the target vehicle may be directly obtained by the speed sensor of the target vehicle, The accuracy of the obtained real-time driving speed can reach 0.01km/h.
  • the target calling state of the target vehicle in the target usage scenario may include a first calling state, and the first calling state refers to the calling state in the first usage scenario.
  • determining the target calling state of the target vehicle in the target usage scenario may specifically include: determining the target speed range within which the real-time driving speed falls among multiple preset speed ranges; The calling state corresponding to the target speed range is used as the first calling state of the target vehicle in the first usage scenario.
  • the vehicle controller may, after obtaining the real-time driving speed of the target vehicle, determine the speed range in which the real-time driving speed falls within multiple preset speed ranges. , and use the speed range within which the real-time driving speed falls as the target speed range, and then use the calling status corresponding to the target speed range as the target speed range.
  • the first calling state of the target vehicle in the first usage scenario may, after obtaining the real-time driving speed of the target vehicle, determine the speed range in which the real-time driving speed falls within multiple preset speed ranges. , and use the speed range within which the real-time driving speed falls as the target speed range, and then use the calling status corresponding to the target speed range as the target speed range.
  • the first calling state of the target vehicle in the first usage scenario may, after obtaining the real-time driving speed of the target vehicle, determine the speed range in which the real-time driving speed falls within multiple preset speed ranges. , and use the speed range within which the real-time driving speed falls as the target speed range, and then use the calling status
  • the preset speed range may be a preset speed range used to determine the calling state of the target vehicle in the first usage scenario.
  • the first calling state may include a static calling state, a low-speed calling state, a normal calling state, and a high-speed calling state.
  • a calling state in the first usage scenario may correspond to a preset speed range.
  • the first preset speed range corresponds to the static calling state
  • the second preset speed range corresponds to the low speed calling state
  • the third preset speed range corresponds to the normal calling state
  • the fourth preset speed range corresponds to the high speed calling state.
  • the vehicle controller can determine the target calling state of the target vehicle based on the real-time driving speed, and based on the first usage scenario and the target calling state Selecting a process scheduling strategy for the target vehicle makes the selected process scheduling strategy more accurate, scheduling the process more reasonable, ensuring the safety of the user's driving and improving the user experience.
  • the real-time vehicle data corresponding to the target vehicle may include a real-time computing power value.
  • the target calling state of the target vehicle in the target usage scenario may include a second calling state, and the second calling state refers to the calling state in the second usage scenario.
  • the target calling state in the second usage scenario may include the second calling state.
  • determining the target calling state of the target vehicle in the target usage scenario may specifically include: determining the target computing power within which the real-time computing power value falls within multiple preset computing power ranges. Range; use the calling state corresponding to the target computing power range as the second calling state of the target vehicle in the second usage scenario.
  • the vehicle controller when the target vehicle is in the second usage scenario, can determine where the real-time computing power value falls within multiple preset computing power ranges after obtaining the real-time computing power value of the target vehicle. enter the computing power range, and use the computing power range in which the real-time computing power value falls as the target computing power range, and then use the calling state corresponding to the target computing power range as the second calling of the target vehicle in the second usage scenario. state.
  • the preset computing power range may be a preset computing power range used to determine the calling state of the target vehicle in the second usage scenario.
  • the second calling state may include a low computing power state and a high computing power state.
  • a calling state in the second usage scenario can correspond to a preset computing power range.
  • the first preset computing power range corresponds to a low computing power state
  • the second preset computing power range corresponds to a high computing power state.
  • the vehicle controller can determine the target calling status of the target vehicle based on the real-time computing power value, and based on the second usage scenario and the target calling The state selects a process scheduling strategy for the target vehicle, making the selected process scheduling strategy more accurate, scheduling the process more reasonably, ensuring the safety of the user's driving, and improving the user experience.
  • the real-time vehicle data corresponding to the target vehicle may include real-time driving speed and real-time computing power value.
  • the target calling state of the target vehicle in the target usage scenario may include a first calling state and a second calling state.
  • the real-time vehicle data and each call status are similar to the above-mentioned first usage scenario and second usage scenario, and will not be repeated here. narrate.
  • determining the target calling state of the target vehicle in the target usage scenario includes: determining the target speed range within which the real-time driving speed falls in multiple preset speed ranges; The calling state corresponding to the speed range is used as the first calling state of the target vehicle in the first usage scenario; based on the first calling state and the real-time computing power value, the second calling state of the target vehicle in the second usage scenario is determined. .
  • the vehicle controller when the target vehicle is in a mixed usage scenario, the vehicle controller will obtain the real-time driving speed and real-time computing power value of the target vehicle respectively, and then determine the target vehicle's location in the first usage scenario based on the real-time driving speed. and determine the second calling state of the target vehicle in the second usage scenario based on the first calling state and the real-time computing power value.
  • Determining the first calling state of the target vehicle in the first usage scenario based on the real-time driving speed is similar to the above-mentioned first usage scenario, and will not be described again here.
  • determining the second calling state of the target vehicle in the second usage scenario may specifically include: in the case where the first calling state belongs to the first type of calling state, based on The real-time computing power value determines the second calling state; when the first calling state belongs to the second type of calling state, the preset calling state is used as the second calling state; when the first calling state belongs to the third type of calling state , the second call status is set to the call prohibited status.
  • the vehicle controller may first determine which type of calling state the first calling state belongs to, where the first type of calling state may include a static calling state and a low-speed calling state.
  • the second type of call status may include a normal call status.
  • the third type of call state may include a high-speed call state.
  • the preset calling state can be a calling state in any second usage scenario that is preset as needed, such as a high computing power state.
  • the vehicle controller can set the second call state to the call prohibited state. In the call prohibited state, the vehicle controller does not control the process corresponding to the second usage scenario. Make the call.
  • the vehicle controller can apply the process calling policy corresponding to the first usage scenario and the first calling state to the process corresponding to the first usage scenario, and apply the process calling policy corresponding to the second usage scenario and the second calling state to the process The process corresponding to the second usage scenario.
  • the process corresponding to the first usage scenario is the process of the function corresponding to the first usage scenario
  • the process corresponding to the second usage scenario is the process of the function corresponding to the second usage scenario.
  • the vehicle controller can determine different calling states under different usage scenarios, and then select different process calling strategies for the processes corresponding to different usage scenarios. , ensuring users’ driving safety and improving user experience.
  • the above-mentioned real-time computing power value of the target vehicle can be calculated and obtained by the calculation example statistics process of the vehicle controller.
  • obtaining the real-time computing power value of the target vehicle may specifically include: creating an example statistics process; counting its own operating data through the example statistics process; and calculating the real-time computing power value corresponding to the operating data through the example statistics process.
  • the vehicle controller when the target usage scenario corresponding to the target vehicle is the second usage scenario, the vehicle controller will create a calculation example statistics process, and then the calculation example statistics process can count its own running data and calculate the statistics based on the statistical running data. , combined with the preset computing power value calculation formula, calculates the real-time computing power value corresponding to the target vehicle.
  • the calculation example statistics process can be used to calculate the real-time computing power value of the target vehicle in the second usage scenario.
  • the calculation example statistics process will be automatically created and run when the target vehicle enters the second usage scenario.
  • the running data of the calculation example statistics process statistics can be the execution time data of the calculation example statistics process itself, for example, the time t1 when the calculation example statistics process starts execution, the time t2 when it stops execution, and the time t3 when it starts execution again.
  • the preset computing power value calculation formula used to calculate the real-time computing power value tw may be:
  • the vehicle controller can accurately calculate the real-time computing power value of the target vehicle through the calculation example statistical process, so as to improve the accuracy of selecting the process scheduling strategy and achieve reasonable process scheduling. Scheduling ensures users’ driving safety and improves user experience.
  • the vehicle controller can execute different process scheduling strategies based on different usage scenarios and different calling states, which will be described in detail below.
  • the vehicle controller may call the process corresponding to the first usage scenario based on the target process scheduling policy corresponding to the first calling state.
  • the vehicle controller may call the process corresponding to the second usage scenario based on the target process scheduling policy corresponding to the second calling state.
  • the vehicle controller can call the process corresponding to the first usage scenario based on the target process scheduling policy corresponding to the first calling state and the process corresponding to the second calling state.
  • the target process scheduling policy calls the process corresponding to the second usage scenario.
  • the processes corresponding to the first usage scenario and the second usage scenario can be executed cyclically in sequence through the hybrid process scheduling policy.
  • the vehicle controller schedules multiple processes created by the operating system of the target vehicle according to the target process scheduling policy, which may specifically include: determining the process corresponding to the first calling state.
  • Time allocation data the time allocation data includes the total running time of the first process in each scheduling cycle of the first usage scenario and the total running time of the second process in each scheduling cycle of the second usage scenario; in each scheduling cycle , based on the total running time of the first process, according to the target process scheduling policy corresponding to the first calling state, schedule the process corresponding to the first usage scenario; in each scheduling cycle, based on the total running time of the second process, according to the second calling state
  • the corresponding target process scheduling policy schedules the process corresponding to the second usage scenario.
  • the vehicle controller can create multiple scheduling cycles for the target vehicle, and each scheduling cycle is divided into two time periods. One time period is used to schedule multiple processes in the first usage scenario, and the second time period is used to schedule multiple processes in the second usage scenario. Therefore, the vehicle controller can first schedule the process in each scheduling cycle. Multiple processes in the first usage scenario are scheduled, and then multiple processes in the second usage scenario are scheduled. This cycle repeats to achieve scheduling of each process.
  • Figure 4 shows a schematic diagram of a scheduling cycle provided by an embodiment of the present disclosure.
  • the scheduling cycle is divided into a first time period and a second time period.
  • the first time period corresponds to the first usage scenario and has the total running time of the first process wotime
  • the second time period corresponds to In the second usage scenario and has the second total running time of the process entime.
  • the total duration of the scheduling cycle, the total running duration of the first process, and the total running duration of the second process can be preset as needed, as long as the total running duration of the first process is equal to the total running duration of the second process.
  • the sum of the total running time is equal to the total time of the scheduling cycle and the total running time of the second process is greater than the minimum time entimemin set in advance according to needs.
  • the target vehicle when the target vehicle is in a mixed use scenario, if the first calling state is the first type of calling state, that is, the first calling state is a stationary state or a low-speed state, the total running time of the first process is wotime, and the second calling state is wotime.
  • the total running time of the process is entime; if the first calling state is the second type of calling state, that is, the first calling state is the normal state, then the total running time of the first process is wotime, and the total running time of the second process is entimemin; if the first calling state is the normal state, the total running time of the first process is wotime, and the total running time of the second process is entimemin.
  • the calling state is the third type of calling state, that is, the first calling state is the high-speed state, then the total running time of the first process is wotime, and the total running time of the second process is 0, that is, the second calling state is set to the call prohibited state.
  • the vehicle controller can schedule the process corresponding to the first usage scenario in the first time period based on the target process scheduling policy corresponding to the first calling state; vehicle control The server can schedule the process corresponding to the second usage scenario in the second time period according to the target process scheduling policy corresponding to the second calling state.
  • the vehicle controller when the target vehicle is in a mixed usage scenario, can reasonably schedule the processes of the target vehicle in different usage scenarios by configuring each scheduling cycle to ensure the user's driving safety. Security, improve user experience.
  • the specific method for the vehicle controller to call the process corresponding to the first usage scenario based on the target process scheduling policy corresponding to the first calling state may be: the first calling state includes the first state or the second state.
  • the process corresponding to the first usage scenario is scheduled according to the process running time and process suspension time corresponding to the first calling state; when the first calling state includes the third state or the fourth state, the process is scheduled according to the first calling state
  • the corresponding process running time, process suspension time and process priority of each process are used to schedule multiple processes corresponding to the first usage scenario.
  • the first calling state in the first usage scenario may include a first state, a second state, a third state, and a fourth state.
  • the vehicle controller may schedule the first call state according to the process running time and process suspension time corresponding to the first call state. Each process corresponding to the usage scenario.
  • the real-time driving speed of the target vehicle is in the first preset speed range: 0km/h-0km/h, and the process running time of the process is set to s0ts and the process suspension time is set to s0sts.
  • Step 1 Get the process from the head of the first usage scenario process queue. Create a process and set the process to the active state; Step 2: After the process runs for s0ts time, set the process to the suspended state and put it into the waiting pool; Step 3: Then traverse the waiting pool and put the suspended state into the waiting pool. Processes whose start time exceeds s0sts are placed at the end of the first usage scenario process queue; Step 4: Repeat Step 1. At this time, the CPU of the target vehicle is in energy-saving mode.
  • the real-time driving speed of the target vehicle is in the second preset speed range: 1km/h-40km/h
  • the process running time of the process is set to pts and the process suspension time is psts.
  • Step 1 Take out a process from the head of the process queue of the first usage scenario, and set the process to the active state
  • Step 2 When the process is running, the process running time After pts time, set the process to suspended state and put it into the waiting pool
  • Step 3 Then traverse the waiting pool, and put the processes that have been suspended for longer than psts into the end of the first usage scenario process queue
  • Step 4 Repeat step one.
  • the target vehicle's CPU is in normal mode.
  • the vehicle controller can determine the process running time, process suspending time and each process according to the first calling state.
  • the process priority is used to schedule the process corresponding to the first usage scenario.
  • the process priority of each process may be calculated according to the priority calculation formula.
  • the priority calculation formula is:
  • speed represents the real-time driving speed
  • prior represents the priority of the process
  • lprior represents the preset lowest priority of the process
  • hprior represents the preset highest priority of the process
  • pts represents the process.
  • the process running time psts represents the process suspension time of the process
  • spmax represents the maximum speed of the current state
  • spmin represents the minimum speed of the current state
  • dsmax represents the maximum speed that the target vehicle can reach.
  • process p1 and process p2 when the real-time driving speed speed of the target vehicle is within the first range, that is, 0 ⁇ speed ⁇ spmin, at this time, the priority of process p1 and process p2 is their respective lowest priority,
  • the priority size between process p1 and process p2 is judged based on the size of the lowest priority lprior corresponding to process p1 and the lowest priority lprior corresponding to process p2. It should be noted that the lowest priority lprior and the highest priority lprior corresponding to each process The priorities hprior are not the same.
  • the real-time driving speed of the target vehicle is in the third preset speed range: 40km/h-120km/h.
  • Step 1 Remove all processes from the first usage scenario process queue, calculate the priority priority size of each process, and arrange them in descending order according to the priority, and place them in order. Enter first Use the tail of the scenario process queue; Step 2: Take out a process from the head of the first usage scenario process queue and set the process to the active state; Step 3: Execute process p1 until a time accumulation (tick) event outside the process occurs ; Step 4: Take process p2 from the first usage scenario process queue, and calculate the priority priority of p1 and p2 according to the priority calculation method.
  • a process swap (swap) event occurs and execute Process p2; if the priority of p2 is less than the priority of p1, perform step five; step five: count the running time ts of process p1, if ts is less than pts, continue to execute process p1; step six: such as the running time of process p1 When pts is reached, set process p1 to the suspended state and put it into the waiting pool; Step 7: Then traverse the waiting pool, and put the processes that have been suspended for longer than psts into the end of the first usage scenario process queue; Step 8: Repeat step one. At this time, the CPU of the target vehicle is in energy-saving mode.
  • the real-time driving speed of the target vehicle is in the fourth preset speed range: 120km/h-240km/h.
  • the vehicle controller's process scheduling method is: Step 1: Take out all processes from the first usage scenario process queue, calculate the priority priority size of each process, and arrange them in descending order according to the priority, and put them in order.
  • the tail of the process queue of the first usage scenario Step 2: Take out a process from the head of the process queue of the first usage scenario and set the process to the active state;
  • Step 3 Execute the process until the preset reload (yeild) inside the process occurs ) event;
  • Step 4 Set the process to the ready state and put it at the end of the first usage scenario process queue;
  • Step 5 Repeat Step 1.
  • the CPU of the target vehicle is in energy-saving mode.
  • the vehicle controller sets the process to a suspended state and puts the process into the waiting pool.
  • the specific method for the vehicle controller to call the process corresponding to the second usage scenario based on the target process scheduling policy corresponding to the second calling state may be: when the second calling state includes the fifth state, according to The process parameters of each process corresponding to the second calling state are used to schedule the process corresponding to the second usage scenario; when the second calling state includes the sixth state, the second usage scenario is scheduled according to the process running time corresponding to the second usage scenario. corresponding process.
  • the second calling state in the second usage scenario may include: a fifth state and a sixth state.
  • some parameters can be preset for each process, such as the maximum process running time tsmax, the minimum process running time tsmin, and the calculation formula for the process running time in the fifth state.
  • the process running time in the sixth state is t1ts.
  • the calculation formula of the process running time t is:
  • tw is the computing power value
  • twthr is the range critical value between the first preset computing power range and the second preset computing power range.
  • the vehicle controller can calculate the process running time of each process according to the process parameters of each process corresponding to the second calling state, and then schedule the third calling state. 2. Processes corresponding to usage scenarios.
  • the real-time computing power value is in the first preset computing power range: 0-70, and the range threshold between the first preset computing power range and the second preset computing power range is 70. .
  • Step 1 Take out a process from the head of the second usage scenario process queue;
  • Step 2 Calculate the process running time t of the process;
  • Step 3 The process runs After the process has been running for t time, the process is placed at the end of the process queue of the second usage scenario;
  • Step 4 Repeat Step 1.
  • the vehicle controller schedules the process corresponding to the second usage scenario according to the running time of the process corresponding to the second calling state.
  • the real-time computing power value is in the second preset computing power range: 70-200.
  • Step 1 Take out a process from the head of the second usage scenario process queue
  • Step 2 After the process runs for t1ts, put the process into the second Use the tail of the scene process queue
  • Step 3 Repeat Step 1.
  • the vehicle controller can complete process scheduling based on different process scheduling strategies selected by it, ensuring the safety of the user's driving and improving the user experience.
  • Figure 5 shows a schematic structural diagram of a process scheduling device provided by an embodiment of the present disclosure.
  • the process scheduling device may be provided in the vehicle controller.
  • the process scheduling device 500 may include a first acquisition module 510 , a scenario determination module 520 , a strategy selection module 550 and a process scheduling module 540 .
  • the first acquisition module 510 may be used to acquire the real-time operation behavior generated when the user operates the target vehicle.
  • the scene determination module 520 may be used to determine the target usage scenario corresponding to the target vehicle based on real-time operating behavior.
  • the policy selection module 550 may be used to select a target process scheduling strategy used by the target vehicle in the target usage scenario among multiple preset process scheduling strategies.
  • the process scheduling module 540 may be used to schedule multiple processes created by the operating system of the target vehicle according to the target process scheduling policy.
  • the target usage scenario corresponding to the target vehicle can be determined based on the real-time operation behavior, and the target usage scenario corresponding to the target vehicle can be selected from multiple preset process scheduling strategies.
  • the process scheduling device 500 may further include a second acquisition module.
  • the second acquisition module may be used to obtain the real-time usage scenario where the target vehicle is currently located before determining the target usage scenario corresponding to the target vehicle based on the real-time operating behavior.
  • the scene determination module 520 may include a first determination unit.
  • the scene determination unit can be used to determine the target usage scenario that the target vehicle is about to enter based on the real-time usage scenario and real-time operation behavior.
  • the process scheduling device 500 may also include a scene change module.
  • the scenario change module can be used to update the real-time usage scenario to the target usage scenario.
  • the process scheduling device 500 may further include a third acquisition module and a status determination module.
  • the third acquisition module may be used to acquire real-time vehicle data of the target vehicle.
  • the status determination module can be used to determine the target calling status of the target vehicle in the target usage scenario based on real-time vehicle data.
  • the policy selection module 550 may include a second determination unit.
  • the policy determination unit may be used to select a target process scheduling strategy used by the target vehicle when it is in a target calling state under a target usage scenario among multiple preset process scheduling strategies.
  • the target usage scenario may include the first usage scenario
  • the real-time vehicle data may include real-time driving speed
  • the target call status may include the first call status
  • the status determination module may include a third determination unit and a first change unit.
  • the third determination unit may be used to determine a target speed range in which the real-time driving speed falls among a plurality of preset speed ranges.
  • the first changing unit may be used to use the calling state corresponding to the target speed range as the first calling state of the target vehicle in the first usage scenario.
  • the target usage scenario may include a second usage scenario
  • the real-time vehicle data may include real-time computing power values
  • the target call status may include a second call status
  • the status determination module may further include a fourth determination unit and a second modification unit.
  • the fourth determination unit may be used to determine a target computing power range within which the real-time computing power value falls within a plurality of preset computing power ranges.
  • the second changing unit may be used to use the calling state corresponding to the target computing power range as the second calling state of the target vehicle in the second usage scenario.
  • the target usage scenario may include a mixed usage scenario having both the first usage scenario and the second usage scenario
  • the real-time vehicle data may include real-time driving speed and real-time computing power value
  • the target call status may include the first calling state and second calling state.
  • the status determination module may further include a fifth determination unit, a third change unit, and a sixth determination unit.
  • the fifth determination unit may be used to determine a target speed range within which the real-time driving speed falls within a plurality of preset speed ranges.
  • the third changing unit may be used to use the calling state corresponding to the target speed range as the first calling state of the target vehicle in the first usage scenario.
  • the sixth determination unit may be used to determine the second calling state of the target vehicle in the second usage scenario based on the first calling state and the real-time computing power value.
  • the sixth determination unit may include a first determination sub-unit, a second determination sub-unit and a third determination sub-unit.
  • the first determination subunit may be used to determine the second calling state based on the real-time computing power value when the first calling state belongs to the first type of calling state.
  • the second determination subunit may be used to set the preset vehicle calling state as the second calling state when the first calling state belongs to the second type of calling state.
  • the third determination subunit may be used to set the second calling state to the prohibited calling state when the first calling state belongs to the third type of calling state.
  • the process scheduling device 500 may also include a computing power statistics module.
  • the computing power statistics module may include a process creation unit, a data statistics unit and a computing power calculation unit.
  • This process creation unit can be used to create calculation example statistics processes.
  • This data statistics unit can be used to count its own running data through the calculation example statistics process.
  • the computing power calculation unit can be used to calculate the real-time computing power value corresponding to the running data through the calculation example statistics process.
  • the process scheduling module 540 may include a first scheduling unit and a second scheduling unit.
  • the first scheduling unit may be used to schedule the process corresponding to the first usage scenario according to the process running time corresponding to the first calling state when the first calling state includes the first state or the second state.
  • the second scheduling unit may be used to schedule the process corresponding to the first usage scenario according to the process running time corresponding to the first calling state and the process priority of each process when the first calling state includes the third state or the fourth state. Multiple processes.
  • the process scheduling module 540 may also include a third scheduling unit and a fourth scheduling unit.
  • the third scheduling unit may be used to schedule the process corresponding to the second usage scenario according to the process running time corresponding to the second calling state and the process parameters of each process when the second calling state includes the fifth state.
  • the fourth scheduling unit may be used to schedule the process corresponding to the second usage scenario according to the running time of the process corresponding to the second usage scenario when the second calling state includes the sixth state.
  • the process scheduling module 540 may further include a seventh determination unit, a fifth scheduling unit, and a sixth scheduling unit.
  • the seventh determination unit may be used to determine time allocation data corresponding to the first calling state.
  • the time allocation data includes the total running time of the first process in each scheduling cycle for the first usage scenario and the total running time of the first process in each scheduling cycle for the second usage scenario. The total running time of the second process within.
  • the fifth scheduling unit may be used to schedule the process corresponding to the first usage scenario in each scheduling cycle based on the total running time of the first process and in accordance with the target process scheduling policy corresponding to the first calling state.
  • the sixth scheduling unit may be used to schedule the process corresponding to the second usage scenario in each scheduling cycle based on the total running time of the second process and in accordance with the target process scheduling policy corresponding to the second calling state.
  • process scheduling device 500 shown in Figure 5 can execute each step in the method embodiment shown in Figure 1 and realize each process and effect in the method embodiment shown in Figure 1, which will not be done here. Repeat.
  • Figure 6 shows a schematic structural diagram of a process scheduling device provided by an embodiment of the present disclosure.
  • the process scheduling device may include a processor 601 and a memory 602 storing computer program instructions.
  • the above-mentioned processor 601 may include a central processing unit (CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or may be configured to implement one or more integrated circuits of embodiments of the present application.
  • CPU central processing unit
  • ASIC Application Specific Integrated Circuit
  • Memory 602 may include bulk storage for information or instructions.
  • memory 602 It may include a Hard Disk Drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape or a Universal Serial Bus (USB) drive or a combination of two or more of these.
  • Memory 602 may include removable or non-removable (or fixed) media, where appropriate.
  • Memory 602 may be internal or external to the integrated gateway device, where appropriate.
  • memory 602 is non-volatile solid-state memory.
  • memory 602 includes read-only memory (ROM).
  • the ROM can be a mask-programmed ROM, a programmable ROM (Programmable ROM, PROM), an erasable PROM (Electrically Programmable ROM, EPROM), an electrically erasable PROM (Electrically Erasable Programmable ROM, EEPROM). ), electrically rewritable ROM (Electrically Alterable ROM, EAROM) or flash memory, or a combination of two or more of these.
  • the processor 601 reads and executes the computer program instructions stored in the memory 602 to execute the steps of the process scheduling method provided by the embodiment of the present disclosure.
  • the process scheduling device may also include a transceiver 603 and a bus 604. Among them, as shown in Figure 6, the processor 601, the memory 602 and the transceiver 603 are connected through the bus 604 and complete communication with each other.
  • Bus 604 includes hardware, software, or both.
  • the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side BUS (FSB), an Ultra Transmission (Hyper Transport, HT) interconnect, Industrial Standard Architecture (ISA) bus, infinite bandwidth interconnect, Low Pin Count (LPC) bus, memory bus, Micro Channel Architecture , MCA) bus, Peripheral Component Interconnect (PCI) bus, PCI-Express (PCI-X) bus, Serial Advanced Technology Attachment (SATA) bus, Video Electronics Standards Association part (Video Electronics Standards Association Local Bus (VLB) bus or other suitable bus or a combination of two or more of these.
  • bus 604 may include one or more buses.
  • Embodiments of the present disclosure also provide a computer-readable storage medium, which can store a computer program.
  • the processor implements the process scheduling method provided by the embodiment of the present disclosure.
  • the above-mentioned storage medium may, for example, include a memory 602 of computer program instructions, which may be executed by the processor 601 of the process scheduling device to complete the process scheduling method provided by the embodiment of the present disclosure.
  • the storage medium may be a non-transitory computer-readable storage medium.
  • the non-transitory computer-readable storage medium may be a ROM, a random access memory (Random Access Memory, RAM), a compact disk read-only memory (Compact Disk). Disc ROM, CD-ROM), tapes, floppy disks and optical data storage devices, etc.
  • An embodiment of the present disclosure also provides a computer program product, which includes a computer program or instructions.
  • a computer program product which includes a computer program or instructions.
  • the process scheduling method provided by the embodiment of the present disclosure is implemented.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Human Computer Interaction (AREA)
  • Transportation (AREA)
  • Mechanical Engineering (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Traffic Control Systems (AREA)

Abstract

The present disclosure provides a process scheduling method, comprising: obtaining a real-time operation behavior generated when a user operates a target vehicle; on the basis of the real-time operation behavior, determining a target usage scenario corresponding to the target vehicle; in a plurality of preset process scheduling policies, selecting a target process scheduling policy used by the target vehicle in the target usage scenario; and according to the target process scheduling policy, scheduling a plurality of processes created by an operating system of the target vehicle.

Description

进程调度方法、装置、设备及介质Process scheduling methods, devices, equipment and media
相关申请的交叉引用Cross-references to related applications
本申请基于申请号为202210272217.2、申请日为2022年03月18日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is filed based on a Chinese patent application with application number 202210272217.2 and a filing date of March 18, 2022, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby incorporated into this application as a reference.
技术领域Technical field
本公开涉及智能汽车技术领域,尤其涉及一种进程调度方法、装置、设备及介质。The present disclosure relates to the field of smart car technology, and in particular, to a process scheduling method, device, equipment and medium.
背景技术Background technique
随着电动汽车技术与计算机技术的发展,电动汽车已经开始摆脱传统汽车架构,朝着电动智能化方向发展,智能汽车也已进入大众视野。With the development of electric vehicle technology and computer technology, electric vehicles have begun to break away from traditional automobile architecture and develop in the direction of electric intelligence. Smart vehicles have also entered the public eye.
在用户使用智能汽车的过程中,智能汽车整车控制器需要实时调度其操作***中的各个进程,以及时地完成各个进程的处理任务,保证智能汽车各个功能的正常运行。但智能汽车整车控制器一般使用固定、单一的调度策略实现进程调度,一旦进程调度不合理,便会影响智能汽车各个功能的运行情况,为用户带来危险或者不良体验。When users use smart cars, the smart car vehicle controller needs to schedule various processes in its operating system in real time to complete the processing tasks of each process in a timely manner to ensure the normal operation of various functions of the smart car. However, smart car vehicle controllers generally use a fixed and single scheduling strategy to implement process scheduling. Once the process scheduling is unreasonable, it will affect the operation of various functions of the smart car and bring danger or bad experience to users.
发明内容Contents of the invention
为了解决上述技术问题,本公开提供了一种进程调度方法、装置、设备及介质。In order to solve the above technical problems, the present disclosure provides a process scheduling method, device, equipment and medium.
第一方面,本公开提供了一种进程调度方法,包括:In a first aspect, the present disclosure provides a process scheduling method, including:
获取用户对目标车辆进行操作时产生的实时操作行为;Obtain the real-time operation behavior generated when the user operates the target vehicle;
基于实时操作行为,确定目标车辆对应的目标使用场景;Based on real-time operating behavior, determine the target usage scenario corresponding to the target vehicle;
在多个预设进程调度策略中,选择目标车辆在目标使用场景中使用的目标进程调度策略;Among multiple preset process scheduling strategies, select the target process scheduling strategy used by the target vehicle in the target usage scenario;
按照目标进程调度策略,调度目标车辆的操作***已创建的多个进程。According to the target process scheduling policy, multiple processes created by the operating system of the target vehicle are scheduled.
第二方面,本公开提供了一种进程调度装置,包括:In a second aspect, the present disclosure provides a process scheduling device, including:
第一获取模块,用于获取用户对目标车辆进行操作时产生的实时操作行为;The first acquisition module is used to acquire the real-time operation behavior generated when the user operates the target vehicle;
场景确定模块,用于基于实时操作行为,确定目标车辆对应的目标使用场景;The scene determination module is used to determine the target usage scenario corresponding to the target vehicle based on real-time operating behavior;
策略选择模块,用于在多个预设进程调度策略中,选择目标车辆在目标使用场景中使用的目标进程调度策略;The policy selection module is used to select the target process scheduling strategy used by the target vehicle in the target usage scenario among multiple preset process scheduling strategies;
进程调度模块,用于按照目标进程调度策略,调度目标车辆的操作***已创建的多个进程。The process scheduling module is used to schedule multiple processes created by the operating system of the target vehicle according to the target process scheduling policy.
第三方面,本公开提供了一种进程调度设备,包括:In a third aspect, the present disclosure provides a process scheduling device, including:
处理器;processor;
存储器,用于存储可执行指令;Memory, used to store executable instructions;
其中,处理器用于从存储器中读取可执行指令,并执行可执行指令以实现第一方面的进程调度方法。 Wherein, the processor is used to read executable instructions from the memory and execute the executable instructions to implement the process scheduling method of the first aspect.
第四方面,本公开提供了一种计算机可读存储介质,该存储介质存储有计算机程序,当计算机程序被处理器执行时,使得处理器实现第一方面的进程调度方法。In a fourth aspect, the present disclosure provides a computer-readable storage medium that stores a computer program. When the computer program is executed by a processor, the processor implements the process scheduling method of the first aspect.
第五方面,本公开提供了一种计算机程序产品,包括计算机程序或指令,该计算机程序或指令被处理器执行时,实现第一方面的进程调度方法。In a fifth aspect, the present disclosure provides a computer program product, including a computer program or instructions. When the computer program or instructions are executed by a processor, the process scheduling method of the first aspect is implemented.
附图说明Description of the drawings
结合附图并参考以下具体实施方式,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,原件和元素不一定按照比例绘制。The above and other features, advantages, and aspects of various embodiments of the present disclosure will become more apparent with reference to the following detailed description taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It is to be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
图1为本公开实施例提供的一种进程调度方法的流程示意图;Figure 1 is a schematic flowchart of a process scheduling method provided by an embodiment of the present disclosure;
图2为本公开实施例提供的一种进程状态的切换示意图;Figure 2 is a schematic diagram of process state switching provided by an embodiment of the present disclosure;
图3为本公开实施例提供的一种使用场景的切换示意图;Figure 3 is a schematic diagram of switching usage scenarios provided by an embodiment of the present disclosure;
图4为本公开实施例提供的一种调度周期的示意图;Figure 4 is a schematic diagram of a scheduling cycle provided by an embodiment of the present disclosure;
图5为本公开实施例提供的一种进程调度装置的结构示意图;Figure 5 is a schematic structural diagram of a process scheduling device provided by an embodiment of the present disclosure;
图6为本公开实施例提供的一种进程调度设备的结构示意图。Figure 6 is a schematic structural diagram of a process scheduling device provided by an embodiment of the present disclosure.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the disclosure are shown in the drawings, it should be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, which rather are provided for A more thorough and complete understanding of this disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of the present disclosure.
应当理解,本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。It should be understood that various steps described in the method implementations of the present disclosure may be executed in different orders and/or in parallel. Furthermore, method embodiments may include additional steps and/or omit performance of illustrated steps. The scope of the present disclosure is not limited in this regard.
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。As used herein, the term "include" and its variations are open-ended, ie, "including but not limited to." The term "based on" means "based at least in part on." The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; and the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below.
需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。It should be noted that concepts such as “first” and “second” mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units. Or interdependence.
需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。It should be noted that the modifications of "one" and "plurality" mentioned in this disclosure are illustrative and not restrictive. Those skilled in the art will understand that unless the context clearly indicates otherwise, it should be understood as "one or Multiple”.
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。The names of messages or information exchanged between multiple devices in the embodiments of the present disclosure are for illustrative purposes only and are not used to limit the scope of these messages or information.
在相关技术中,智能汽车整车控制器是整个智能汽车的核心控制部件。作为智能汽车的指挥管理中心,整车控制器主要用于实现智能汽车的各个行驶功能以及各个影音功能的运行。 为了保证智能汽车各个功能的正常运行,整车控制器需要对各个功能对应的进程进行合理的调度。In related technologies, the smart car vehicle controller is the core control component of the entire smart car. As the command and management center of smart cars, the vehicle controller is mainly used to implement various driving functions of smart cars and the operation of various audio and video functions. In order to ensure the normal operation of each function of a smart car, the vehicle controller needs to reasonably schedule the processes corresponding to each function.
目前,在用户使用智能汽车的过程中,智能汽车整车控制器一般使用固定的、单一的进程调度策略来调度进程,如:Currently, when users use smart cars, the smart car vehicle controller generally uses a fixed, single process scheduling strategy to schedule processes, such as:
先来先服务策略,即每次调度都选择最先进入就绪的进程;First come, first served policy, that is, the process that is ready first is selected for each scheduling;
多优先级调度策略,即每次调度选择最高优先的进程;Multi-priority scheduling strategy, that is, selecting the highest priority process for each scheduling;
时间片轮转策略,即每个进程分固定的时间移至调度;Time slice rotation strategy, that is, each process is moved to the schedule at a fixed time;
多级反馈队列策略,即将进程化为为域进行级联,第一级采用多优先级调度,第二级采用时间片轮转等。A multi-level feedback queue strategy is to convert processes into domains for cascading. The first level uses multi-priority scheduling, and the second level uses time slice rotation.
在基于上述任一组单一的策略进行调度的过程中,一旦进程调度不合理,便会影响智能汽车各个功能的运行情况,为用户带来危险或者不良体验。In the process of scheduling based on any of the above single strategies, once the process scheduling is unreasonable, it will affect the operation of various functions of the smart car and bring danger or bad experience to users.
为了解决上述问题,本公开实施例提供了一种进程调度方法、装置、设备及介质。In order to solve the above problems, embodiments of the present disclosure provide a process scheduling method, device, equipment and medium.
下面首先结合图1至图4对本公开实施例提供的进程调度方法进行详细说明。The process scheduling method provided by the embodiment of the present disclosure will be described in detail below first with reference to FIGS. 1 to 4 .
图1示出了本公开实施例提供的一种进程调度方法的流程示意图。Figure 1 shows a schematic flowchart of a process scheduling method provided by an embodiment of the present disclosure.
在本公开实施例中,该进程调度方法可以由整车控制器执行。In the embodiment of the present disclosure, the process scheduling method can be executed by the vehicle controller.
如图1所示,该进程调度方法可以包括步骤S110、S120、S130和S140。As shown in Figure 1, the process scheduling method may include steps S110, S120, S130 and S140.
S110、获取用户对目标车辆进行操作时产生的实时操作行为。S110. Obtain the real-time operation behavior generated when the user operates the target vehicle.
其中,目标车辆为安装有整车控制器的车辆。在用户使用目标车辆的过程中,如果用户想要对目标车辆进行操控,其可以对目标车辆实施操作,此时,目标车辆上安装的整车控制器可以获取用户对目标车辆进行操作时产生的实时操作行为。Among them, the target vehicle is a vehicle equipped with a vehicle controller. When the user uses the target vehicle, if the user wants to control the target vehicle, he or she can operate the target vehicle. At this time, the vehicle controller installed on the target vehicle can obtain the information generated when the user operates the target vehicle. real-time operational behavior.
在一些实施例中,实时操作行为可以为与安全驾驶相关的行为和/或与娱乐体验相关的行为。In some embodiments, the real-time operating behavior may be behavior related to safe driving and/or behavior related to entertainment experience.
在一些实施例中,用户对目标车辆进行操作时产生的实时操作行为可以包括第一实时操作行为、第二实时操作行为、第三实时操作行为和第四实时操作行为。其中,第一实时操作行为与第三实时操作行为可以为与安全驾驶相关的行为;第二实时操作行为与第四实时操作行为可以为与娱乐体验相关的行为。In some embodiments, the real-time operation behavior generated when the user operates the target vehicle may include a first real-time operation behavior, a second real-time operation behavior, a third real-time operation behavior and a fourth real-time operation behavior. The first real-time operation behavior and the third real-time operation behavior may be behaviors related to safe driving; the second real-time operation behavior and the fourth real-time operation behavior may be behaviors related to entertainment experience.
第一实时操作行为可以为用于操控车辆进行行驶的操作行为,例如:第一实时操作行为可以为将车辆加速至任意速度的行为、将车辆减速至任意速度的行为、将车窗升降至任意状态的行为等,此处不做限定。其中,第一实时操作行为可以通过目标车辆内的各种传感器进行获取,如:发动机传感器、车窗传感器等。The first real-time operation behavior may be an operation behavior for controlling the vehicle to drive. For example, the first real-time operation behavior may be the behavior of accelerating the vehicle to any speed, decelerating the vehicle to any speed, raising or lowering the window to any speed. Status behavior, etc. are not limited here. The first real-time operation behavior can be obtained through various sensors in the target vehicle, such as engine sensors, window sensors, etc.
第二实时操作行为可以为用于操控车辆进行娱乐的操作行为,例如:第二实时操作行为可以为开启音乐应用的行为、播放音乐的行为、播放视频的行为等,此处不做限定。其中,第二实时操作行为可以通过目标车辆内的电子设备进行获取,如:车载终端、车载麦克风等。The second real-time operation behavior may be an operation behavior for controlling the vehicle for entertainment. For example, the second real-time operation behavior may be the behavior of opening a music application, playing music, playing videos, etc., which are not limited here. The second real-time operation behavior can be obtained through electronic devices in the target vehicle, such as vehicle-mounted terminals, vehicle-mounted microphones, etc.
第三实时操作行为可以为用于操控车辆停止行驶的操作行为,例如:使车辆进行驻车的行为。其中,第三实时操作行为可以通过目标车辆内的各种传感器进行获取。The third real-time operation behavior may be an operation behavior used to control the vehicle to stop driving, such as the behavior of parking the vehicle. Among them, the third real-time operation behavior can be obtained through various sensors in the target vehicle.
第四实时操作行为可以为用于操控车辆停止娱乐的操作行为,例如:关闭音乐应用的行 为、关闭影音设备的行为,此处不做限定。其中,第四实时操作行为可以通过目标车辆内的电子设备进行获取,如:车载终端、车载麦克风等。The fourth real-time operation behavior may be an operation behavior for controlling the vehicle to stop entertainment, such as closing a music application. The behavior of turning off audio and video equipment is not limited here. Among them, the fourth real-time operation behavior can be obtained through electronic devices in the target vehicle, such as vehicle-mounted terminals, vehicle-mounted microphones, etc.
S120、基于实时操作行为,确定目标车辆对应的目标使用场景。S120. Based on the real-time operation behavior, determine the target usage scenario corresponding to the target vehicle.
在本公开实施例中,整车控制器可以在获取用户的实时操作行为后,基于实时操作行为确定目标车辆对应的目标使用场景。In the embodiment of the present disclosure, the vehicle controller can determine the target usage scenario corresponding to the target vehicle based on the real-time operation behavior of the user.
其中,目标使用场景可以为实时操作行为使目标车辆进入的工作状态对应的使用场景。在一些实施例中,目标使用场景可以包括空闲场景、第一使用场景、第二使用场景和混合使用场景。Among them, the target usage scenario can be a usage scenario corresponding to the working state that the target vehicle enters due to the real-time operation behavior. In some embodiments, the target usage scenario may include an idle scenario, a first usage scenario, a second usage scenario, and a mixed usage scenario.
空闲场景可以为用户没有对目标车辆进行任何操作的场景,在空闲场景下目标车辆的工作状态为空闲状态,空闲状态指目标车辆既未行驶,也未给用户提供任何的娱乐服务。The idle scene can be a scene in which the user does not perform any operations on the target vehicle. In the idle scene, the working state of the target vehicle is an idle state. The idle state means that the target vehicle is neither driving nor providing any entertainment services to the user.
第一使用场景可以为用户对目标车辆进行行驶操作的场景,在第一使用场景下目标车辆的工作状态为行驶状态,行驶状态指的是目标车辆正在行驶过程中,但没有给用户提供任何的娱乐服务。The first usage scenario may be a scenario in which the user performs a driving operation on the target vehicle. In the first usage scenario, the working state of the target vehicle is a driving state. The driving state refers to the target vehicle being driven, but does not provide any information to the user. Entertainment services.
第二使用场景可以为用户对目标车辆进行娱乐操作的场景,在第二使用场景下目标车辆的工作状态为娱乐状态,娱乐状态指的是目标车辆并未行驶,但正在给用户提供娱乐服务。The second usage scenario may be a scenario in which the user performs entertainment operations on the target vehicle. In the second usage scenario, the working state of the target vehicle is the entertainment state. The entertainment state refers to that the target vehicle is not driving but is providing entertainment services to the user.
混合使用场景可以为第一使用场景和第二使用场景叠加的场景,在混合使用场景下目标车辆的工作状态为混合状态,混合状态指的是目标车辆正在行驶过程中,并同时给用户提供娱乐服务。The mixed usage scenario can be a superposition of the first usage scenario and the second usage scenario. In the mixed usage scenario, the working state of the target vehicle is a mixed state. The mixed state means that the target vehicle is driving and providing entertainment to the user at the same time. Serve.
由此,整车控制可以基于实时操作行为确定目标车辆进入的工作状态,进而为目标车辆动态匹配适合的使用场景。As a result, the vehicle control can determine the working state of the target vehicle based on real-time operating behavior, and then dynamically match the appropriate usage scenario for the target vehicle.
S130、在多个预设进程调度策略中,选择目标车辆在目标使用场景中使用的目标进程调度策略。S130. From multiple preset process scheduling strategies, select the target process scheduling strategy used by the target vehicle in the target usage scenario.
在本公开实施例中,整车控制器在通过实时操作行为确定目标车辆对应的目标使用场景后,可以在多个预设进程调度策略中,选择目标车辆在该目标使用场景中使用的目标进程调度策略。In the embodiment of the present disclosure, after determining the target usage scenario corresponding to the target vehicle through real-time operation behavior, the vehicle controller can select the target process used by the target vehicle in the target usage scenario among multiple preset process scheduling strategies. Scheduling strategy.
在一些实施例中,预设进程调度策略可以为预先根据不同的使用场景制定的各个使用场景对应的进程调度策略。In some embodiments, the preset process scheduling policy may be a process scheduling policy corresponding to each usage scenario that is formulated in advance according to different usage scenarios.
在一些实施例中,由于不同使用场景是根据不同的实时操作行为定义的,因此,在不同的使用场景中所采用的进程调度策略应与该使用场景所涉及的实时操作行为相关。进而,相对于该使用场景中运行的其他进程而言,该使用场景中采用的进程调度策略对该使用场景所涉及的实时操作行为对应的进程进行更高效的调度。例如,在第一使用场景中,对该使用场景所涉及的与安全驾驶相关的行为对应的进程进行更高效的调度,来保证用户的驾驶安全;在第二使用场景中,对该使用场景所涉及的与娱乐体验相关的行为对应的进程进行更高效的调度,来保证用户的娱乐体验;在混合使用场景中,对该使用场景所涉及的与安全驾驶相关的行为对应的进程进行更高效的调度,而对该使用场景所涉及的与娱乐体验相关的行为对应的进程进行适应性的调度,在保证用户的驾驶安全的情况下,保证用户的娱乐体验。 In some embodiments, since different usage scenarios are defined based on different real-time operation behaviors, the process scheduling policies adopted in different usage scenarios should be related to the real-time operation behaviors involved in the usage scenarios. Furthermore, compared with other processes running in the usage scenario, the process scheduling policy adopted in the usage scenario more efficiently schedules the processes corresponding to the real-time operation behaviors involved in the usage scenario. For example, in the first usage scenario, the processes corresponding to the behaviors related to safe driving involved in the usage scenario are more efficiently scheduled to ensure the user's driving safety; in the second usage scenario, the processes corresponding to the safe driving related behaviors involved in the usage scenario are The processes corresponding to the behaviors related to the entertainment experience are more efficiently scheduled to ensure the user's entertainment experience; in the mixed usage scenario, the processes corresponding to the behaviors related to safe driving involved in the usage scenario are scheduled more efficiently. Scheduling, and adaptive scheduling of processes corresponding to behaviors related to entertainment experience involved in the usage scenario, ensures the user's entertainment experience while ensuring the user's driving safety.
因此,在目标进程调度策略中,可以对目标使用场景所涉及的实时操作行为对应的进程进行更高效的调度,从而能够保证在不同目标使用场景中用户不同的体验需求。Therefore, in the target process scheduling strategy, the processes corresponding to the real-time operation behaviors involved in the target usage scenario can be more efficiently scheduled, thereby ensuring the different experience needs of users in different target usage scenarios.
在一些实施例中,每个进程可以包括三种状态:激活(active)状态,当进程处于该状态时,进程对应的实例可以被执行;挂起(suspend)状态,进程因为被其他进程抢占CPU使用权,或者自己的运行时长完成时,进程会进入挂起状态,并会被装入等待池(wopool);就绪(ready)状态,进程可以被调度进入激活状态。In some embodiments, each process may include three states: active state, when the process is in this state, the instance corresponding to the process can be executed; suspend state, the process is preempted by other processes because of the CPU When the usage rights or its own running time is completed, the process will enter the suspended state and be loaded into the waiting pool (wopool); in the ready state, the process can be scheduled to enter the active state.
图2示出了本公开实施例提供的一种进程状态的切换示意图。FIG. 2 shows a schematic diagram of process state switching provided by an embodiment of the present disclosure.
如图2所示,进程的三种状态之间可以通过不同的事件进行切换,例如,当进程处于就绪状态时,可以通过进程交换事件将该进程变更为激活状态;当进程处于激活状态时,可以通过结束事件将该进程变更为挂起状态;当进程处于激活状态时,可以通过重载事件将该进程变更为就绪状态;当进程处于就绪状态时,可以通过退后事件将该进程变更为挂起状态;当进程处于挂起状态时,可以通过唤醒事件将该进程变更为就绪状态。具体实施方式在后续进行详细说明。As shown in Figure 2, the three states of the process can be switched through different events. For example, when the process is in the ready state, the process can be changed to the active state through the process exchange event; when the process is in the active state, The process can be changed to the suspended state through the end event; when the process is in the active state, the process can be changed to the ready state through the reload event; when the process is in the ready state, the process can be changed to the back event Suspended state; when a process is in a suspended state, the process can be changed to the ready state through a wake-up event. The specific implementation will be described in detail later.
因此,预设进程调度策略可以为预先制定的对各个功能对应的进程的各个状态的调度策略。Therefore, the preset process scheduling policy may be a predetermined scheduling policy for each state of the process corresponding to each function.
例如,第一使用场景可以具有预先制定的第一进程调度策略;第二使用场景可以具有预先制定的第二进程调度策略;混合使用场景可以具有预先制定的混合进程调度策略。For example, the first usage scenario may have a predefined first process scheduling policy; the second usage scenario may have a predefined second process scheduling policy; and the mixed usage scenario may have a predefined mixed process scheduling policy.
在一些实施例中,若实时操作行为为开启音乐应用或者播放音乐的行为,此时目标车辆可以进入娱乐状态,则整车控制器可以确定目标车辆处于第二使用场景,由此,整车控制器会选择第二使用场景对应的第二进程调度策略来进行不同进程的状态的调度。In some embodiments, if the real-time operation behavior is the behavior of opening a music application or playing music, and the target vehicle can enter the entertainment state at this time, the vehicle controller can determine that the target vehicle is in the second usage scenario, and thus the vehicle control The processor will select the second process scheduling policy corresponding to the second usage scenario to schedule the states of different processes.
S140、按照目标进程调度策略,调度目标车辆的操作***已创建的多个进程。S140. According to the target process scheduling policy, schedule multiple processes that have been created by the operating system of the target vehicle.
在本公开实施例中,在整车控制器为目标车辆选择目标进程调度策略后,可以基于该目标进程调度策略调度目标车辆的操作***已创建的多个进程。In the embodiment of the present disclosure, after the vehicle controller selects a target process scheduling policy for the target vehicle, multiple processes created by the operating system of the target vehicle can be scheduled based on the target process scheduling policy.
在一些实施例中,目标车辆的操作***已创建的多个进程可以为目标车辆当前已运行的功能对应的进程。In some embodiments, the multiple processes created by the operating system of the target vehicle may be processes corresponding to functions currently running on the target vehicle.
例如,如果在用户进行实时操作行为之前目标车辆已经运行了地图功能,则在用户进行实时操作行为之前目标车辆已经创建了地图进程,如果实时操作行为为开启音乐应用的行为且地图功能属于娱乐功能,则在用户进行实时操作行为之后,目标车辆便还需要运行音乐功能,此时目标车辆已经创建了地图进程和音乐进程。由于音乐功能也属于娱乐功能,则目标车辆可以处于娱乐状态,整车控制器可以确定目标车辆处于第二使用场景,由此,整车控制器会选择第二使用场景对应的第二进程调度策略对地图进程和音乐进程的各个状态进行调度。For example, if the target vehicle has already run the map function before the user performs the real-time operation behavior, the target vehicle has already created the map process before the user performs the real-time operation behavior. If the real-time operation behavior is the behavior of opening a music application and the map function is an entertainment function , then after the user performs real-time operation behavior, the target vehicle still needs to run the music function. At this time, the target vehicle has already created a map process and a music process. Since the music function is also an entertainment function, the target vehicle can be in an entertainment state, and the vehicle controller can determine that the target vehicle is in the second usage scenario. Therefore, the vehicle controller will select the second process scheduling strategy corresponding to the second usage scenario. Schedule the various states of the map process and music process.
在本公开实施例中,能够在获取用户对目标车辆进行操作时产生的实时操作行为后,基于实时操作行为,确定目标车辆对应的目标使用场景,并在多个预设进程调度策略中,选择目标车辆在目标使用场景中使用的目标进程调度策略,进而按照目标进程调度策略,调度目标车辆的操作***已创建的多个进程,由此,能够通过对目标车辆即将进入的使用场景进行 判断,为目标车辆动态选择适合于该使用场景的进程调度策略,以基于所选择的进程调度策略完成后续的进程调度,保障用户行驶的安全性,提升用户体验。In the embodiment of the present disclosure, after obtaining the real-time operation behavior generated when the user operates the target vehicle, the target usage scenario corresponding to the target vehicle can be determined based on the real-time operation behavior, and the target usage scenario corresponding to the target vehicle can be selected from multiple preset process scheduling strategies. The target process scheduling strategy used by the target vehicle in the target usage scenario, and then according to the target process scheduling strategy, multiple processes that have been created by the target vehicle's operating system are scheduled. Thus, the target vehicle can be used for the usage scenarios that it is about to enter. Judgment, dynamically select a process scheduling strategy suitable for the usage scenario for the target vehicle, and complete subsequent process scheduling based on the selected process scheduling strategy to ensure user driving safety and improve user experience.
在本公开另一些实施例中,整车控制器在实时操作行为之后,可以基于实时操作行为,通过多种方式确定目标车辆对应的目标使用场景,下面以两个示例进行说明。In other embodiments of the present disclosure, after the real-time operation behavior, the vehicle controller can determine the target usage scenario corresponding to the target vehicle in various ways based on the real-time operation behavior. Two examples are used to illustrate below.
在一些实施例中,整车控制器可以在获取用户的实时操作行为后,基于该实时操作行为以及预设时间段内的历史操作行为,确定目标车辆对应的目标使用场景。In some embodiments, the vehicle controller can determine the target usage scenario corresponding to the target vehicle after acquiring the user's real-time operation behavior and based on the real-time operation behavior and historical operation behavior within a preset time period.
其中,预设时间段可以为根据需要预先设定的一段时间。例如可以为半小时内、一小时内等,此处不做限定。The preset time period may be a period of time preset as needed. For example, it can be within half an hour, within one hour, etc., and there is no limit here.
其中,历史操作行为可以为用户曾在预设时间段内对目标车辆实施的操作行为。The historical operation behavior may be the operation behavior performed by the user on the target vehicle within a preset time period.
下面以预设时间段为一小时为例,对整车控制器基于实时操作行为和历史操作行为确定目标使用场景的过程进行举例说明。The following takes the preset time period of one hour as an example to illustrate the process of the vehicle controller determining the target usage scenario based on real-time operation behavior and historical operation behavior.
例如,整车控制器获取到用户的实时操作行为为第一实时操作行为,并且查询到用户在一小时内没有操作行为或有历史操作行为但都属于第一实时操作行为时,此时,整车控制器可以确定目标车辆的工作状态为行驶状态,即目标车辆此时处于第一使用场景。For example, when the vehicle controller obtains that the user's real-time operation behavior is the first real-time operation behavior, and queries that the user has no operation behavior within an hour or has historical operation behavior but all belong to the first real-time operation behavior, at this time, the entire vehicle controller The vehicle controller may determine that the working state of the target vehicle is a driving state, that is, the target vehicle is in the first usage scenario at this time.
再例如,整车控制器获取到用户的实时操作行为为第二实时操作行为,并且查询到用户在一小时内没有操作行为或有历史操作行为但都属于第二实时操作行为时,此时,整车控制器可以确定目标车辆的工作状态为娱乐状态,即目标车辆此时处于第二使用场景。For another example, when the vehicle controller obtains that the user's real-time operation behavior is the second real-time operation behavior, and queries that the user has no operation behavior within one hour or has historical operation behavior but all belong to the second real-time operation behavior, at this time, The vehicle controller can determine that the working state of the target vehicle is the entertainment state, that is, the target vehicle is in the second usage scenario at this time.
又例如,整车控制器获取到用户的实时操作行为为第一实时操作行为,并且查询到用户在一小时内有历史操作行为且存在属于第二实时操作行为的操作行为时,此时,整车控制器可以确定目标车辆的工作状态为混合状态,即目标车辆此时处于混合使用场景。For another example, when the vehicle controller obtains that the user's real-time operation behavior is the first real-time operation behavior, and queries that the user has historical operation behavior within one hour and there is an operation behavior that belongs to the second real-time operation behavior, at this time, the entire vehicle controller The vehicle controller can determine that the working state of the target vehicle is a mixed state, that is, the target vehicle is in a mixed use scenario at this time.
又例如,整车控制器获取到用户的实时操作行为为第三实时操作行为,并且查询到用户在一小时内有历史操作行为且存在属于第二实时操作行为的操作行为时,此时,整车控制器可以确定目标车辆的工作状态为娱乐状态,即目标车辆此时处于第二使用场景。For another example, when the vehicle controller obtains that the user's real-time operation behavior is the third real-time operation behavior, and queries that the user has historical operation behavior within one hour and there is an operation behavior that belongs to the second real-time operation behavior, at this time, the entire vehicle controller The vehicle controller may determine that the working state of the target vehicle is the entertainment state, that is, the target vehicle is in the second usage scenario at this time.
又例如,整车控制器获取到用户的实时操作行为为第四实时操作行为,并且查询到用户在一小时内有历史操作行为且存在属于第一实时操作行为的操作行为时,此时,整车控制器可以确定目标车辆的工作状态为行驶状态,即目标车辆此时处于第一使用场景。For another example, when the vehicle controller obtains that the user's real-time operation behavior is the fourth real-time operation behavior, and queries that the user has historical operation behavior within one hour and there is an operation behavior that belongs to the first real-time operation behavior, at this time, the entire vehicle controller The vehicle controller may determine that the working state of the target vehicle is a driving state, that is, the target vehicle is in the first usage scenario at this time.
由此,在本公开实施例中,整车控制器可以基于用户的操作行为直接判断目标车辆即将进入的目标使用场景,来为目标车辆动态选择适合于该使用场景的进程调度策略,以基于所选择的进程调度策略完成后续的进程调度,合理的对进程进行调度,保障用户行驶的安全性,提升用户体验。Therefore, in the embodiment of the present disclosure, the vehicle controller can directly determine the target usage scenario that the target vehicle is about to enter based on the user's operating behavior, and dynamically select a process scheduling strategy suitable for the usage scenario for the target vehicle based on the desired usage scenario. The selected process scheduling strategy completes subsequent process scheduling and reasonably schedules processes to ensure user driving safety and improve user experience.
在另一些实施例中,整车控制器可以先获取目标车辆当前所处的实时使用场景,然后基于该实时使用场景以及实时操作行为,确定目标车辆对应的目标使用场景。In other embodiments, the vehicle controller may first obtain the real-time usage scenario where the target vehicle is currently located, and then determine the target usage scenario corresponding to the target vehicle based on the real-time usage scenario and real-time operation behavior.
在一些实施例中,在S120之前,该进程调度方法还可以包括:获取目标车辆当前所处的实时使用场景。In some embodiments, before S120, the process scheduling method may further include: obtaining the real-time usage scenario where the target vehicle is currently located.
在一些实施例中,用户每次进行一次操作行为,整车控制器便可以基于用户的操作行为对目标车辆所处的使用场景进行更新,因此,整车控制器可以获取其最新存储的目标车辆的 使用场景,作为目标车辆当前所处的实时使用场景。In some embodiments, every time the user performs an operation behavior, the vehicle controller can update the usage scenario of the target vehicle based on the user's operation behavior. Therefore, the vehicle controller can obtain its latest stored target vehicle of Usage scenario, as the real-time usage scenario where the target vehicle is currently located.
进一步地,S120可以具体包括:根据实时使用场景和实时操作行为,确定目标车辆即将进入的目标使用场景。Further, S120 may specifically include: determining the target usage scenario that the target vehicle is about to enter based on the real-time usage scenario and real-time operation behavior.
在本公开实施例中,在获取到目标车辆当前所处的实时使用场景之后,整车控制器可以根据实时使用场景和获取的用户的实时操作行为,确定目标车辆即将进入的目标使用场景。In the embodiment of the present disclosure, after acquiring the real-time usage scenario where the target vehicle is currently located, the vehicle controller can determine the target usage scenario that the target vehicle is about to enter based on the real-time usage scenario and the acquired real-time operating behavior of the user.
此时,目标使用场景可以为根据实时使用场景和获取的用户的实时操作行为使目标车辆即将进入的工作状态对应的使用场景。At this time, the target usage scenario may be a usage scenario corresponding to the working state that the target vehicle is about to enter based on the real-time usage scenario and the acquired real-time operation behavior of the user.
在一些实施例中,如果实时操作行为所属的实时操作行为类型对应的使用场景与实时使用场景相同,则确定目标使用场景仍为实时使用场景;如果实时操作行为所属的实时操作行为类型对应的使用场景与实时使用场景不相同,则确定目标使用场景为混合使用场景;如果实时使用场景为混合使用场景且实时操作行为类型为第三实时操作行为和/或第四实时操作行为,则确定目标使用场景为从叠加场景中去除第三实时操作行为和/或第四实时操作行为对应的使用场景之后的场景;如果实时使用场景为第一使用场景且实时操作行为类型为第三实时操作行为,则确定目标使用场景为空闲场景;如果实时使用场景为第二使用场景且实时操作行为类型为第四实时操作行为,则确定目标使用场景为空闲场景。In some embodiments, if the usage scenario corresponding to the real-time operation behavior type to which the real-time operation behavior belongs is the same as the real-time usage scenario, it is determined that the target usage scenario is still a real-time usage scenario; if the usage scenario corresponding to the real-time operation behavior type to which the real-time operation behavior belongs If the scenario is different from the real-time usage scenario, then the target usage scenario is determined to be a mixed usage scenario; if the real-time usage scenario is a mixed usage scenario and the real-time operation behavior type is the third real-time operation behavior and/or the fourth real-time operation behavior, then the target usage scenario is determined The scene is the scene after removing the usage scenario corresponding to the third real-time operation behavior and/or the fourth real-time operation behavior from the overlay scene; if the real-time usage scenario is the first usage scenario and the real-time operation behavior type is the third real-time operation behavior, then The target usage scenario is determined to be an idle scenario; if the real-time usage scenario is the second usage scenario and the real-time operation behavior type is the fourth real-time operation behavior, the target usage scenario is determined to be the idle scenario.
图3示出了本公开实施例提供的一种使用场景的切换示意图。FIG. 3 shows a schematic diagram of switching usage scenarios provided by an embodiment of the present disclosure.
如图3所示,不同使用场景之间可以通过不同实时操作行为类型进行切换,例如,当目标车辆的使用场景为空闲场景时,若实时操作行为类型为第一实时操作行为,此时目标车辆的使用场景可以切换为第一使用场景,若实时操作行为类型为第二实时操作行为,此时目标车辆的使用场景可以切换为第二使用场景;当目标车辆的使用场景为第一使用场景时,若实时操作行为类型为第二实时操作行为,此时目标车辆的使用场景可以切换为混合使用场景,若实时操作行为类型为第三实时操作行为,此时目标车辆的使用场景可以切换为空闲场景;当目标车辆的使用场景为第二使用场景时,若实时操作行为类型为第一实时操作行为,此时目标车辆的使用场景可以切换为混合使用场景,若实时操作行为类型为第四实时操作行为,此时目标车辆的使用场景可以切换为空闲场景;当目标车辆的实时使用场景为混合场景时,若实时操作行为类型为第四实时操作行为,此时目标车辆的使用场景可以切换为第一使用场景,若实时操作行为类型为第三实时操作行为,此时目标车辆的使用场景可以切换为第二使用场景。As shown in Figure 3, different usage scenarios can be switched through different real-time operation behavior types. For example, when the usage scenario of the target vehicle is an idle scene, if the real-time operation behavior type is the first real-time operation behavior, then the target vehicle The usage scenario can be switched to the first usage scenario. If the real-time operation behavior type is the second real-time operation behavior, the usage scenario of the target vehicle can be switched to the second usage scenario; when the usage scenario of the target vehicle is the first usage scenario , if the real-time operation behavior type is the second real-time operation behavior, the usage scenario of the target vehicle can be switched to the mixed usage scenario at this time; if the real-time operation behavior type is the third real-time operation behavior, the usage scenario of the target vehicle can be switched to idle at this time Scenario: When the usage scenario of the target vehicle is the second usage scenario, if the real-time operation behavior type is the first real-time operation behavior, the usage scenario of the target vehicle can be switched to a mixed usage scenario. If the real-time operation behavior type is the fourth real-time operation behavior, Operation behavior. At this time, the usage scenario of the target vehicle can be switched to the idle scenario; when the real-time usage scenario of the target vehicle is a mixed scenario, if the real-time operation behavior type is the fourth real-time operation behavior, the usage scenario of the target vehicle can be switched to In the first usage scenario, if the real-time operation behavior type is the third real-time operation behavior, the usage scenario of the target vehicle can be switched to the second usage scenario at this time.
由此,在本公开实施例中,整车控制器可以先检测目标车辆当前的实时使用场景,并结合实时操作行为来判断目标车辆即将进入的目标使用场景,来为目标车辆动态选择适合于该使用场景的进程调度策略,以基于所选择的进程调度策略完成后续的进程调度,合理的对进程进行调度,保障用户行驶的安全性,提升用户体验。Therefore, in the embodiment of the present disclosure, the vehicle controller can first detect the current real-time usage scenario of the target vehicle, and combine it with the real-time operation behavior to determine the target usage scenario that the target vehicle is about to enter, so as to dynamically select a suitable vehicle for the target vehicle. Use the process scheduling strategy of the scenario to complete the subsequent process scheduling based on the selected process scheduling strategy, and schedule the process reasonably to ensure the safety of the user's driving and improve the user experience.
在一些实施例中,在S120之后,该进程调度方法还可以包括:将实时使用场景更新为目标使用场景。In some embodiments, after S120, the process scheduling method may further include: updating the real-time usage scenario to the target usage scenario.
在本公开实施例中,在整车控制器基于目标车辆当前的实时使用场景与实时操作行为,确定目标车辆即将进入的目标使用场景之后,整车控制器还可以将实时使用场景更新为目标 使用场景。In the embodiment of the present disclosure, after the vehicle controller determines the target usage scenario that the target vehicle is about to enter based on the current real-time usage scenario and real-time operation behavior of the target vehicle, the vehicle controller can also update the real-time usage scenario to the target scenes to be used.
例如,当目标车辆当前的实时使用场景为第一使用场景时,整车控制器可以基于实时操作行为如播放音乐的行为,确定目标车辆即将进入的目标使用场景为混合使用场景,此时,整车控制器可以将目标车辆的实时使用场景由第一使用场景更新为混合使用场景,以确定目标车辆当前已进入并正处于混合使用场景。For example, when the current real-time usage scenario of the target vehicle is the first usage scenario, the vehicle controller can determine that the target usage scenario that the target vehicle is about to enter is a mixed usage scenario based on real-time operating behaviors such as playing music. The vehicle controller may update the real-time usage scenario of the target vehicle from the first usage scenario to the mixed usage scenario to determine that the target vehicle has currently entered and is in the mixed usage scenario.
在本公开实施例中,整车控制器可以实现对目标车辆所处的使用场景的更新,进而配合实时操作行为准确地判断目标车辆即将进入的目标使用场景,确保能够为目标车辆正确选择进程调度策略。In the embodiment of the present disclosure, the vehicle controller can update the usage scenario where the target vehicle is located, and then cooperate with the real-time operation behavior to accurately determine the target usage scenario that the target vehicle is about to enter, ensuring that the process schedule can be correctly selected for the target vehicle. Strategy.
在本公开又一些实施例中,整车控制器还可以进一步对于车辆所处的使用场景进行调用状态的细分,并针对不同的调用状态为车辆进行更精确的进程调度策略的动态选择。In some embodiments of the present disclosure, the vehicle controller can further subdivide the calling status of the usage scenario in which the vehicle is located, and dynamically select a more precise process scheduling strategy for the vehicle according to different calling statuses.
此时,预设进程调度策略可以进一步为预先根据不同的使用场景下的各个调用状态制定的各个调用状态对应的进程调度策略。At this time, the preset process scheduling policy may further be a process scheduling policy corresponding to each calling state that is formulated in advance according to each calling state in different usage scenarios.
例如,第一使用场景下的任意调用状态可以具有预先制定的不同第一进程调度策略;第二使用场景下的任意调用状态可以具有预先制定的不同第二进程调度策略;混合使用场景下的任意调用状态可以具有预先制定的不同混合进程调度策略。For example, any calling state under the first usage scenario can have different predetermined first process scheduling strategies; any calling state under the second usage scenario can have different predetermined second process scheduling strategies; any calling state under mixed usage scenarios can have different predetermined second process scheduling strategies. Call states can have different pre-established mixed process scheduling policies.
在一些实施例中,在S130之前,该进程调度方法还可以包括:获取目标车辆的实时车辆数据;基于实时车辆数据,确定目标车辆在目标使用场景下所处的目标调用状态。In some embodiments, before S130, the process scheduling method may further include: obtaining real-time vehicle data of the target vehicle; and determining the target calling state of the target vehicle in the target usage scenario based on the real-time vehicle data.
其中,S130可以具体包括:在多个预设进程调度策略中,选择目标车辆在处于目标使用场景下的目标调用状态时使用的目标进程调度策略。Wherein, S130 may specifically include: selecting a target process scheduling strategy used by the target vehicle when it is in the target calling state in the target usage scenario among multiple preset process scheduling strategies.
在本公开实施例中,在整车控制器通过实时操作行为确定目标车辆对应的目标使用场景后,整车控制器还可以获取目标车辆的实时车辆数据,并基于该实时车辆数据,确定目标车辆在目标使用场景下所处的目标调用状态,进而在多个预设进程调度策略中,选择预先为目标使用场景下的目标调用状态制定的相应目标进程调度策略,以基于该目标进程调度策略对目标车辆的操作***已创建的多个进程进行调度。In the embodiment of the present disclosure, after the vehicle controller determines the target usage scenario corresponding to the target vehicle through real-time operation behavior, the vehicle controller can also obtain the real-time vehicle data of the target vehicle, and determine the target vehicle based on the real-time vehicle data. Based on the target calling state in the target usage scenario, and then select the corresponding target process scheduling policy that has been formulated in advance for the target calling status in the target usage scenario among multiple preset process scheduling strategies, so as to determine the target process scheduling policy based on the target process scheduling policy. The target vehicle's operating system has created multiple processes for scheduling.
下面对整车控制器确定目标车辆在目标使用场景下所处的目标调用状态的具体方式进行说明。The specific way in which the vehicle controller determines the target calling state of the target vehicle in the target usage scenario is explained below.
在一些实施例中,当目标车辆对应的目标使用场景为第一使用场景时,目标车辆对应的实时车辆数据可以包括实时行驶速度,目标车辆的实时行驶速度可以由目标车辆的速度传感器直接获取,获取的实时行驶速度的精度可以达到0.01km/h。目标车辆在目标使用场景下所处的目标调用状态可以包括第一调用状态,第一调用状态指在第一使用场景下的调用状态。In some embodiments, when the target usage scenario corresponding to the target vehicle is the first usage scenario, the real-time vehicle data corresponding to the target vehicle may include real-time driving speed, and the real-time driving speed of the target vehicle may be directly obtained by the speed sensor of the target vehicle, The accuracy of the obtained real-time driving speed can reach 0.01km/h. The target calling state of the target vehicle in the target usage scenario may include a first calling state, and the first calling state refers to the calling state in the first usage scenario.
在一些实施例中,基于实时车辆数据,确定目标车辆在目标使用场景下所处的目标调用状态可以具体包括:在多个预设速度范围中,确定实时行驶速度落入的目标速度范围;将目标速度范围对应的调用状态作为目标车辆在第一使用场景下所处的第一调用状态。In some embodiments, based on real-time vehicle data, determining the target calling state of the target vehicle in the target usage scenario may specifically include: determining the target speed range within which the real-time driving speed falls among multiple preset speed ranges; The calling state corresponding to the target speed range is used as the first calling state of the target vehicle in the first usage scenario.
在一些实施例中,在目标车辆处于第一使用场景时,整车控制器可以在获取到目标车辆的实时行驶速度后,在多个预设速度范围中确定实时行驶速度所落入的速度范围,并将实时行驶速度所落入的速度范围作为目标速度范围,进而将目标速度范围对应的调用状态作为目 标车辆在第一使用场景下所处的第一调用状态。In some embodiments, when the target vehicle is in the first usage scenario, the vehicle controller may, after obtaining the real-time driving speed of the target vehicle, determine the speed range in which the real-time driving speed falls within multiple preset speed ranges. , and use the speed range within which the real-time driving speed falls as the target speed range, and then use the calling status corresponding to the target speed range as the target speed range. The first calling state of the target vehicle in the first usage scenario.
在一些实施例中,预设速度范围可以为预先设定的用于判断目标车辆在第一使用场景下所处的调用状态的速度范围。In some embodiments, the preset speed range may be a preset speed range used to determine the calling state of the target vehicle in the first usage scenario.
在一些实施例中,第一调用状态可以包括静止调用状态、低速调用状态、正常调用状态、高速调用状态。其中,第一使用场景下的一种调用状态可以对应一个预设速度范围。例如,第一预设速度范围对应静止调用状态;第二预设速度范围对应低速调用状态;第三预设速度范围对应正常调用状态;第四预设速度范围对应高速调用状态。In some embodiments, the first calling state may include a static calling state, a low-speed calling state, a normal calling state, and a high-speed calling state. Among them, a calling state in the first usage scenario may correspond to a preset speed range. For example, the first preset speed range corresponds to the static calling state; the second preset speed range corresponds to the low speed calling state; the third preset speed range corresponds to the normal calling state; and the fourth preset speed range corresponds to the high speed calling state.
由此,在本公开实施例中,对于目标车辆处于第一使用场景的情况下,整车控制器可以根据实时行驶速度,确定目标车辆的目标调用状态,并基于第一使用场景和目标调用状态为目标车辆选择进程调度策略,使得选择的进程调度策略更加精确,对进程进行调度更加合理,保障用户行驶的安全性,提升用户体验。Therefore, in the embodiment of the present disclosure, when the target vehicle is in the first usage scenario, the vehicle controller can determine the target calling state of the target vehicle based on the real-time driving speed, and based on the first usage scenario and the target calling state Selecting a process scheduling strategy for the target vehicle makes the selected process scheduling strategy more accurate, scheduling the process more reasonable, ensuring the safety of the user's driving and improving the user experience.
在另一些实施例中,当目标车辆对应的目标使用场景为第二使用场景时,目标车辆对应的实时车辆数据可以包括实时算力值。目标车辆在目标使用场景下所处的目标调用状态可以包括第二调用状态,第二调用状态指在第二使用场景下的调用状态。In other embodiments, when the target usage scenario corresponding to the target vehicle is the second usage scenario, the real-time vehicle data corresponding to the target vehicle may include a real-time computing power value. The target calling state of the target vehicle in the target usage scenario may include a second calling state, and the second calling state refers to the calling state in the second usage scenario.
在一些实施例中,当目标车辆对应的目标使用场景为第二使用场景时,第二使用场景下所处的目标调用状态可以包括第二调用状态。In some embodiments, when the target usage scenario corresponding to the target vehicle is the second usage scenario, the target calling state in the second usage scenario may include the second calling state.
在一些实施例中,基于实时车辆数据,确定目标车辆在目标使用场景下所处的目标调用状态可以具体包括:在多个预设算力范围中,确定实时算力值落入的目标算力范围;将目标算力范围对应的调用状态作为目标车辆在第二使用场景下所处的第二调用状态。In some embodiments, based on real-time vehicle data, determining the target calling state of the target vehicle in the target usage scenario may specifically include: determining the target computing power within which the real-time computing power value falls within multiple preset computing power ranges. Range; use the calling state corresponding to the target computing power range as the second calling state of the target vehicle in the second usage scenario.
在本公开实施例中,在目标车辆处于第二使用场景时,整车控制器可以在获取到目标车辆的实时算力值后,在多个预设算力范围中确定实时算力值所落入的算力范围,并将实时算力值所落入的算力范围作为目标算力范围,进而将目标算力范围对应的调用状态作为目标车辆在第二使用场景下所处的第二调用状态。In the embodiment of the present disclosure, when the target vehicle is in the second usage scenario, the vehicle controller can determine where the real-time computing power value falls within multiple preset computing power ranges after obtaining the real-time computing power value of the target vehicle. enter the computing power range, and use the computing power range in which the real-time computing power value falls as the target computing power range, and then use the calling state corresponding to the target computing power range as the second calling of the target vehicle in the second usage scenario. state.
在一些实施例中,预设算力范围可以为预先设定的用于判断目标车辆在第二使用场景下所处的调用状态的算力范围。In some embodiments, the preset computing power range may be a preset computing power range used to determine the calling state of the target vehicle in the second usage scenario.
在一些实施例中,第二调用状态可以包括低算力状态、高算力状态。其中,第二使用场景下的一种调用状态可以对应一个预设算力范围。例如,第一预设算力范围对应低算力状态;第二预设算力范围对应高算力状态。In some embodiments, the second calling state may include a low computing power state and a high computing power state. Among them, a calling state in the second usage scenario can correspond to a preset computing power range. For example, the first preset computing power range corresponds to a low computing power state; the second preset computing power range corresponds to a high computing power state.
由此,在本公开实施例中,对于目标车辆处于第二使用场景的情况下,整车控制器可以根据实时算力值,确定目标车辆的目标调用状态,并基于第二使用场景和目标调用状态为目标车辆选择进程调度策略,使得选择的进程调度策略更加精确,对进程进行调度更加合理,保障用户行驶的安全性,提升用户体验。Therefore, in the embodiment of the present disclosure, when the target vehicle is in the second usage scenario, the vehicle controller can determine the target calling status of the target vehicle based on the real-time computing power value, and based on the second usage scenario and the target calling The state selects a process scheduling strategy for the target vehicle, making the selected process scheduling strategy more accurate, scheduling the process more reasonably, ensuring the safety of the user's driving, and improving the user experience.
在又一些实施例中,当目标车辆对应的目标使用场景为同时具备第一使用场景和第二使用场景的混合使用场景时,目标车辆对应的实时车辆数据可以包括实时行驶速度和实时算力值,目标车辆在目标使用场景下所处的目标调用状态可以包括第一调用状态和第二调用状态。其中,实时车辆数据、各个调用状态与上述第一使用场景和第二使用场景相似,此处不再赘 述。In some embodiments, when the target usage scenario corresponding to the target vehicle is a mixed usage scenario having both the first usage scenario and the second usage scenario, the real-time vehicle data corresponding to the target vehicle may include real-time driving speed and real-time computing power value. , the target calling state of the target vehicle in the target usage scenario may include a first calling state and a second calling state. Among them, the real-time vehicle data and each call status are similar to the above-mentioned first usage scenario and second usage scenario, and will not be repeated here. narrate.
在一些实施例中,基于实时车辆数据,确定目标车辆在目标使用场景下所处的目标调用状态,包括:在多个预设速度范围中,确定实时行驶速度落入的目标速度范围;将目标速度范围对应的调用状态作为目标车辆在第一使用场景下所处的第一调用状态;基于第一调用状态和实时算力值,确定目标车辆在第二使用场景下所处的第二调用状态。In some embodiments, based on real-time vehicle data, determining the target calling state of the target vehicle in the target usage scenario includes: determining the target speed range within which the real-time driving speed falls in multiple preset speed ranges; The calling state corresponding to the speed range is used as the first calling state of the target vehicle in the first usage scenario; based on the first calling state and the real-time computing power value, the second calling state of the target vehicle in the second usage scenario is determined. .
在本公开实施例中,在目标车辆处于混合使用场景时,整车控制器会分别获取目标车辆的实时行驶速度与实时算力值,然后基于实时行驶速度确定目标车辆在第一使用场景下所处的第一调用状态以及基于第一调用状态和实时算力值确定目标车辆在第二使用场景下所处的第二调用状态。In the embodiment of the present disclosure, when the target vehicle is in a mixed usage scenario, the vehicle controller will obtain the real-time driving speed and real-time computing power value of the target vehicle respectively, and then determine the target vehicle's location in the first usage scenario based on the real-time driving speed. and determine the second calling state of the target vehicle in the second usage scenario based on the first calling state and the real-time computing power value.
其中,基于实时行驶速度确定目标车辆在第一使用场景下所处的第一调用状态与上述第一使用场景相似,在此不做赘述。Determining the first calling state of the target vehicle in the first usage scenario based on the real-time driving speed is similar to the above-mentioned first usage scenario, and will not be described again here.
进一步地,基于第一调用状态和实时算力值,确定目标车辆在第二使用场景下所处的第二调用状态可以具体包括:在第一调用状态属于第一类型调用状态的情况下,基于实时算力值,确定第二调用状态;在第一调用状态属于第二类型调用状态的情况下,将预设调用状态作为第二调用状态;在第一调用状态属于第三类型调用状态的情况下,第二调用状态设置为禁止调用状态。Further, based on the first calling state and the real-time computing power value, determining the second calling state of the target vehicle in the second usage scenario may specifically include: in the case where the first calling state belongs to the first type of calling state, based on The real-time computing power value determines the second calling state; when the first calling state belongs to the second type of calling state, the preset calling state is used as the second calling state; when the first calling state belongs to the third type of calling state , the second call status is set to the call prohibited status.
在一些实施例中,整车控制器可以先判断第一调用状态属于哪一类型的调用状态,其中,第一类型调用状态可以包括静止调用状态、低速调用状态。第二类型调用状态可以包括正常调用状态。第三类型调用状态可以包括高速调用状态。在确定第一调用状态属于第一类型调用状态的情况下,整车控制器可以直接将实时算力值落入的目标算力范围对应的调用状态作为第二调用状态,此时第二调用状态可以为低算力状态,也可以为高算力状态。在确定第一调用状态属于第二类型调用状态的情况下,整车控制器可以将预设调用状态作为第二调用状态。其中,预设调用状态可以为根据需要预先设置的任意第二使用场景下的调用状态,如高算力状态。在确定第一调用状态属于第三类型调用状态的情况下,整车控制器可以将第二调用状态设置为禁止调用状态,在禁止调用状态下,整车控制器不对第二使用场景对应的进程进行调用。In some embodiments, the vehicle controller may first determine which type of calling state the first calling state belongs to, where the first type of calling state may include a static calling state and a low-speed calling state. The second type of call status may include a normal call status. The third type of call state may include a high-speed call state. When it is determined that the first calling state belongs to the first type of calling state, the vehicle controller can directly use the calling state corresponding to the target computing power range in which the real-time computing power value falls as the second calling state. At this time, the second calling state It can be in a low computing power state or in a high computing power state. When it is determined that the first calling state belongs to the second type of calling state, the vehicle controller may use the preset calling state as the second calling state. The preset calling state can be a calling state in any second usage scenario that is preset as needed, such as a high computing power state. When it is determined that the first call state belongs to the third type of call state, the vehicle controller can set the second call state to the call prohibited state. In the call prohibited state, the vehicle controller does not control the process corresponding to the second usage scenario. Make the call.
进一步地,整车控制器可以将第一使用场景和第一调用状态对应的进程调用策略应用于第一使用场景对应的进程,将第二使用场景和第二调用状态对应的进程调用策略应用于第二使用场景对应的进程。Further, the vehicle controller can apply the process calling policy corresponding to the first usage scenario and the first calling state to the process corresponding to the first usage scenario, and apply the process calling policy corresponding to the second usage scenario and the second calling state to the process The process corresponding to the second usage scenario.
其中,第一使用场景对应的进程为第一使用场景对应功能的进程,第二使用场景对应的进程为第二使用场景对应功能的进程。Among them, the process corresponding to the first usage scenario is the process of the function corresponding to the first usage scenario, and the process corresponding to the second usage scenario is the process of the function corresponding to the second usage scenario.
由此,在本公开实施例中,对于目标车辆处于混合使用场景的情况下,整车控制器可以确定不同使用场景下的不同调用状态,进而为不同使用场景对应的进程选择不同的进程调用策略,保障用户行驶的安全性,提升用户体验。Therefore, in the embodiment of the present disclosure, when the target vehicle is in a mixed usage scenario, the vehicle controller can determine different calling states under different usage scenarios, and then select different process calling strategies for the processes corresponding to different usage scenarios. , ensuring users’ driving safety and improving user experience.
在本公开实施例中,在一些实施例中,上述的目标车辆的实时算力值可以由整车控制器的算例统计进程计算获取。 In the embodiments of the present disclosure, in some embodiments, the above-mentioned real-time computing power value of the target vehicle can be calculated and obtained by the calculation example statistics process of the vehicle controller.
在本公开实施例中,获取目标车辆的实时算力值可以具体包括:创建算例统计进程;通过算例统计进程统计自身的运行数据;通过算例统计进程计算运行数据对应的实时算力值。In the embodiment of the present disclosure, obtaining the real-time computing power value of the target vehicle may specifically include: creating an example statistics process; counting its own operating data through the example statistics process; and calculating the real-time computing power value corresponding to the operating data through the example statistics process. .
在一些实施例中,在目标车辆对应的目标使用场景为第二使用场景时,整车控制器会创建算例统计进程,然后算例统计进程可以统计自身的运行数据,并根据统计的运行数据,结合预设的算力值计算公式,计算目标车辆对应的实时算力值。In some embodiments, when the target usage scenario corresponding to the target vehicle is the second usage scenario, the vehicle controller will create a calculation example statistics process, and then the calculation example statistics process can count its own running data and calculate the statistics based on the statistical running data. , combined with the preset computing power value calculation formula, calculates the real-time computing power value corresponding to the target vehicle.
在一些实施例中,算例统计进程可以用于计算目标车辆处于第二使用场景下的实时算力值,算例统计进程在目标车辆进入第二使用场景时,会被自动创建并运行。算例统计进程统计的运行数据可以为算例统计进程自身的执行时间数据,例如,算例统计进程开始执行的时间t1、停止执行的时间t2以及再次开始执行的时间t3。In some embodiments, the calculation example statistics process can be used to calculate the real-time computing power value of the target vehicle in the second usage scenario. The calculation example statistics process will be automatically created and run when the target vehicle enters the second usage scenario. The running data of the calculation example statistics process statistics can be the execution time data of the calculation example statistics process itself, for example, the time t1 when the calculation example statistics process starts execution, the time t2 when it stops execution, and the time t3 when it starts execution again.
在一些实施例中,用于计算实时算力值tw的预设的算力值计算公式可以为:
In some embodiments, the preset computing power value calculation formula used to calculate the real-time computing power value tw may be:
例如,t1=0s,t2=5s,t3=9s,此时通过预设的算力值计算公式得到实时算力值tw=44。For example, t1=0s, t2=5s, t3=9s, at this time, the real-time computing power value tw=44 is obtained through the preset computing power value calculation formula.
由此,在本公开实施例中,整车控制器可以通过算例统计进程准确计算出目标车辆的实时算力值,以提高了对进程调度策略选择的准确性,来实现合理的对进程进行调度,保障用户行驶的安全性,提升用户体验。Therefore, in the embodiment of the present disclosure, the vehicle controller can accurately calculate the real-time computing power value of the target vehicle through the calculation example statistical process, so as to improve the accuracy of selecting the process scheduling strategy and achieve reasonable process scheduling. Scheduling ensures users’ driving safety and improves user experience.
在本公开再一些实施例中,整车控制器基于不同的使用场景和不同的调用状态可以执行不同的进程调度策略,下面将进行详细说明。In some embodiments of the present disclosure, the vehicle controller can execute different process scheduling strategies based on different usage scenarios and different calling states, which will be described in detail below.
在一些实施例中,在目标车辆处于第一使用场景和第一调用状态的情况下,整车控制器可以基于第一调用状态对应的目标进程调度策略调用第一使用场景对应的进程。In some embodiments, when the target vehicle is in the first usage scenario and the first calling state, the vehicle controller may call the process corresponding to the first usage scenario based on the target process scheduling policy corresponding to the first calling state.
在另一些实施例中,在目标车辆处于第二使用场景和第二调用状态的情况下,整车控制器可以基于第二调用状态对应的目标进程调度策略调用第二使用场景对应的进程。In other embodiments, when the target vehicle is in the second usage scenario and the second calling state, the vehicle controller may call the process corresponding to the second usage scenario based on the target process scheduling policy corresponding to the second calling state.
在又一些实施例中,在目标车辆处于混合使用状态的情况下,整车控制器可以基于第一调用状态对应的目标进程调度策略调用第一使用场景对应的进程以及基于第二调用状态对应的目标进程调度策略调用第二使用场景对应的进程。In some embodiments, when the target vehicle is in a mixed use state, the vehicle controller can call the process corresponding to the first usage scenario based on the target process scheduling policy corresponding to the first calling state and the process corresponding to the second calling state. The target process scheduling policy calls the process corresponding to the second usage scenario.
在一些实施例中,当目标车辆处于混合使用场景的情况下,可以通过混合进程调度策略对第一使用场景和第二使用场景各自对应的进程可以依次循环执行。In some embodiments, when the target vehicle is in a mixed usage scenario, the processes corresponding to the first usage scenario and the second usage scenario can be executed cyclically in sequence through the hybrid process scheduling policy.
在一些实施例中,在目标车辆处于混合使用场景的情况下,整车控制器按照目标进程调度策略,调度目标车辆的操作***已创建的多个进程可以具体包括:确定第一调用状态对应的时间分配数据,时间分配数据包括第一使用场景在每个调度周期内的第一进程运行总时长和第二使用场景在每个调度周期内的第二进程运行总时长;在每个调度周期内,基于第一进程运行总时长,按照第一调用状态对应的目标进程调度策略,调度第一使用场景对应的进程;在每个调度周期内,基于第二进程运行总时长,按照第二调用状态对应的目标进程调度策略,调度第二使用场景对应的进程。In some embodiments, when the target vehicle is in a mixed use scenario, the vehicle controller schedules multiple processes created by the operating system of the target vehicle according to the target process scheduling policy, which may specifically include: determining the process corresponding to the first calling state. Time allocation data, the time allocation data includes the total running time of the first process in each scheduling cycle of the first usage scenario and the total running time of the second process in each scheduling cycle of the second usage scenario; in each scheduling cycle , based on the total running time of the first process, according to the target process scheduling policy corresponding to the first calling state, schedule the process corresponding to the first usage scenario; in each scheduling cycle, based on the total running time of the second process, according to the second calling state The corresponding target process scheduling policy schedules the process corresponding to the second usage scenario.
即整车控制器可以为目标车辆创建多个调度周期,每个调度周期被分为两个时间段,第 一个时间段用于调度第一使用场景下的多个进程,第二个时间段用于调度第二使用场景下的多个进程,由此,在整车控制器可以在每个调度周期内先调度第一使用场景下的多个进程,再调度第二使用场景下的多个进程,如此循环往复,实现各个进程的调度。That is, the vehicle controller can create multiple scheduling cycles for the target vehicle, and each scheduling cycle is divided into two time periods. One time period is used to schedule multiple processes in the first usage scenario, and the second time period is used to schedule multiple processes in the second usage scenario. Therefore, the vehicle controller can first schedule the process in each scheduling cycle. Multiple processes in the first usage scenario are scheduled, and then multiple processes in the second usage scenario are scheduled. This cycle repeats to achieve scheduling of each process.
图4示出了本公开实施例提供的一种调度周期的示意图。Figure 4 shows a schematic diagram of a scheduling cycle provided by an embodiment of the present disclosure.
如图4所示,调度周期被分为第一个时间段和第二个时间段,第一个时间段对应于第一使用场景并且具有第一进程运行总时长wotime,第二个时间段对应于第二使用场景并且具有第二进程运行总时长entime。As shown in Figure 4, the scheduling cycle is divided into a first time period and a second time period. The first time period corresponds to the first usage scenario and has the total running time of the first process wotime, and the second time period corresponds to In the second usage scenario and has the second total running time of the process entime.
在本公开实施例中,在一些实施例中,调度周期的总时长、第一进程运行总时长和第二进程运行总时长可以根据需要预先设置,只要使第一进程运行总时长与第二进程运行总时长之和等于调度周期的总时长且第二进程运行总时长大于预先根据需要设置的最小时长entimemin即可。In the embodiments of the present disclosure, in some embodiments, the total duration of the scheduling cycle, the total running duration of the first process, and the total running duration of the second process can be preset as needed, as long as the total running duration of the first process is equal to the total running duration of the second process. The sum of the total running time is equal to the total time of the scheduling cycle and the total running time of the second process is greater than the minimum time entimemin set in advance according to needs.
进一步地,在目标车辆处于混合使用场景的情况下,如果第一调用状态为第一类型调用状态,即第一调用状态为静止状态或低速状态,则第一进程运行总时长为wotime,第二进程运行总时长为entime;如果第一调用状态为第二类型调用状态,即第一调用状态为正常状态,则第一进程运行总时长为wotime,第二进程运行总时长为entimemin;如果第一调用状态为第三类型调用状态,即第一调用状态为高速状态,则第一进程运行总时长为wotime,第二进程运行总时长为0,即第二调用状态设置为禁止调用状态。Further, when the target vehicle is in a mixed use scenario, if the first calling state is the first type of calling state, that is, the first calling state is a stationary state or a low-speed state, the total running time of the first process is wotime, and the second calling state is wotime. The total running time of the process is entime; if the first calling state is the second type of calling state, that is, the first calling state is the normal state, then the total running time of the first process is wotime, and the total running time of the second process is entimemin; if the first calling state is the normal state, the total running time of the first process is wotime, and the total running time of the second process is entimemin. The calling state is the third type of calling state, that is, the first calling state is the high-speed state, then the total running time of the first process is wotime, and the total running time of the second process is 0, that is, the second calling state is set to the call prohibited state.
在本公开实施例中,基于每个调度周期,整车控制器可以在第一个时间段内,基于第一调用状态对应的目标进程调度策略,调度第一使用场景对应的进程;整车控制器可以在第二个时间段内,按照第二调用状态对应的目标进程调度策略,调度第二使用场景对应的进程。In the embodiment of the present disclosure, based on each scheduling cycle, the vehicle controller can schedule the process corresponding to the first usage scenario in the first time period based on the target process scheduling policy corresponding to the first calling state; vehicle control The server can schedule the process corresponding to the second usage scenario in the second time period according to the target process scheduling policy corresponding to the second calling state.
由此,在本公开实施例中,当目标车辆处于混合使用场景下,整车控制器可以通过对每个调度周期的配置对目标车辆的不同使用场景下的进程进行合理调度,保障用户行驶的安全性,提升用户体验。Therefore, in the embodiment of the present disclosure, when the target vehicle is in a mixed usage scenario, the vehicle controller can reasonably schedule the processes of the target vehicle in different usage scenarios by configuring each scheduling cycle to ensure the user's driving safety. Security, improve user experience.
在本公开实施例中,整车控制器基于第一调用状态对应的目标进程调度策略调用第一使用场景对应的进程的具体方法可以为:在第一调用状态包括第一状态或第二状态的情况下,按照第一调用状态对应的进程运行时长和进程挂起时长,调度第一使用场景对应的进程;在第一调用状态包括第三状态或第四状态的情况下,按照第一调用状态对应的进程运行时长、进程挂起时长和各个进程的进程优先级,调度第一使用场景对应的多个进程。In the embodiment of the present disclosure, the specific method for the vehicle controller to call the process corresponding to the first usage scenario based on the target process scheduling policy corresponding to the first calling state may be: the first calling state includes the first state or the second state. In this case, the process corresponding to the first usage scenario is scheduled according to the process running time and process suspension time corresponding to the first calling state; when the first calling state includes the third state or the fourth state, the process is scheduled according to the first calling state The corresponding process running time, process suspension time and process priority of each process are used to schedule multiple processes corresponding to the first usage scenario.
在本公开实施例中,第一使用场景下的第一调用状态可以包括第一状态、第二状态、第三状态、第四状态。In the embodiment of the present disclosure, the first calling state in the first usage scenario may include a first state, a second state, a third state, and a fourth state.
在一些实施例中,在目标车辆的第一调用状态包括第一状态或第二状态的情况下,整车控制器可以按照第一调用状态对应的进程运行时长和进程挂起时长,调度第一使用场景对应的每个进程。In some embodiments, when the first call state of the target vehicle includes the first state or the second state, the vehicle controller may schedule the first call state according to the process running time and process suspension time corresponding to the first call state. Each process corresponding to the usage scenario.
例如,在目标车辆处于静止调用状态时,目标车辆的实时行驶速度处于第一预设速度范围:0km/h-0km/h,设置进程的进程运行时长为s0ts、进程挂起时长为s0sts。For example, when the target vehicle is in a stationary calling state, the real-time driving speed of the target vehicle is in the first preset speed range: 0km/h-0km/h, and the process running time of the process is set to s0ts and the process suspension time is set to s0sts.
此时,整车控制器对每个进程的调度方法为:步骤一:从第一使用场景进程队列头部取 出一个进程,并将该进程设置为激活状态;步骤二:在进程运行s0ts时间后,将该进程设置为挂起状态,放入等待池中;步骤三:接着对等待池进行遍历,将挂起时间超过s0sts的进程放入第一使用场景进程队列尾部;步骤四:重复步骤一。此时目标车辆的CPU处于节能模式。At this time, the vehicle controller's scheduling method for each process is: Step 1: Get the process from the head of the first usage scenario process queue. Create a process and set the process to the active state; Step 2: After the process runs for s0ts time, set the process to the suspended state and put it into the waiting pool; Step 3: Then traverse the waiting pool and put the suspended state into the waiting pool. Processes whose start time exceeds s0sts are placed at the end of the first usage scenario process queue; Step 4: Repeat Step 1. At this time, the CPU of the target vehicle is in energy-saving mode.
又例如,在目标车辆处于低速调用状态时,目标车辆的实时行驶速度处于第二预设速度范围:1km/h-40km/h,设置进程的进程运行时长为pts、进程挂起时长为psts。For another example, when the target vehicle is in a low-speed calling state, the real-time driving speed of the target vehicle is in the second preset speed range: 1km/h-40km/h, and the process running time of the process is set to pts and the process suspension time is psts.
此时,整车控制器对每个进程的调度方法为:步骤一:从第一使用场景进程队列头部取出一个进程,并将该进程设置为激活状态;步骤二:在进程运行进程运行时长pts时间后,将该进程设置为挂起状态,放入等待池中;步骤三:接着对等待池进行遍历,将进程挂起时长超过psts的进程放入第一使用场景进程队列尾部;步骤四:重复步骤一。此时目标车辆的CPU处于正常模式。At this time, the vehicle controller's scheduling method for each process is: Step 1: Take out a process from the head of the process queue of the first usage scenario, and set the process to the active state; Step 2: When the process is running, the process running time After pts time, set the process to suspended state and put it into the waiting pool; Step 3: Then traverse the waiting pool, and put the processes that have been suspended for longer than psts into the end of the first usage scenario process queue; Step 4 : Repeat step one. At this time, the target vehicle's CPU is in normal mode.
在另一些实施例中,在目标车辆的第一调用状态包括第三状态或第四状态的情况下,整车控制器可以按照第一调用状态对应的进程运行时长、进程挂起时长和各个进程的进程优先级,调度第一使用场景对应的进程。In other embodiments, when the first calling state of the target vehicle includes the third state or the fourth state, the vehicle controller can determine the process running time, process suspending time and each process according to the first calling state. The process priority is used to schedule the process corresponding to the first usage scenario.
在一些实施例中,各个进程的进程优先级可以根据优先级计算法公式进行计算。In some embodiments, the process priority of each process may be calculated according to the priority calculation formula.
其中,优先级计算法公式为:
Among them, the priority calculation formula is:
在一些实施例中,在优先级计算法公式中,speed代表实时行驶速度,prior代表进程的优先级,lprior代表进程预设的最低优先级,hprior代表进程预设的最高优先级,pts代表进程的进程运行时长,psts代表进程的进程挂起时长,spmax代表当前状态的最大速度,spmin代表当前状态的最小速度,dsmax代表目标车辆能达到的最高速度。In some embodiments, in the priority calculation formula, speed represents the real-time driving speed, prior represents the priority of the process, lprior represents the preset lowest priority of the process, hprior represents the preset highest priority of the process, and pts represents the process. The process running time, psts represents the process suspension time of the process, spmax represents the maximum speed of the current state, spmin represents the minimum speed of the current state, and dsmax represents the maximum speed that the target vehicle can reach.
例如,对于进程p1和进程p2,当目标车辆的实时行驶速度speed处于第一个范围内,即0≤speed≤spmin时,此时,进程p1和进程p2的优先级为各自的最低优先级,进程p1和进程p2之间的优先级大小根据进程p1对应的最低优先级lprior和进程p2对应的最低优先级lprior的大小进行判断,需要注意的是,每个进程对应的最低优先级lprior和最高优先级hprior不相同。For example, for process p1 and process p2, when the real-time driving speed speed of the target vehicle is within the first range, that is, 0 ≤ speed ≤ spmin, at this time, the priority of process p1 and process p2 is their respective lowest priority, The priority size between process p1 and process p2 is judged based on the size of the lowest priority lprior corresponding to process p1 and the lowest priority lprior corresponding to process p2. It should be noted that the lowest priority lprior and the highest priority lprior corresponding to each process The priorities hprior are not the same.
例如,在目标车辆处于正常调用状态时,目标车辆的实时行驶速度处于第三预设速度范围:40km/h-120km/h。For example, when the target vehicle is in a normal calling state, the real-time driving speed of the target vehicle is in the third preset speed range: 40km/h-120km/h.
此时,整车控制器对每个进程的调度方法为:步骤一:从第一使用场景进程队列中取出所有进程,计算每个进程的优先级prior大小,并根据prior进行降序排列,依次放入第一 使用场景进程队列的尾部;步骤二:从第一使用场景进程队列头部取出一个进程,并将该进程设置为激活状态;步骤三:执行进程p1,直到发生进程外部的时间累加(tick)事件;步骤四:从第一使用场景进程队列中取进程p2,根据优先级计算法计算p1和p2的优先级prior,如果p2的优先级大于p1的优先级,发生进程交换(swap)事件,执行进程p2;如果p2的优先级小于p1的优先级,执行步骤五;步骤五:统计进程p1的已运行时长ts,如果ts小于pts,继续执行进程p1;步骤六:如进程p1的已运行时长达到pts,将进程p1设置为挂起状态,放入等待池中;步骤七:接着对等待池进行遍历,将挂起时间超过psts的进程放入第一使用场景进程队列尾部;步骤八:重复步骤一。此时目标车辆的CPU处于节能模式。At this time, the vehicle controller's scheduling method for each process is: Step 1: Remove all processes from the first usage scenario process queue, calculate the priority priority size of each process, and arrange them in descending order according to the priority, and place them in order. Enter first Use the tail of the scenario process queue; Step 2: Take out a process from the head of the first usage scenario process queue and set the process to the active state; Step 3: Execute process p1 until a time accumulation (tick) event outside the process occurs ; Step 4: Take process p2 from the first usage scenario process queue, and calculate the priority priority of p1 and p2 according to the priority calculation method. If the priority of p2 is greater than the priority of p1, a process swap (swap) event occurs and execute Process p2; if the priority of p2 is less than the priority of p1, perform step five; step five: count the running time ts of process p1, if ts is less than pts, continue to execute process p1; step six: such as the running time of process p1 When pts is reached, set process p1 to the suspended state and put it into the waiting pool; Step 7: Then traverse the waiting pool, and put the processes that have been suspended for longer than psts into the end of the first usage scenario process queue; Step 8: Repeat step one. At this time, the CPU of the target vehicle is in energy-saving mode.
又例如,当目标车辆处于高速调用状态时,目标车辆的实时行驶速度处于第四预设速度范围:120km/h-240km/h。For another example, when the target vehicle is in a high-speed calling state, the real-time driving speed of the target vehicle is in the fourth preset speed range: 120km/h-240km/h.
此时,整车控制器对进程的调度方法为:步骤一:从第一使用场景进程队列中取出所有进程,计算每个进程的优先级prior大小,并根据prior进行降序排列,依次放入第一使用场景进程队列的尾部;步骤二:从第一使用场景进程队列头部取出一个进程,并将该进程设置为激活状态;步骤三:执行进程,直到发生进程内部预设的重载(yeild)事件;步骤四:将进程设置为就绪状态,放入第一使用场景进程队列尾部;步骤五:重复步骤一。此时目标车辆的CPU处于节能模式。At this time, the vehicle controller's process scheduling method is: Step 1: Take out all processes from the first usage scenario process queue, calculate the priority priority size of each process, and arrange them in descending order according to the priority, and put them in order. The tail of the process queue of the first usage scenario; Step 2: Take out a process from the head of the process queue of the first usage scenario and set the process to the active state; Step 3: Execute the process until the preset reload (yeild) inside the process occurs ) event; Step 4: Set the process to the ready state and put it at the end of the first usage scenario process queue; Step 5: Repeat Step 1. At this time, the CPU of the target vehicle is in energy-saving mode.
在一些实施例中,在任何调用状态下,如果进程主动进行结束(sleep)事件,整车控制器则将进程设置为挂起状态,并将进程放入等待池中。In some embodiments, in any calling state, if the process actively performs a sleep event, the vehicle controller sets the process to a suspended state and puts the process into the waiting pool.
在本公开实施例中,整车控制器基于第二调用状态对应的目标进程调度策略调用第二使用场景对应的进程的具体方法可以为:在第二调用状态包括第五状态的情况下,按照第二调用状态对应的各个进程的进程参数,调度第二使用场景对应的进程;在第二调用状态包括第六状态的情况下,按照第二使用场景对应的进程运行时长,调度第二使用场景对应的进程。In the embodiment of the present disclosure, the specific method for the vehicle controller to call the process corresponding to the second usage scenario based on the target process scheduling policy corresponding to the second calling state may be: when the second calling state includes the fifth state, according to The process parameters of each process corresponding to the second calling state are used to schedule the process corresponding to the second usage scenario; when the second calling state includes the sixth state, the second usage scenario is scheduled according to the process running time corresponding to the second usage scenario. corresponding process.
在本公开实施例中,第二使用场景下的第二调用状态可以包括:第五状态、第六状态。In the embodiment of the present disclosure, the second calling state in the second usage scenario may include: a fifth state and a sixth state.
在一些实施例中,在目标车辆处于第二使用场景时,可以为每个进程预先设置一些参数,如最大进程运行时长tsmax、最小进程运行时长tsmin、第五状态下的进程运行时长的计算公式、第六状态下的进程运行时长t1ts。In some embodiments, when the target vehicle is in the second usage scenario, some parameters can be preset for each process, such as the maximum process running time tsmax, the minimum process running time tsmin, and the calculation formula for the process running time in the fifth state. , the process running time in the sixth state is t1ts.
在一些实施例中,进程运行时长t的计算公式为:
In some embodiments, the calculation formula of the process running time t is:
其中,tw为算力值,twthr为第一预设算力范围和第二预设算力范围之间的范围临界值。Among them, tw is the computing power value, and twthr is the range critical value between the first preset computing power range and the second preset computing power range.
在一些实施例中,在目标车辆第二调用状态包括第五状态的情况下,整车控制器可以按照第二调用状态对应的各个进程的进程参数,计算各个进程的进程运行时长,进而调度第二使用场景对应的进程。In some embodiments, when the second calling state of the target vehicle includes the fifth state, the vehicle controller can calculate the process running time of each process according to the process parameters of each process corresponding to the second calling state, and then schedule the third calling state. 2. Processes corresponding to usage scenarios.
例如,在目标车辆处于低算力状态时,实时算力值处于第一预设算力范围:0-70,第一预设算力范围与第二预设算力范围的范围临界值为70。 For example, when the target vehicle is in a low computing power state, the real-time computing power value is in the first preset computing power range: 0-70, and the range threshold between the first preset computing power range and the second preset computing power range is 70. .
此时,整车控制器对进程的调度方法为:步骤一:从第二使用场景进程队列头部取出一个进程;步骤二:计算出该进程的进程运行时长t;步骤三:该进程运行了进程运行时长t时间后,将该进程放入第二使用场景进程队列尾部;步骤四:重复步骤一。At this time, the vehicle controller's process scheduling method is: Step 1: Take out a process from the head of the second usage scenario process queue; Step 2: Calculate the process running time t of the process; Step 3: The process runs After the process has been running for t time, the process is placed at the end of the process queue of the second usage scenario; Step 4: Repeat Step 1.
在另一些实施例中,在目标车辆第二调用状态包括第六状态的情况下,整车控制器按照第二调用状态对应的进程运行时长,调度第二使用场景对应的进程。In other embodiments, when the second calling state of the target vehicle includes the sixth state, the vehicle controller schedules the process corresponding to the second usage scenario according to the running time of the process corresponding to the second calling state.
例如,在目标车辆处于高算力状态时,实时算力值处于第二预设算力范围:70-200。For example, when the target vehicle is in a high computing power state, the real-time computing power value is in the second preset computing power range: 70-200.
此时,整车控制器对进程的调度方法为:步骤一:从第二使用场景进程队列头部取出一个进程;步骤二:该进程运行进程运行时长t1ts时间后,将该进程放入第二使用场景进程队列尾部;步骤三:重复步骤一。At this time, the vehicle controller schedules the process as follows: Step 1: Take out a process from the head of the second usage scenario process queue; Step 2: After the process runs for t1ts, put the process into the second Use the tail of the scene process queue; Step 3: Repeat Step 1.
由此,在本公开实施例中,整车控制器可以基于其选择的不同进程调度策略完成进程调度,保障用户行驶的安全性,提升用户体验。Therefore, in the embodiment of the present disclosure, the vehicle controller can complete process scheduling based on different process scheduling strategies selected by it, ensuring the safety of the user's driving and improving the user experience.
图5示出了本公开实施例提供的一种进程调度装置的结构示意图。Figure 5 shows a schematic structural diagram of a process scheduling device provided by an embodiment of the present disclosure.
在本公开实施例中,该进程调度装置可以设置于整车控制器中。In the embodiment of the present disclosure, the process scheduling device may be provided in the vehicle controller.
如图5所示,该进程调度装置500可以包括第一获取模块510、场景确定模块520、策略选择模块550和进程调度模块540。As shown in FIG. 5 , the process scheduling device 500 may include a first acquisition module 510 , a scenario determination module 520 , a strategy selection module 550 and a process scheduling module 540 .
该第一获取模块510可以用于获取用户对目标车辆进行操作时产生的实时操作行为。The first acquisition module 510 may be used to acquire the real-time operation behavior generated when the user operates the target vehicle.
该场景确定模块520可以用于基于实时操作行为,确定目标车辆对应的目标使用场景。The scene determination module 520 may be used to determine the target usage scenario corresponding to the target vehicle based on real-time operating behavior.
该策略选择模块550可以用于在多个预设进程调度策略中,选择目标车辆在目标使用场景中使用的目标进程调度策略。The policy selection module 550 may be used to select a target process scheduling strategy used by the target vehicle in the target usage scenario among multiple preset process scheduling strategies.
该进程调度模块540可以用于按照目标进程调度策略,调度目标车辆的操作***已创建的多个进程。The process scheduling module 540 may be used to schedule multiple processes created by the operating system of the target vehicle according to the target process scheduling policy.
在本公开实施例中,能够在获取用户对目标车辆进行操作时产生的实时操作行为后,基于实时操作行为,确定目标车辆对应的目标使用场景,并在多个预设进程调度策略中,选择目标车辆在目标使用场景中使用的目标进程调度策略,进而按照目标进程调度策略,调度目标车辆的操作***已创建的多个进程,由此,能够通过对目标车辆即将进入的使用场景进行判断,为目标车辆动态选择适合于该使用场景的进程调度策略,以基于所选择的进程调度策略完成后续的进程调度,保障用户行驶的安全性,提升用户体验。In the embodiment of the present disclosure, after obtaining the real-time operation behavior generated when the user operates the target vehicle, the target usage scenario corresponding to the target vehicle can be determined based on the real-time operation behavior, and the target usage scenario corresponding to the target vehicle can be selected from multiple preset process scheduling strategies. The target process scheduling strategy used by the target vehicle in the target usage scenario, and then according to the target process scheduling strategy, multiple processes that have been created by the operating system of the target vehicle are scheduled. Therefore, the usage scenario that the target vehicle is about to enter can be judged. Dynamically select a process scheduling strategy suitable for the usage scenario for the target vehicle, and complete subsequent process scheduling based on the selected process scheduling strategy to ensure user driving safety and improve user experience.
在本公开一些实施例中,该进程调度装置500还可以包括第二获取模块。In some embodiments of the present disclosure, the process scheduling device 500 may further include a second acquisition module.
该第二获取模块可以用于在基于实时操作行为,确定目标车辆对应的目标使用场景之前,获取目标车辆当前所处的实时使用场景。The second acquisition module may be used to obtain the real-time usage scenario where the target vehicle is currently located before determining the target usage scenario corresponding to the target vehicle based on the real-time operating behavior.
在本公开一些实施例中,该场景确定模块520可以包括第一确定单元。In some embodiments of the present disclosure, the scene determination module 520 may include a first determination unit.
该场景确定单元可以用于根据实时使用场景和实时操作行为,确定目标车辆即将进入的目标使用场景。The scene determination unit can be used to determine the target usage scenario that the target vehicle is about to enter based on the real-time usage scenario and real-time operation behavior.
在本公开一些实施例中,该进程调度装置500还可以包括场景变更模块。In some embodiments of the present disclosure, the process scheduling device 500 may also include a scene change module.
该场景变更模块可以用于将实时使用场景更新为目标使用场景。The scenario change module can be used to update the real-time usage scenario to the target usage scenario.
在本公开一些实施例中,该进程调度装置500还可以包括第三获取模块和状态确定模块。 In some embodiments of the present disclosure, the process scheduling device 500 may further include a third acquisition module and a status determination module.
该第三获取模块可以用于获取目标车辆的实时车辆数据。The third acquisition module may be used to acquire real-time vehicle data of the target vehicle.
该状态确定模块可以用于基于实时车辆数据,确定目标车辆在目标使用场景下所处的目标调用状态。The status determination module can be used to determine the target calling status of the target vehicle in the target usage scenario based on real-time vehicle data.
在本公开一些实施例中,该策略选择模块550可以包括第二确定单元。In some embodiments of the present disclosure, the policy selection module 550 may include a second determination unit.
该策略确定单元可以用于在多个预设进程调度策略中,选择目标车辆在处于目标使用场景下的目标调用状态时使用的目标进程调度策略。The policy determination unit may be used to select a target process scheduling strategy used by the target vehicle when it is in a target calling state under a target usage scenario among multiple preset process scheduling strategies.
在本公开一些实施例中,目标使用场景可以包括第一使用场景,实时车辆数据可以包括实时行驶速度,目标调用状态可以包括第一调用状态。In some embodiments of the present disclosure, the target usage scenario may include the first usage scenario, the real-time vehicle data may include real-time driving speed, and the target call status may include the first call status.
在本公开一些实施例中,该状态确定模块可以包括第三确定单元和第一变更单元。In some embodiments of the present disclosure, the status determination module may include a third determination unit and a first change unit.
该第三确定单元可以用于在多个预设速度范围中,确定实时行驶速度落入的目标速度范围。The third determination unit may be used to determine a target speed range in which the real-time driving speed falls among a plurality of preset speed ranges.
该第一变更单元可以用于将目标速度范围对应的调用状态作为目标车辆在第一使用场景下所处的第一调用状态。The first changing unit may be used to use the calling state corresponding to the target speed range as the first calling state of the target vehicle in the first usage scenario.
在本公开一些实施例中,目标使用场景可以包括第二使用场景,实时车辆数据可以包括实时算力值,目标调用状态可以包括第二调用状态。In some embodiments of the present disclosure, the target usage scenario may include a second usage scenario, the real-time vehicle data may include real-time computing power values, and the target call status may include a second call status.
在本公开一些实施例中,该状态确定模块还可以包括第四确定单元和第二变更单元。In some embodiments of the present disclosure, the status determination module may further include a fourth determination unit and a second modification unit.
该第四确定单元可以用于在多个预设算力范围中,确定实时算力值落入的目标算力范围。The fourth determination unit may be used to determine a target computing power range within which the real-time computing power value falls within a plurality of preset computing power ranges.
该第二变更单元可以用于将目标算力范围对应的调用状态作为目标车辆在第二使用场景下所处的第二调用状态。The second changing unit may be used to use the calling state corresponding to the target computing power range as the second calling state of the target vehicle in the second usage scenario.
在本公开一些实施例中,目标使用场景可以包括同时具备第一使用场景和第二使用场景的混合使用场景,实时车辆数据可以包括实时行驶速度和实时算力值,目标调用状态可以包括第一调用状态和第二调用状态。In some embodiments of the present disclosure, the target usage scenario may include a mixed usage scenario having both the first usage scenario and the second usage scenario, the real-time vehicle data may include real-time driving speed and real-time computing power value, and the target call status may include the first calling state and second calling state.
在本公开一些实施例中,该状态确定模块还可以包括第五确定单元、第三变更单元和第六确定单元。In some embodiments of the present disclosure, the status determination module may further include a fifth determination unit, a third change unit, and a sixth determination unit.
该第五确定单元可以用于在多个预设速度范围中,确定实时行驶速度落入的目标速度范围。The fifth determination unit may be used to determine a target speed range within which the real-time driving speed falls within a plurality of preset speed ranges.
该第三变更单元可以用于将目标速度范围对应的调用状态作为目标车辆在第一使用场景下所处的第一调用状态。The third changing unit may be used to use the calling state corresponding to the target speed range as the first calling state of the target vehicle in the first usage scenario.
该第六确定单元可以用于基于第一调用状态和实时算力值,确定目标车辆在第二使用场景下所处的第二调用状态。The sixth determination unit may be used to determine the second calling state of the target vehicle in the second usage scenario based on the first calling state and the real-time computing power value.
在本公开一些实施例中,该第六确定单元可以包括第一确定子单元、第二确定子单元和第三确定子单元。In some embodiments of the present disclosure, the sixth determination unit may include a first determination sub-unit, a second determination sub-unit and a third determination sub-unit.
该第一确定子单元可以用于在第一调用状态属于第一类型调用状态的情况下,基于实时算力值,确定第二调用状态。The first determination subunit may be used to determine the second calling state based on the real-time computing power value when the first calling state belongs to the first type of calling state.
该第二确定子单元可以用于在第一调用状态属于第二类型调用状态的情况下,将预设车调用态作为第二调用状态。 The second determination subunit may be used to set the preset vehicle calling state as the second calling state when the first calling state belongs to the second type of calling state.
该第三确定子单元可以用于在第一调用状态属于第三类型调用状态的情况下,第二调用状态设置为禁止调用状态。The third determination subunit may be used to set the second calling state to the prohibited calling state when the first calling state belongs to the third type of calling state.
在本公开一些实施例中,该进程调度装置500还可以包括算力统计模块。In some embodiments of the present disclosure, the process scheduling device 500 may also include a computing power statistics module.
在本公开一些实施例中,该算力统计模块可以包括进程创建单元、数据统计单元和算力计算单元。In some embodiments of the present disclosure, the computing power statistics module may include a process creation unit, a data statistics unit and a computing power calculation unit.
该进程创建单元可以用于创建算例统计进程。This process creation unit can be used to create calculation example statistics processes.
该数据统计单元可以用于通过算例统计进程统计自身的运行数据。This data statistics unit can be used to count its own running data through the calculation example statistics process.
该算力计算单元可以用于通过算例统计进程计算运行数据对应的实时算力值。The computing power calculation unit can be used to calculate the real-time computing power value corresponding to the running data through the calculation example statistics process.
在本公开一些实施例中,该进程调度模块540可以包括第一调度单元和第二调度单元。In some embodiments of the present disclosure, the process scheduling module 540 may include a first scheduling unit and a second scheduling unit.
该第一调度单元可以用于在第一调用状态包括第一状态或第二状态的情况下,按照第一调用状态对应的进程运行时长,调度第一使用场景对应的进程。The first scheduling unit may be used to schedule the process corresponding to the first usage scenario according to the process running time corresponding to the first calling state when the first calling state includes the first state or the second state.
该第二调度单元可以用于在第一调用状态包括第三状态或第四状态的情况下,按照第一调用状态对应的进程运行时长和各个进程的进程优先级,调度第一使用场景对应的多个进程。The second scheduling unit may be used to schedule the process corresponding to the first usage scenario according to the process running time corresponding to the first calling state and the process priority of each process when the first calling state includes the third state or the fourth state. Multiple processes.
在本公开一些实施例中,该进程调度模块540还可以包括第三调度单元和第四调度单元。In some embodiments of the present disclosure, the process scheduling module 540 may also include a third scheduling unit and a fourth scheduling unit.
该第三调度单元可以用于在第二调用状态包括第五状态的情况下,按照第二调用状态对应的进程运行时长和各个进程的进程参数,调度第二使用场景对应的进程。The third scheduling unit may be used to schedule the process corresponding to the second usage scenario according to the process running time corresponding to the second calling state and the process parameters of each process when the second calling state includes the fifth state.
该第四调度单元可以用于在第二调用状态包括第六状态的情况下,按照第二使用场景对应的进程运行时长,调度第二使用场景对应的进程。The fourth scheduling unit may be used to schedule the process corresponding to the second usage scenario according to the running time of the process corresponding to the second usage scenario when the second calling state includes the sixth state.
在本公开一些实施例中,该进程调度模块540还可以包括第七确定单元、第五调度单元和第六调度单元。In some embodiments of the present disclosure, the process scheduling module 540 may further include a seventh determination unit, a fifth scheduling unit, and a sixth scheduling unit.
该第七确定单元可以用于确定第一调用状态对应的时间分配数据,时间分配数据包括第一使用场景在每个调度周期内的第一进程运行总时长和第二使用场景在每个调度周期内的第二进程运行总时长。The seventh determination unit may be used to determine time allocation data corresponding to the first calling state. The time allocation data includes the total running time of the first process in each scheduling cycle for the first usage scenario and the total running time of the first process in each scheduling cycle for the second usage scenario. The total running time of the second process within.
该第五调度单元可以用于在每个调度周期内,基于第一进程运行总时长,按照第一调用状态对应的目标进程调度策略,调度第一使用场景对应的进程。The fifth scheduling unit may be used to schedule the process corresponding to the first usage scenario in each scheduling cycle based on the total running time of the first process and in accordance with the target process scheduling policy corresponding to the first calling state.
该第六调度单元可以用于在每个调度周期内,基于第二进程运行总时长,按照第二调用状态对应的目标进程调度策略,调度第二使用场景对应的进程。The sixth scheduling unit may be used to schedule the process corresponding to the second usage scenario in each scheduling cycle based on the total running time of the second process and in accordance with the target process scheduling policy corresponding to the second calling state.
需要说明的是,图5所示的进程调度装置500可以执行图1所示的方法实施例中的各个步骤,并且实现图1所示的方法实施例中的各个过程和效果,在此不做赘述。It should be noted that the process scheduling device 500 shown in Figure 5 can execute each step in the method embodiment shown in Figure 1 and realize each process and effect in the method embodiment shown in Figure 1, which will not be done here. Repeat.
图6示出了本公开实施例提供的一种进程调度设备的结构示意图。Figure 6 shows a schematic structural diagram of a process scheduling device provided by an embodiment of the present disclosure.
如图6所示,该进程调度设备可以包括处理器601以及存储有计算机程序指令的存储器602。As shown in Figure 6, the process scheduling device may include a processor 601 and a memory 602 storing computer program instructions.
在一些实施例中,上述处理器601可以包括中央处理器(CPU),或者特定集成电路(Application Specific Integrated Circuit,ASIC),或者可以被配置成实施本申请实施例的一个或多个集成电路。In some embodiments, the above-mentioned processor 601 may include a central processing unit (CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or may be configured to implement one or more integrated circuits of embodiments of the present application.
存储器602可以包括用于信息或指令的大容量存储器。举例来说而非限制,存储器602 可以包括硬盘驱动器(Hard Disk Drive,HDD)、软盘驱动器、闪存、光盘、磁光盘、磁带或通用串行总线(Universal Serial Bus,USB)驱动器或者两个及其以上这些的组合。在合适的情况下,存储器602可包括可移除或不可移除(或固定)的介质。在合适的情况下,存储器602可在综合网关设备的内部或外部。在特定实施例中,存储器602是非易失性固态存储器。在特定实施例中,存储器602包括只读存储器(Read-Only Memory,ROM)。在合适的情况下,该ROM可以是掩模编程的ROM、可编程ROM(Programmable ROM,PROM)、可擦除PROM(Electrical Programmable ROM,EPROM)、电可擦除PROM(Electrically Erasable Programmable ROM,EEPROM)、电可改写ROM(Electrically Alterable ROM,EAROM)或闪存,或者两个或及其以上这些的组合。Memory 602 may include bulk storage for information or instructions. By way of example, and not limitation, memory 602 It may include a Hard Disk Drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape or a Universal Serial Bus (USB) drive or a combination of two or more of these. Memory 602 may include removable or non-removable (or fixed) media, where appropriate. Memory 602 may be internal or external to the integrated gateway device, where appropriate. In certain embodiments, memory 602 is non-volatile solid-state memory. In a specific embodiment, memory 602 includes read-only memory (ROM). Under appropriate circumstances, the ROM can be a mask-programmed ROM, a programmable ROM (Programmable ROM, PROM), an erasable PROM (Electrically Programmable ROM, EPROM), an electrically erasable PROM (Electrically Erasable Programmable ROM, EEPROM). ), electrically rewritable ROM (Electrically Alterable ROM, EAROM) or flash memory, or a combination of two or more of these.
处理器601通过读取并执行存储器602中存储的计算机程序指令,以执行本公开实施例所提供的进程调度方法的步骤。The processor 601 reads and executes the computer program instructions stored in the memory 602 to execute the steps of the process scheduling method provided by the embodiment of the present disclosure.
在一个示例中,该进程调度设备还可包括收发器603和总线604。其中,如图6所示,处理器601、存储器602和收发器603通过总线604连接并完成相互间的通信。In one example, the process scheduling device may also include a transceiver 603 and a bus 604. Among them, as shown in Figure 6, the processor 601, the memory 602 and the transceiver 603 are connected through the bus 604 and complete communication with each other.
总线604包括硬件、软件或两者。举例来说而非限制,总线可包括加速图形端口(Accelerated Graphics Port,AGP)或其他图形总线、增强工业标准架构(Extended Industry Standard Architecture,EISA)总线、前端总线(Front Side BUS,FSB)、超传输(Hyper Transport,HT)互连、工业标准架构(Industrial Standard Architecture,ISA)总线、无限带宽互连、低引脚数(Low Pin Count,LPC)总线、存储器总线、微信道架构(Micro Channel Architecture,MCA)总线、***控件互连(Peripheral Component Interconnect,PCI)总线、PCI-Express(PCI-X)总线、串行高级技术附件(Serial Advanced Technology Attachment,SATA)总线、视频电子标准协会局部(Video Electronics Standards Association Local Bus,VLB)总线或其他合适的总线或者两个或更多个以上这些的组合。在合适的情况下,总线604可包括一个或多个总线。尽管本申请实施例描述和示出了特定的总线,但本申请考虑任何合适的总线或互连。Bus 604 includes hardware, software, or both. By way of example, but not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side BUS (FSB), an Ultra Transmission (Hyper Transport, HT) interconnect, Industrial Standard Architecture (ISA) bus, infinite bandwidth interconnect, Low Pin Count (LPC) bus, memory bus, Micro Channel Architecture , MCA) bus, Peripheral Component Interconnect (PCI) bus, PCI-Express (PCI-X) bus, Serial Advanced Technology Attachment (SATA) bus, Video Electronics Standards Association part (Video Electronics Standards Association Local Bus (VLB) bus or other suitable bus or a combination of two or more of these. Where appropriate, bus 604 may include one or more buses. Although the embodiments of this application describe and illustrate a specific bus, this application contemplates any suitable bus or interconnection.
本公开实施例还提供了一种计算机可读存储介质,该存储介质可以存储有计算机程序,当计算机程序被处理器执行时,使得处理器实现本公开实施例所提供的进程调度方法。Embodiments of the present disclosure also provide a computer-readable storage medium, which can store a computer program. When the computer program is executed by a processor, the processor implements the process scheduling method provided by the embodiment of the present disclosure.
上述的存储介质可以例如包括计算机程序指令的存储器602,上述指令可由进程调度设备的处理器601执行以完成本公开实施例所提供的进程调度方法。在一些实施例中,存储介质可以是非临时性计算机可读存储介质,例如,非临时性计算机可读存储介质可以是ROM、随机存取存储器(Random Access Memory,RAM)、光盘只读存储器(Compact Disc ROM,CD-ROM)、磁带、软盘和光数据存储设备等。The above-mentioned storage medium may, for example, include a memory 602 of computer program instructions, which may be executed by the processor 601 of the process scheduling device to complete the process scheduling method provided by the embodiment of the present disclosure. In some embodiments, the storage medium may be a non-transitory computer-readable storage medium. For example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (Random Access Memory, RAM), a compact disk read-only memory (Compact Disk). Disc ROM, CD-ROM), tapes, floppy disks and optical data storage devices, etc.
本公开实施例还提供了一种计算机程序产品,包括计算机程序或指令,该计算机程序或指令被处理器执行时,实现本公开实施例所提供的进程调度方法。An embodiment of the present disclosure also provides a computer program product, which includes a computer program or instructions. When the computer program or instructions are executed by a processor, the process scheduling method provided by the embodiment of the present disclosure is implemented.
需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”意在涵盖非排他性的包含,从而使得 包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。It should be noted that in this article, relational terms such as “first” and “second” are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these There is no such actual relationship or sequence between entities or operations. Furthermore, the term "including" is intended to cover a non-exclusive inclusion such that A process, method, article or apparatus that includes a list of elements includes not only those elements but also other elements not expressly listed or that are inherent to the process, method, article or apparatus.
以上所述仅是本公开的具体实施方式,使本领域技术人员能够理解或实现本公开。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本公开的精神或范围的情况下,在其它实施例中实现。因此,本公开将不会被限制于本文所述的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。 The above descriptions are only specific embodiments of the present disclosure, enabling those skilled in the art to understand or implement the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be practiced in other embodiments without departing from the spirit or scope of the disclosure. Therefore, the present disclosure is not to be limited to the embodiments described herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (27)

  1. 一种进程调度方法,包括:A process scheduling method, including:
    获取用户对目标车辆进行操作时产生的实时操作行为;Obtain the real-time operation behavior generated when the user operates the target vehicle;
    基于所述实时操作行为,确定所述目标车辆对应的目标使用场景;Based on the real-time operation behavior, determine the target usage scenario corresponding to the target vehicle;
    在多个预设进程调度策略中,选择所述目标车辆在所述目标使用场景中使用的目标进程调度策略;Among multiple preset process scheduling strategies, select the target process scheduling strategy used by the target vehicle in the target usage scenario;
    按照所述目标进程调度策略,调度所述目标车辆的操作***已创建的多个进程。According to the target process scheduling policy, multiple processes created by the operating system of the target vehicle are scheduled.
  2. 根据权利要求1所述的方法,其中,所述基于所述实时操作行为,确定所述目标车辆对应的目标使用场景之前,所述方法还包括:The method according to claim 1, wherein before determining the target usage scenario corresponding to the target vehicle based on the real-time operating behavior, the method further includes:
    获取所述目标车辆当前所处的实时使用场景;Obtain the real-time usage scenario where the target vehicle is currently located;
    其中,所述基于所述实时操作行为,确定所述目标车辆对应的目标使用场景,包括:Wherein, determining the target usage scenario corresponding to the target vehicle based on the real-time operation behavior includes:
    根据所述实时使用场景和所述实时操作行为,确定所述目标车辆即将进入的目标使用场景。According to the real-time usage scenario and the real-time operation behavior, the target usage scenario that the target vehicle is about to enter is determined.
  3. 根据权利要求2所述的方法,其中,在所述基于所述实时操作行为,确定所述目标车辆对应的目标使用场景之后,所述方法还包括:The method according to claim 2, wherein after determining the target usage scenario corresponding to the target vehicle based on the real-time operating behavior, the method further includes:
    将所述实时使用场景更新为所述目标使用场景。Update the real-time usage scenario to the target usage scenario.
  4. 根据权利要求1所述的方法,其中,所述在多个预设进程调度策略中,选择所述目标车辆在所述目标使用场景中使用的目标进程调度策略之前,所述方法还包括:The method according to claim 1, wherein before selecting the target process scheduling strategy used by the target vehicle in the target usage scenario among the plurality of preset process scheduling strategies, the method further includes:
    获取所述目标车辆的实时车辆数据;Obtain real-time vehicle data of the target vehicle;
    基于所述实时车辆数据,确定所述目标车辆在所述目标使用场景下所处的目标调用状态;Based on the real-time vehicle data, determine the target calling state of the target vehicle in the target usage scenario;
    其中,所述在多个预设进程调度策略中,选择所述目标车辆在所述目标使用场景中使用的目标进程调度策略,包括:Wherein, selecting the target process scheduling strategy used by the target vehicle in the target usage scenario among multiple preset process scheduling strategies includes:
    在所述多个预设进程调度策略中,选择所述目标车辆在处于所述目标使用场景下的所述目标调用状态时使用的目标进程调度策略。Among the plurality of preset process scheduling strategies, select a target process scheduling strategy used by the target vehicle when it is in the target calling state under the target usage scenario.
  5. 根据权利要求4所述的方法,其中,所述目标使用场景包括第一使用场景,所述实时车辆数据包括实时行驶速度,所述目标调用状态包括第一调用状态;The method of claim 4, wherein the target usage scenario includes a first usage scenario, the real-time vehicle data includes real-time driving speed, and the target call state includes a first call state;
    其中,所述基于所述实时车辆数据,确定所述目标车辆在所述目标使用场景下所处的目标调用状态,包括:Wherein, based on the real-time vehicle data, determining the target calling state of the target vehicle in the target usage scenario includes:
    在多个预设速度范围中,确定所述实时行驶速度落入的目标速度范围;Determine the target speed range within which the real-time driving speed falls among multiple preset speed ranges;
    将所述目标速度范围对应的调用状态作为所述目标车辆在所述第一使用场景下所处的所述第一调用状态。The calling state corresponding to the target speed range is used as the first calling state of the target vehicle in the first usage scenario.
  6. 根据权利要求4所述的方法,其中,所述目标使用场景包括第二使用场景,所述实时车辆数据包括实时算力值,所述目标调用状态包括第二调用状态;The method according to claim 4, wherein the target usage scenario includes a second usage scenario, the real-time vehicle data includes a real-time computing power value, and the target call status includes a second call status;
    其中,所述基于所述实时车辆数据,确定所述目标车辆在所述目标使用场景下所处的目标调用状态,包括: Wherein, based on the real-time vehicle data, determining the target calling state of the target vehicle in the target usage scenario includes:
    在多个预设算力范围中,确定所述实时算力值落入的目标算力范围;Determine the target computing power range within which the real-time computing power value falls among multiple preset computing power ranges;
    将所述目标算力范围对应的调用状态作为所述目标车辆在所述第二使用场景下所处的所述第二调用状态。The calling state corresponding to the target computing power range is used as the second calling state of the target vehicle in the second usage scenario.
  7. 根据权利要求4所述的方法,其中,所述目标使用场景包括同时具备第一使用场景和第二使用场景的混合使用场景,所述实时车辆数据包括实时行驶速度和实时算力值,所述目标调用状态包括第一调用状态和第二调用状态;The method according to claim 4, wherein the target usage scenario includes a mixed usage scenario having both a first usage scenario and a second usage scenario, the real-time vehicle data includes real-time driving speed and real-time computing power value, and the The target call state includes a first call state and a second call state;
    其中,所述基于所述实时车辆数据,确定所述目标车辆在所述目标使用场景下所处的目标调用状态,包括:Wherein, based on the real-time vehicle data, determining the target calling state of the target vehicle in the target usage scenario includes:
    在多个预设速度范围中,确定所述实时行驶速度落入的目标速度范围;Determine the target speed range within which the real-time driving speed falls among multiple preset speed ranges;
    将所述目标速度范围对应的调用状态作为所述目标车辆在所述第一使用场景下所处的所述第一调用状态;Use the calling state corresponding to the target speed range as the first calling state of the target vehicle in the first usage scenario;
    基于所述第一调用状态和所述实时算力值,确定所述目标车辆在所述第二使用场景下所处的第二调用状态。Based on the first calling state and the real-time computing power value, a second calling state of the target vehicle in the second usage scenario is determined.
  8. 根据权利要求7所述的方法,其中,所述基于所述第一调用状态和所述实时算力值,确定所述目标车辆在所述第二使用场景下所处的第二调用状态,包括:The method according to claim 7, wherein determining the second calling state of the target vehicle in the second usage scenario based on the first calling state and the real-time computing power value includes: :
    在所述第一调用状态属于第一类型调用状态的情况下,基于所述实时算力值,确定所述第二调用状态;If the first calling state belongs to the first type of calling state, determine the second calling state based on the real-time computing power value;
    在所述第一调用状态属于第二类型调用状态的情况下,将预设车调用态作为所述第二调用状态;When the first calling state belongs to the second type of calling state, the preset vehicle calling state is used as the second calling state;
    在所述第一调用状态属于第三类型调用状态的情况下,所述第二调用状态设置为禁止调用状态。In the case where the first calling state belongs to the third type of calling state, the second calling state is set to a prohibited calling state.
  9. 根据权利要求6至8中任一项所述的方法,其中,所述获取所述目标车辆的实时车辆数据,包括:The method according to any one of claims 6 to 8, wherein said obtaining the real-time vehicle data of the target vehicle includes:
    创建算例统计进程;Create a calculation case statistics process;
    通过所述算例统计进程统计自身的运行数据;Count its own operating data through the calculation example statistics process;
    通过所述算例统计进程计算所述运行数据对应的实时算力值。The real-time computing power value corresponding to the running data is calculated through the calculation example statistics process.
  10. 根据权利要求5或7所述的方法,其中,所述按照所述目标进程调度策略,调度所述目标车辆的操作***已创建的多个进程,包括:The method according to claim 5 or 7, wherein the scheduling of multiple processes created by the operating system of the target vehicle according to the target process scheduling policy includes:
    在所述第一调用状态包括第一状态或第二状态的情况下,按照所述第一调用状态对应的进程运行时长和进程挂起时长,调度所述第一使用场景对应的进程;When the first calling state includes the first state or the second state, schedule the process corresponding to the first usage scenario according to the process running time and process suspension time corresponding to the first calling state;
    在所述第一调用状态包括第三状态或第四状态的情况下,按照所述第一调用状态对应的进程运行时长、进程挂起时长和各个所述进程的进程优先级,调度所述第一使用场景对应的多个进程。In the case where the first calling state includes the third state or the fourth state, the third calling state is scheduled according to the process running time, the process suspending time and the process priority of each process corresponding to the first calling state. Multiple processes corresponding to one usage scenario.
  11. 根据权利要求6或7所述的方法,其中,所述按照所述目标进程调度策略,调度所述目标车辆的操作***已创建的多个进程,包括: The method according to claim 6 or 7, wherein the scheduling of multiple processes created by the operating system of the target vehicle according to the target process scheduling policy includes:
    在所述第二调用状态包括第五状态的情况下,按照所述第二调用状态对应的各个所述进程的进程参数,调度所述第二使用场景对应的进程;If the second calling state includes the fifth state, schedule the process corresponding to the second usage scenario according to the process parameters of each process corresponding to the second calling state;
    在所述第二调用状态包括第六状态的情况下,按照所述第二使用场景对应的进程运行时长,调度所述第二使用场景对应的进程。When the second calling state includes the sixth state, the process corresponding to the second usage scenario is scheduled according to the running time of the process corresponding to the second usage scenario.
  12. 根据权利要求7所述的方法,其中,所述按照所述目标进程调度策略,调度所述目标车辆的操作***已创建的多个进程,包括:The method according to claim 7, wherein the scheduling of multiple processes created by the operating system of the target vehicle according to the target process scheduling policy includes:
    确定所述第一调用状态对应的时间分配数据,所述时间分配数据包括所述第一使用场景在每个调度周期内的第一进程运行总时长和所述第二使用场景在每个调度周期内的第二进程运行总时长;Determine the time allocation data corresponding to the first calling state. The time allocation data includes the total running time of the first process in each scheduling cycle of the first usage scenario and the total running time of the first process in each scheduling cycle of the second usage scenario. The total running time of the second process within
    在每个所述调度周期内,基于所述第一进程运行总时长,按照所述第一调用状态对应的目标进程调度策略,调度所述第一使用场景对应的进程;In each of the scheduling cycles, based on the total running time of the first process and in accordance with the target process scheduling policy corresponding to the first calling state, schedule the process corresponding to the first usage scenario;
    在每个所述调度周期内,基于所述第二进程运行总时长,按照所述第二调用状态对应的目标进程调度策略,调度所述第二使用场景对应的进程。In each scheduling period, based on the total running time of the second process, the process corresponding to the second usage scenario is scheduled according to the target process scheduling policy corresponding to the second calling state.
  13. 一种进程调度装置,包括:A process scheduling device, including:
    第一获取模块,用于获取用户对目标车辆进行操作时产生的实时操作行为;The first acquisition module is used to acquire the real-time operation behavior generated when the user operates the target vehicle;
    场景确定模块,用于基于所述实时操作行为,确定所述目标车辆对应的目标使用场景;A scene determination module, configured to determine the target usage scenario corresponding to the target vehicle based on the real-time operation behavior;
    策略选择模块,用于在多个预设进程调度策略中,选择所述目标车辆在所述目标使用场景中使用的目标进程调度策略;A strategy selection module, configured to select a target process scheduling strategy used by the target vehicle in the target usage scenario among multiple preset process scheduling strategies;
    进程调度模块,用于按照所述目标进程调度策略,调度所述目标车辆的操作***已创建的多个进程。A process scheduling module, configured to schedule multiple processes created by the operating system of the target vehicle according to the target process scheduling policy.
  14. 根据权利要求13所述的装置,还包括:The device of claim 13, further comprising:
    第二获取模块,用于获取所述目标车辆当前所处的实时使用场景;The second acquisition module is used to acquire the real-time usage scenario where the target vehicle is currently located;
    其中,所述第二获取模块包括:Wherein, the second acquisition module includes:
    第一确定单元,用于根据所述实时使用场景和所述实时操作行为,确定所述目标车辆即将进入的目标使用场景。The first determination unit is configured to determine the target usage scenario that the target vehicle is about to enter based on the real-time usage scenario and the real-time operation behavior.
  15. 根据权利要求14所述的装置,还包括:The device of claim 14, further comprising:
    场景变更模块,用于将所述实时使用场景更新为所述目标使用场景。A scene change module, configured to update the real-time usage scenario to the target usage scenario.
  16. 根据权利要求13所述的装置,还包括:The device of claim 13, further comprising:
    第三获取模块,用于获取所述目标车辆的实时车辆数据;The third acquisition module is used to acquire real-time vehicle data of the target vehicle;
    状态确定模块,用于基于所述实时车辆数据,确定所述目标车辆在所述目标使用场景下所处的目标调用状态;A state determination module, configured to determine the target calling state of the target vehicle in the target usage scenario based on the real-time vehicle data;
    其中,所述策略选择模块包括:Wherein, the strategy selection module includes:
    策略确定单元,用于在所述多个预设进程调度策略中,选择所述目标车辆在处于所述目标使用场景下的所述目标调用状态时使用的目标进程调度策略。 A policy determination unit configured to select a target process scheduling policy used by the target vehicle when it is in the target calling state in the target usage scenario among the plurality of preset process scheduling policies.
  17. 根据权利要求16所述的装置,其中,所述目标使用场景包括第一使用场景,所述实时车辆数据包括实时行驶速度,所述目标调用状态包括第一调用状态;The device of claim 16, wherein the target usage scenario includes a first usage scenario, the real-time vehicle data includes real-time driving speed, and the target call state includes a first call state;
    其中,所述状态确定模块包括:Wherein, the status determination module includes:
    第三确定单元,用于在多个预设速度范围中,确定所述实时行驶速度落入的目标速度范围;A third determination unit configured to determine the target speed range within which the real-time driving speed falls among multiple preset speed ranges;
    第一变更单元,用于将所述目标速度范围对应的调用状态作为所述目标车辆在所述第一使用场景下所处的所述第一调用状态。A first changing unit configured to use the calling state corresponding to the target speed range as the first calling state of the target vehicle in the first usage scenario.
  18. 根据权利要求16所述的装置,其中,所述目标使用场景包括第二使用场景,所述实时车辆数据包括实时算力值,所述目标调用状态包括第二调用状态;The device according to claim 16, wherein the target usage scenario includes a second usage scenario, the real-time vehicle data includes a real-time computing power value, and the target call state includes a second call state;
    其中,所述状态确定模块包括:Wherein, the status determination module includes:
    第四确定单元,用于在多个预设算力范围中,确定所述实时算力值落入的目标算力范围;A fourth determination unit, configured to determine the target computing power range within which the real-time computing power value falls within a plurality of preset computing power ranges;
    第二变更单元,用于将所述目标算力范围对应的调用状态作为所述目标车辆在所述第二使用场景下所处的所述第二调用状态。The second changing unit is configured to use the calling state corresponding to the target computing power range as the second calling state of the target vehicle in the second usage scenario.
  19. 根据权利要求16所述的装置,其中,所述目标使用场景包括同时具备第一使用场景和第二使用场景的混合使用场景,所述实时车辆数据包括实时行驶速度和实时算力值,所述目标调用状态包括第一调用状态和第二调用状态;The device according to claim 16, wherein the target usage scenario includes a mixed usage scenario having both a first usage scenario and a second usage scenario, the real-time vehicle data includes real-time driving speed and real-time computing power value, and the The target call state includes a first call state and a second call state;
    其中,所述状态确定模块包括:Wherein, the status determination module includes:
    第五确定单元,用于在多个预设速度范围中,确定所述实时行驶速度落入的目标速度范围;A fifth determination unit configured to determine the target speed range within which the real-time driving speed falls among multiple preset speed ranges;
    第三变更单元,用于将所述目标速度范围对应的调用状态作为所述目标车辆在所述第一使用场景下所处的所述第一调用状态;A third changing unit configured to use the calling state corresponding to the target speed range as the first calling state of the target vehicle in the first usage scenario;
    第六确定单元,用于基于所述第一调用状态和所述实时算力值,确定所述目标车辆在所述第二使用场景下所处的第二调用状态。A sixth determination unit, configured to determine the second calling state of the target vehicle in the second usage scenario based on the first calling state and the real-time computing power value.
  20. 根据权利要求19所述的装置,其中,所述第六确定单元包括:The device according to claim 19, wherein the sixth determining unit includes:
    第一确定子单元,用于在所述第一调用状态属于第一类型调用状态的情况下,基于所述实时算力值,确定所述第二调用状态;A first determination subunit configured to determine the second calling state based on the real-time computing power value when the first calling state belongs to the first type of calling state;
    第二确定子单元,用于在所述第一调用状态属于第二类型调用状态的情况下,将预设车调用态作为所述第二调用状态;a second determination subunit, configured to use the preset vehicle calling state as the second calling state when the first calling state belongs to the second type of calling state;
    第三确定子单元,用于在所述第一调用状态属于第三类型调用状态的情况下,所述第二调用状态设置为禁止调用状态。The third determination subunit is configured to set the second calling state to a prohibited calling state when the first calling state belongs to the third type of calling state.
  21. 根据权利要求18至20中任一项所述的装置,其中,所述进程调度装置包括:The device according to any one of claims 18 to 20, wherein the process scheduling device includes:
    进程创建单元,用于创建算例统计进程;Process creation unit, used to create calculation example statistics processes;
    数据统计单元,用于通过所述算例统计进程统计自身的运行数据;A data statistics unit is used to count its own operating data through the calculation example statistics process;
    算力计算单元,用于通过所述算例统计进程计算所述运行数据对应的实时算力值。A computing power calculation unit is used to calculate the real-time computing power value corresponding to the operating data through the calculation example statistics process.
  22. 根据权利要求17或19所述的装置,其中,所述进程调度模块包括: The device according to claim 17 or 19, wherein the process scheduling module includes:
    第一调度单元,用于在所述第一调用状态包括第一状态或第二状态的情况下,按照所述第一调用状态对应的进程运行时长和进程挂起时长,调度所述第一使用场景对应的进程;A first scheduling unit configured to schedule the first usage according to the process running time and process suspension time corresponding to the first calling state when the first calling state includes the first state or the second state. The process corresponding to the scene;
    第二调度单元,用于在所述第一调用状态包括第三状态或第四状态的情况下,按照所述第一调用状态对应的进程运行时长、进程挂起时长和各个所述进程的进程优先级,调度所述第一使用场景对应的多个进程。The second scheduling unit is configured to, when the first calling state includes the third state or the fourth state, calculate the process running time, the process suspending time and the process of each process according to the process running time corresponding to the first calling state. Priority, schedule multiple processes corresponding to the first usage scenario.
  23. 根据权利要求18或19所述的装置,其中,所述进程调度模块包括:The device according to claim 18 or 19, wherein the process scheduling module includes:
    第三调度单元,用于在所述第二调用状态包括第五状态的情况下,按照所述第二调用状态对应的各个所述进程的进程参数,调度所述第二使用场景对应的进程;A third scheduling unit configured to schedule the process corresponding to the second usage scenario according to the process parameters of each process corresponding to the second calling state when the second calling state includes the fifth state;
    第四调度单元,用于在所述第二调用状态包括第六状态的情况下,按照所述第二使用场景对应的进程运行时长,调度所述第二使用场景对应的进程。The fourth scheduling unit is configured to schedule the process corresponding to the second usage scenario according to the process running time corresponding to the second usage scenario when the second calling state includes the sixth state.
  24. 根据权利要求19所述的装置,其中,所述进程调度模块包括:The device according to claim 19, wherein the process scheduling module includes:
    第七确定单元,用于确定所述第一调用状态对应的时间分配数据,所述时间分配数据包括所述第一使用场景在每个调度周期内的第一进程运行总时长和所述第二使用场景在每个调度周期内的第二进程运行总时长;The seventh determination unit is used to determine the time allocation data corresponding to the first calling state. The time allocation data includes the total running time of the first process in each scheduling cycle of the first usage scenario and the second The total running time of the second process in each scheduling cycle of the usage scenario;
    第五调度单元,用于在每个所述调度周期内,基于所述第一进程运行总时长,按照所述第一调用状态对应的目标进程调度策略,调度所述第一使用场景对应的进程;The fifth scheduling unit is configured to schedule the process corresponding to the first usage scenario in each scheduling cycle based on the total running time of the first process and in accordance with the target process scheduling policy corresponding to the first calling state. ;
    第六调度单元,用于在每个所述调度周期内,基于所述第二进程运行总时长,按照所述第二调用状态对应的目标进程调度策略,调度所述第二使用场景对应的进程。A sixth scheduling unit, configured to schedule the process corresponding to the second usage scenario in each scheduling cycle based on the total running time of the second process and in accordance with the target process scheduling policy corresponding to the second calling state. .
  25. 一种进程调度设备,包括:A process scheduling device, including:
    处理器;processor;
    存储器,用于存储可执行指令;Memory, used to store executable instructions;
    其中,所述处理器用于从所述存储器中读取所述可执行指令,并执行所述可执行指令以实现上述权利要求1至12中任一项所述的进程调度方法。Wherein, the processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the process scheduling method according to any one of claims 1 to 12.
  26. 一种计算机可读存储介质,所述存储介质存储有计算机程序,当所述计算机程序被处理器执行时,使得处理器实现用上述权利要求1至12中任一项所述的进程调度方法。A computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the processor implements the process scheduling method described in any one of claims 1 to 12.
  27. 一种计算机程序产品,包括计算机程序或指令,所述计算机程序或指令被处理器执行时,实现上述权利要求1至12中任一项所述的进程调度方法。 A computer program product includes a computer program or instructions. When the computer program or instructions are executed by a processor, the process scheduling method described in any one of claims 1 to 12 is implemented.
PCT/CN2023/081906 2022-03-18 2023-03-16 Process scheduling method, apparatus, and device, and medium WO2023174373A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210272217.2A CN116804939A (en) 2022-03-18 2022-03-18 Process scheduling method, device, equipment and medium
CN202210272217.2 2022-03-18

Publications (1)

Publication Number Publication Date
WO2023174373A1 true WO2023174373A1 (en) 2023-09-21

Family

ID=88022368

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/081906 WO2023174373A1 (en) 2022-03-18 2023-03-16 Process scheduling method, apparatus, and device, and medium

Country Status (2)

Country Link
CN (1) CN116804939A (en)
WO (1) WO2023174373A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109353345A (en) * 2018-10-29 2019-02-19 百度在线网络技术(北京)有限公司 Control method for vehicle, device, equipment, medium and vehicle
CN111666140A (en) * 2020-05-28 2020-09-15 北京百度网讯科技有限公司 Resource scheduling method, device, equipment and storage medium
CN113626155A (en) * 2021-10-11 2021-11-09 国汽智控(北京)科技有限公司 Control method, equipment and storage medium for computing resources in edge cloud server
CN114036390A (en) * 2021-11-17 2022-02-11 中国第一汽车股份有限公司 Scene service recommendation method and device, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109353345A (en) * 2018-10-29 2019-02-19 百度在线网络技术(北京)有限公司 Control method for vehicle, device, equipment, medium and vehicle
CN111666140A (en) * 2020-05-28 2020-09-15 北京百度网讯科技有限公司 Resource scheduling method, device, equipment and storage medium
CN113626155A (en) * 2021-10-11 2021-11-09 国汽智控(北京)科技有限公司 Control method, equipment and storage medium for computing resources in edge cloud server
CN114036390A (en) * 2021-11-17 2022-02-11 中国第一汽车股份有限公司 Scene service recommendation method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN116804939A (en) 2023-09-26

Similar Documents

Publication Publication Date Title
CN102662889B (en) Interruption processing method, interrupt control unit and processor
JP5861718B2 (en) Electronic control device for vehicle and data receiving method
CN104321716B (en) Use device idle duration information optimizes energy efficiency
CN107681933B (en) Control method and system for driving stepping motor
WO2024041004A1 (en) Method, apparatus and system for classification and variable-frequency transmission of electric vehicle data
CN114390000A (en) TSN traffic scheduling method based on enqueue shaping and related equipment
CN113472681A (en) Flow rate limiting method and device
WO2023174373A1 (en) Process scheduling method, apparatus, and device, and medium
CN112477621B (en) Electric vehicle torque control method and device and computer readable storage medium
CN109683470A (en) A kind of software and hardware self-adaptive matching method, device and driving device
CN113682180A (en) Input power limited charging method, device, electronic equipment and storage medium
CN117271096A (en) Scheduling method, electronic device, and computer-readable storage medium
EP4024166A1 (en) Data scanning method, mobile terminal, and non-volatile computer-readable storage medium
CN107544573B (en) Control method and system for driving stepping motor
CN114040449A (en) Terminal network speed control method, device, terminal and storage medium
WO2023131264A1 (en) Switching control method for hybrid vehicle, vehicle controller, and hybrid vehicle
CN111385219B (en) Method for realizing high-performance high-precision software TCP speed limit by hardware interrupt
CN104932947B (en) A kind of fence synchronous method and equipment
CN114274977B (en) Automatic driving control method, device, equipment and storage medium
CN103106111B (en) The detection system of task priority reversion in multiple task operating system and method
CN114645766B (en) Fan control method and device and control equipment
CN113495781B (en) Task scheduling method, device, equipment and readable storage medium
CN115499380B (en) TSN hybrid scheduling method, equipment and storage medium of vehicle-mounted Ethernet
JP2577146B2 (en) Priority control circuit
CN115263572B (en) Vehicle, engine noise reduction control method and related equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23769875

Country of ref document: EP

Kind code of ref document: A1