CN112306685B - Task isolation method, device, electronic equipment and computer readable medium - Google Patents

Task isolation method, device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN112306685B
CN112306685B CN202011185902.9A CN202011185902A CN112306685B CN 112306685 B CN112306685 B CN 112306685B CN 202011185902 A CN202011185902 A CN 202011185902A CN 112306685 B CN112306685 B CN 112306685B
Authority
CN
China
Prior art keywords
task
isolation
target
environment
isolation environment
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202011185902.9A
Other languages
Chinese (zh)
Other versions
CN112306685A (en
Inventor
陈海东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Douyin Vision Co Ltd
Original Assignee
Douyin Vision Co Ltd
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 Douyin Vision Co Ltd filed Critical Douyin Vision Co Ltd
Priority to CN202011185902.9A priority Critical patent/CN112306685B/en
Publication of CN112306685A publication Critical patent/CN112306685A/en
Application granted granted Critical
Publication of CN112306685B publication Critical patent/CN112306685B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request

Abstract

The disclosure provides a task isolation method, a task isolation device, electronic equipment and a computer readable medium, and relates to the technical field of information processing. The task isolation method comprises the following steps: receiving a task processing request sent by a management server, wherein the task processing request comprises a target isolation environment identifier and a target task; and distributing the target task to a target task isolation environment corresponding to the target isolation environment identifier in the task isolation environments so as to execute the target task in the target task isolation environment, wherein each task isolation environment corresponds to a preset account, and data between every two preset accounts are isolated from each other. According to the technical scheme provided by the disclosure, the executed target task cannot be affected with tasks in other task isolation environments, the environment conflict of parallel running of multiple tasks in one task environment can be eliminated, the tasks can be quickly executed in the target task isolation environment, the tasks can be respectively run in different task isolation environments, and the task running efficiency is improved.

Description

Task isolation method, device, electronic equipment and computer readable medium
Technical Field
The embodiment of the disclosure relates to the technical field of information processing, in particular to a task isolation method, a task isolation device, electronic equipment and a computer readable medium.
Background
With the development of the internet and intelligent terminals, various application programs are increased, and the processing speed of various terminals is also required to be higher. Parallel running of the same type of task is often required in order to increase the processing speed of the terminal.
In the prior art, when a task terminal executing a task is running a plurality of tasks of the same type in parallel, the problem of stability of task operation is further affected due to parameter configuration and file read-write conflict, so that the parallel quantity of the tasks has to be reduced.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
In a first aspect, a task isolation method is provided, the method including:
receiving a task processing request sent by a management server, wherein the task processing request comprises a target isolation environment identifier and a target task;
And distributing the target task to a target task isolation environment corresponding to the target isolation environment identifier in a plurality of task isolation environments so as to execute the target task in the target task isolation environment, wherein each task isolation environment corresponds to a preset account, and data between every two preset accounts are isolated from each other.
In a second aspect, there is also provided a task isolation method, the method comprising:
receiving task isolation environment configuration information sent by each task terminal, wherein the task isolation environment configuration information is used for indicating corresponding functional characteristics and isolation environment identifiers of a plurality of task isolation environments supported by the task terminal, and the functional characteristics are used for identifying service functions supported by the task isolation environments;
creating a task environment characteristic index table according to the received multiple task isolation environment configuration information, wherein the task environment characteristic index table is used for maintaining association relations among all isolation environment identifiers, task terminals and functional characteristics;
responding to a target task triggering operation, determining functional characteristics corresponding to the description information according to the description information of the target task, and generating a task processing request, wherein the task processing request comprises a target isolation environment identifier matched with the target task and the target task;
And determining a target task terminal associated with the target isolation environment identifier based on the task environment characteristic index table, and sending the task processing request to the target task terminal to instruct the target task terminal to process the target task.
In a third aspect, there is also provided a task isolation device, the device comprising:
the request receiving module is used for receiving a task processing request sent by the management server, wherein the task processing request comprises a target isolation environment identifier and a target task;
the allocation module is used for allocating the target task to a target task isolation environment corresponding to the target isolation environment identifier in a plurality of task isolation environments so as to execute the target task in the target task isolation environment, wherein each task isolation environment corresponds to one preset account, and data between every two preset accounts are isolated from each other.
In a fourth aspect, there is also provided a task isolation device, the device comprising:
the device comprises an identifier receiving module, a task isolation environment processing module and a task isolation environment processing module, wherein the identifier receiving module is used for receiving task isolation environment configuration information sent by each of a plurality of task terminals, the task isolation environment configuration information is used for indicating respectively corresponding functional characteristics and isolation environment identifiers of a plurality of task isolation environments supported by the task terminals, and the functional characteristics are used for identifying service functions supported by the task isolation environments;
The system comprises an index creation module, a task environment feature index table, a task terminal and a function feature, wherein the index creation module is used for creating a task environment feature index table according to a plurality of received task isolation environment configuration information, and the task environment feature index table is used for maintaining association relations among all isolation environment identifiers, task terminals and function features;
the request generation module is used for responding to target task triggering operation, determining functional characteristics corresponding to the description information according to the description information of the target task, and generating a task processing request, wherein the task processing request comprises a target isolation environment identifier matched with the target task and the target task;
and the sending module is used for determining a target task terminal associated with the target isolation environment identifier based on the task environment characteristic index table and sending the task processing request to the target task terminal so as to instruct the target task terminal to process the target task.
In a fifth aspect, there is also provided an electronic device including:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: the task isolation method shown in the first aspect or the second aspect of the present disclosure is performed.
In a sixth aspect, there is also provided a computer readable medium having stored thereon a computer program which when executed by a processor implements the task isolation method of the first or second aspect of the present disclosure.
Compared with the prior art, the task isolation method, device, electronic equipment and medium provided by the embodiment of the disclosure can distribute the target task to the target task isolation environment corresponding to the account by receiving the task processing request, the target task isolation environment corresponds to the target isolation environment identification of the task processing request, the target task can be normally executed in the target task isolation environment, when the target task is executed in the target task isolation environment, the executed target task cannot be influenced with the tasks in other task isolation environments, the environment conflict of parallel running of multiple paths of tasks in one task environment can be eliminated, the task can be quickly executed in the target task isolation environment, the different task isolation environments can respectively run the task, and the task running efficiency is improved.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
Fig. 1 is an application environment schematic diagram of a task isolation method provided in an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of a task isolation method according to an embodiment of the disclosure;
fig. 3 is a schematic flow chart of a task isolation method according to an embodiment of the disclosure;
FIG. 4 is a timing diagram of a task isolation method according to an embodiment of the disclosure;
fig. 5 is a schematic structural diagram of a task isolation device according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a task isolation device according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of an electronic device with task isolation according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is 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"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are used merely to distinguish one device, module, or unit from another device, module, or unit, and are not intended to limit the order or interdependence of the functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
The task isolation method, the task isolation device, the task terminal, the management terminal and the medium provided by the disclosure aim to solve the technical problems in the prior art.
The following describes the technical solutions of the present disclosure and how the technical solutions of the present disclosure solve the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present disclosure will be described below with reference to the accompanying drawings.
The task isolation method provided by the disclosure can be applied to an application environment as shown in fig. 1. Specifically, the task terminals may include a plurality of task terminals, and the embodiments of the present disclosure are illustrated by 2 examples, including a task terminal 101a and a task terminal 101b, where the task terminal 101a or the task terminal 101b receives a task processing request sent by the management server 102, and the task processing request includes a target isolation environment identifier and a target task; the task terminal 101a or the task terminal 101b distributes the target task to a target task isolation environment corresponding to the target isolation environment identifier in a plurality of task isolation environments so as to execute the target task in the target task isolation environment, wherein each task isolation environment corresponds to a preset account, and data between every two preset accounts are isolated from each other.
Those skilled in the art will appreciate that the task terminal 101a, the task terminal 101b, and the management server 102 may be terminals to execute corresponding programs. In other embodiments, the management server 102 may be replaced with a server.
As will be appreciated by those skilled in the art, a "terminal" as used herein may be a cell phone, tablet computer, PDA (Personal Digital Assistant ), MID (Mobile Internet Device, mobile internet device), etc.; the "server" may be implemented as a stand-alone server or as a server cluster composed of a plurality of servers.
Referring to fig. 2, an embodiment of the present disclosure provides a task isolation method, which may be applied to the task terminal shown in fig. 1, and the method includes:
step S201: and receiving a task processing request sent by the management server, wherein the task processing request comprises a target isolation environment identifier and a target task.
The task terminal is in communication connection with the management server, and the communication connection mode is not limited. Optionally, the task terminal and the management server are in communication connection through a network long connection technology. The task terminal can be preset with a plurality of accounts and task isolation environments corresponding to the accounts respectively, each account is allocated with a task isolation environment, and each task isolation environment comprises a corresponding isolation environment identifier. The task isolation environment is used for running tasks, and different task isolation environments can run different tasks. The data between every two accounts are mutually isolated, and the isolation effect of the task isolation environment under one account and the task isolation environment under the other account is better. When different tasks are operated in different task isolation environments, the tasks operated in the different task isolation environments are not mutually influenced, so that conflicts caused by parameter configuration of the different tasks and file reading and writing performed by the tasks are avoided, and stability problems in the task process are avoided.
In the embodiments of the present disclosure, the specific type or content of the task is not limited. By way of example, tasks may include a compilation task, a code scan task, and a software package scan task. That is, the task isolation environment may include a compilation isolation environment, a code scan isolation environment, and a software package scan isolation environment. When the task is a compiling task, the task isolation environment is a compiling isolation environment, namely, the compiling isolation environment is a compiling environment, and when compiling in different compiling isolation environments, the compiling processes of the compiling isolation environments cannot influence each other. Specifically, if the compiling isolation environment includes a C language compiling isolation environment and a JAVA language compiling isolation environment, when C language compiling is performed, compiling is performed in the C language compiling isolation environment, and when JAVA language compiling is performed, compiling is performed in the JAVA compiling isolation environment. When the task is a compiling task, the task terminal may be a compiler, which is used to compile a program.
The task processing request may include, but is not limited to, a target isolation environment identification for causing the task terminal to determine a corresponding target task isolation environment, and a task for execution by the task terminal, the target isolation environment identification including an ID (Identity document, identification number) number of the task isolation environment. The target task may include task instructions and task parameters. Optionally, the task processing request includes a compiling task processing request, a code scanning task processing request and a software package scanning task processing request, and the target task corresponds to the compiling task, the code scanning task and the software package scanning task. It can be understood that the target isolation environment identifier is one of isolation environment identifiers corresponding to a plurality of task isolation environments in the task terminal. The target task isolation environment is one of a plurality of task isolation environments in the task terminal.
Step S202: and distributing the target task to a target task isolation environment corresponding to the target isolation environment identifier in the task isolation environments so as to execute the target task in the target task isolation environment, wherein each task isolation environment corresponds to a preset account, and data between every two preset accounts are isolated from each other.
And the task isolation environment corresponding to the target isolation environment identifier in the task isolation environments is the target task isolation environment. Each task isolation environment corresponds to one preset account respectively, namely, each preset account is allocated with one account isolation environment, data between every two preset accounts are isolated from each other, and the task isolation environments between every two preset accounts are isolated from each other. The task isolation environments are isolated, and data among accounts are isolated, so that the isolation effect before the task isolation environments of different accounts is better.
The target isolation environment identification corresponds to the target task isolation environment of the task terminal. I.e. when determining the isolation environment identity, the task isolation environment is also determined. After receiving the task processing request, the task terminal sends the target task to the target task isolation environment corresponding to the target isolation environment identifier, and the target task can be executed in the corresponding target task isolation environment. In other task isolation environments, when tasks are executed, different tasks do not affect each other, namely, a target task does not affect other tasks. Optionally, the tasks executed simultaneously in the task terminal are the same type of tasks, for example, all task isolation environments are compiling isolation environments, and the compiling isolation environments executed only in the task terminal only execute compiling tasks, for example, execute compiling tasks of C language and compiling tasks of JAVA language.
According to the task isolation method provided by the embodiment of the disclosure, the task processing request is received, the target task can be distributed to the target task isolation environment corresponding to the account, the target task isolation environment corresponds to the target isolation environment identification of the task processing request, the target task can be normally executed in the target task isolation environment, when the target task is executed in the target task isolation environment, the executed target task cannot be affected with the tasks in other task isolation environments, the environment conflict of parallel operation of multiple tasks in one task environment can be eliminated, the tasks can be quickly executed in the target task isolation environment, the different task isolation environments can respectively operate the tasks, and the task operation efficiency is improved.
Optionally, before receiving the task processing request sent by the management server, the task isolation method further includes:
creating task isolation environments respectively corresponding to the plurality of accounts;
and sending task isolation environment configuration information corresponding to the task isolation environments to the management server, so that the management server creates an environment task feature index table according to the isolation environment identifiers corresponding to the task isolation environments.
Each task isolation environment is allocated to each account, and the task isolation environments can be better isolated from each other.
The task terminal generates task isolation environment configuration information according to the corresponding task isolation environment identification of the task isolation environment and the functional characteristics of the task isolation environment, wherein the task isolation environment configuration information is used for indicating the corresponding functional characteristics and the isolation environment identification of a plurality of task isolation environments supported by the task terminal, and the functional characteristics are used for identifying service functions supported by the task isolation environment. The task environment characteristic index table is used for maintaining the association relation between each isolation environment identifier, the task terminal and the functional characteristic.
Optionally, the task terminal includes an administrator account and a agent (agent) program corresponding to the administrator account. The agent is configured to communicate with the management server, and the administrator account may invoke the agent to communicate with the management server.
The task isolation environment configuration information corresponding to the task isolation environments is sent to the management server, and the task isolation environment configuration information comprises:
and calling a preset agent program through a preset manager account to send the isolation environment identification corresponding to the task isolation environment to the management server.
Namely, when the task isolation environment configuration information respectively corresponding to the task isolation environments is sent to the management server, the task isolation environment configuration information is sent through the manager account calling agent program. When the manager account calls the agent program, the user can operate the manager account to call the agent program to send the isolation environment identification to the management server, or can set a certain program to enable the manager account to automatically send the task isolation environment configuration information corresponding to the task isolation environments to the management server.
Optionally, when the task terminal includes an agent (agent) program and an administrator account, receiving a task processing request sent by the management server, including:
and calling a preset agent program through a preset manager account to receive a task processing request sent by the management server.
I.e., upon receipt of a task processing request, is received by the administrator account invocation agent. The administrator account call agent may also assign the target task to a target task isolation environment corresponding to the target isolation environment identification to execute the target task in the target task isolation environment. The manager account calls the agent program to receive the task processing request, so that the mode of receiving the task processing request is simpler.
Optionally, if the task processing request sent by the management server is received by calling a preset agent program through a preset administrator account, the target task is allocated to a target task isolation environment corresponding to the target isolation environment identifier in the multiple task isolation environments, so as to execute the target task in the target task isolation environment, including:
determining a target task isolation environment corresponding to the target isolation environment identifier from a plurality of preset task isolation environments;
The target tasks are assigned to a target task isolation environment to execute the target tasks in the target task isolation environment.
The isolation environment identifiers and the task isolation environments are in one-to-one correspondence, so that the target task isolation environments corresponding to the target isolation environment identifiers can be determined. The target task may run in a target isolation environment.
Optionally, when the task terminal receives the task processing request, the task terminal does not send or receive information through the administrator account and the agent programs corresponding to the administrator account, and the task terminal includes the agent programs corresponding to the accounts one by one, that is, the task isolation environment, the accounts and the agent programs one by one, and the accounts of different users of the same task terminal call the corresponding agent programs respectively to receive or send information. The method for receiving the task processing request sent by the management server comprises the following steps:
and calling an agent program corresponding to the current account through the account of the current user to receive a task processing request sent by the management server.
The account of the current user, that is, the account which receives the task processing request. When the accounts of different users call the corresponding agent programs respectively to receive the task processing requests, the accounts can receive the task processing requests corresponding to the target isolation environment identifiers corresponding to the accounts. When an account receives a task processing request, a target task is directly distributed to a task isolation environment corresponding to the account. The task isolation environment corresponding to the account, namely the target isolation environment identifies the corresponding target task isolation environment. The agent program corresponding to the current account is called by the account of the current user to receive the task processing request sent by the management server, so that program breakdown caused by frequent receiving of the task processing request by the account of an administrator can be prevented, and the receiving of information such as the task processing request is more stable.
Referring to fig. 3, based on the foregoing embodiments, an embodiment of the disclosure provides a task isolation method, which may be applied to the management server shown in fig. 1, and the method may include:
step S301: and receiving task isolation environment configuration information sent by each task terminal, wherein the task isolation environment configuration information is used for indicating the corresponding functional characteristics and isolation environment identifiers of the task isolation environments supported by the task terminals, and the functional characteristics are used for identifying service functions supported by the task isolation environments.
The task terminal creates a plurality of accounts and task isolation environments corresponding to the accounts one by one. After each task terminal creates task isolation environments respectively corresponding to a plurality of accounts, the task terminal generates task isolation environment configuration information according to corresponding task isolation environment identifiers of the task isolation environments and functional characteristics of the task isolation environments, each task terminal respectively sends the task isolation environment configuration information to a management server, and the management server can receive the task isolation environment configuration information respectively sent by the task terminals.
Step S302: and creating a task environment characteristic index table according to the received multiple task isolation environment configuration information, wherein the task environment characteristic index table is used for maintaining the association relation among each isolation environment identifier, the task terminal and the functional characteristic.
The environment task feature index table is used for maintaining the association relation between each isolation environment identifier, the task terminal and the functional feature. If the isolation environment identifier A corresponds to the task terminal and the functional feature compiling C language and the task terminal D, the isolation environment identifier B corresponds to the functional feature compiling JAVA language and the task terminal D. The environment task feature index table is convenient for the management server to rapidly select the task isolation environment corresponding to the correct isolation environment identifier when the task needs to be processed.
Step S303: and responding to a target task triggering operation, determining functional characteristics corresponding to the description information according to the description information of the target task, and generating a task processing request, wherein the task processing request comprises a target isolation environment identifier matched with the target task and the target task.
The triggering operation of the target task can be completed by triggering a user, and the target task can be automatically generated by a system.
The target task comprises description information, and the description information comprises service functions corresponding to the target task. Such as descriptive information, is used to characterize the target task as JAVA language compilation. The functional features correspond to descriptive information. If the description information is compiled in JAVA language, the corresponding functional characteristic is compiled JAVA language. After the target task is triggered, the functional characteristics corresponding to the description information can be determined according to the description information of the target task.
The target isolation environment identification matched with the target task, namely the target task associated with the functional feature matched with the descriptive information. And determining the target task associated with the functional feature according to the task environment feature index table.
Step S304: and determining a target task terminal associated with the target isolation environment identifier based on the task environment characteristic index table, and sending the task processing request to the target task terminal to instruct the target task terminal to process the target task.
After the target isolation environment identifier is determined, the task terminal associated with the target isolation environment identifier, namely the target task terminal, can be determined based on the task environment characteristic index table. After receiving the task processing request, the target task terminal can process the target task in the target task isolation environment corresponding to the target isolation environment identifier.
According to the task isolation method provided by the embodiment of the disclosure, an environment task feature index table is created according to the received task isolation environment configuration information, the task isolation environment identification matched with the target task and the target task are responded, a task processing request is generated, the task processing request comprises the target isolation environment identification matched with the target task and the target task, the target task terminal associated with the target isolation environment identification is determined based on the task environment feature index table, the task processing request is sent to the target task terminal, the target task terminal is instructed to process the target task, namely, the target task is executed in the target task isolation environment corresponding to the target isolation environment identification, the executed task cannot be interacted with the tasks in other task isolation environments, the environment conflict of parallel operation of multiple tasks in one task environment can be eliminated, the tasks can be quickly executed in the target task isolation environment, different task isolation environments can respectively operate the tasks, and the task operation efficiency is improved.
Optionally, generating the task processing request includes:
determining a target isolation environment identifier associated with the functional characteristic according to the functional characteristic;
and generating a task processing request comprising the target isolation environment representation and the target task according to the description information of the target task.
After the functional characteristics, the task terminal and the isolation environment identifier are associated, the target isolation environment identifier can be determined.
Optionally, when the isolation environment identifiers of the plurality of target task terminals correspond to the functional features, determining, according to the functional features, a target isolation environment identifier associated with the functional features, including:
taking an isolation environment identifier associated with the task terminal with the highest priority associated with the functional characteristic as a target isolation environment identifier; or (b)
And taking the isolation environment identifier associated with the task terminal which is associated with the functional characteristic and has the minimum number of executing tasks as a target isolation environment identifier.
And the isolation environment identifiers of the plurality of target task terminals correspond to the functional characteristics, namely the task isolation environments of the plurality of task terminals can execute functions corresponding to the functional characteristics. It is necessary to determine the isolation environment identification of one terminal from among the plurality of terminals as the target isolation environment identification.
And if the priority of the task terminal A is highest, the isolation environment identifier associated with the functional characteristic in the task terminal A is used as the target isolation environment identifier.
And the task terminal with the minimum execution task number takes the isolation environment identifier associated with the functional characteristic in the task terminal A as a target isolation environment identifier if the task number operated in a plurality of task isolation environments of the task terminal A is the minimum in the task terminal A, the task terminal B and the task terminal C.
Referring to fig. 4, in order to better understand the task isolation method described above, an example of the task isolation method of the present disclosure is described in detail below.
In one example, the task isolation method provided by the present disclosure includes the following steps:
step S401, a task terminal creates task isolation environments corresponding to a plurality of accounts respectively, and data between every two accounts are isolated;
step S402, a task terminal sends task isolation environment configuration information corresponding to task isolation environments to a management server;
Step S403: the management server creates a task environment characteristic index table according to the received multiple task isolation environment configuration information, wherein the task environment characteristic index table is used for maintaining association relations among all isolation environment identifiers, task terminals and functional characteristics;
step S404: the management server responds to a target task triggering operation, determines functional characteristics corresponding to the description information according to the description information of the target task, and generates a task processing request, wherein the task processing request comprises a target isolation environment identifier matched with the target task and the target task;
step S405: and determining a target task terminal associated with the target isolation environment identifier based on the task environment characteristic index table, and sending the task processing request to the target task terminal to instruct the target task terminal to process the target task.
In the above example, by receiving the task processing request, the target task can be allocated to the target task isolation environment, when the target task is executed in the target task isolation environment, the executed task cannot be affected with tasks in other task isolation environments, the environment conflict of parallel running of multiple tasks in one task environment can be eliminated, the task can be quickly executed in the target task isolation environment, and different task isolation environments can respectively run the task, so that the task running efficiency is improved.
Referring to fig. 5, a twelfth embodiment of the present disclosure provides a task isolation device 50, where the task isolation device 50 is applied to the task terminal of the foregoing disclosed embodiment, and the task isolation device may implement the task isolation method of the foregoing embodiment, and the task isolation device 50 may include: a request receiving module 501 and an allocation module 502, wherein,
a request receiving module 501, configured to receive a task processing request sent by a management server, where the task processing request includes a target isolation environment identifier and a target task;
the allocation module 502 is configured to allocate a target task to a target task isolation environment corresponding to the target isolation environment identifier in the multiple task isolation environments, so as to execute the target task in the target task isolation environment, where each task isolation environment corresponds to a preset account, and data between every two preset accounts are isolated from each other.
According to the task isolation device provided by the embodiment of the disclosure, the task processing request is received, the target task can be distributed to the target task isolation environment corresponding to the account, the target task isolation environment corresponds to the target isolation environment identification of the task processing request, the target task can be normally executed in the target task isolation environment, when the target task is executed in the target task isolation environment, the executed target task cannot be affected with the tasks in other task isolation environments, the environment conflict of parallel operation of multiple tasks in one task environment can be eliminated, the tasks can be quickly executed in the target task isolation environment, the different task isolation environments can respectively operate the tasks, and the task operation efficiency is improved.
The task isolation device 50 may further include:
the creation module is used for creating task isolation environments respectively corresponding to the plurality of accounts;
the identification transmitting module is used for transmitting the task isolation environment configuration information corresponding to the task isolation environments to the management server so that the management server creates an environment task characteristic index table according to the isolation environment identifications corresponding to the task isolation environments.
The identifier sending module is specifically configured to: and calling a preset agent program through a preset manager account to send the isolation environment identification corresponding to the task isolation environment to the management server.
The request receiving module 501 is specifically configured to: calling a preset agent program through a preset manager account to receive a task processing request sent by a management server; or the agent program corresponding to the current account is called by the account of the current user to receive the task processing request sent by the management server.
If the request receiving module 501 is specifically configured to call a preset agent program through a preset administrator account to receive a task processing request sent by the management server, the distributing module 502 includes:
the environment determining unit is used for determining a target task isolation environment corresponding to the target isolation environment identifier from a plurality of preset task isolation environments;
And the task allocation unit is used for allocating the target task to the target task isolation environment so as to execute the target task in the target task isolation environment.
Referring to fig. 6, an embodiment of the disclosure provides a task isolation device 60, where the task isolation device 60 is applied to the task terminal of the foregoing embodiment, the task isolation device 60 may implement the task isolation method of the foregoing embodiment, and the task isolation device 60 may include: an identity receiving module 601, an index creating module 602 and a transmitting module 603, wherein,
the identifier receiving module 601 is configured to receive task isolation environment configuration information sent by each of a plurality of task terminals, where the task isolation environment configuration information is used to indicate corresponding functional features and isolation environment identifiers of a plurality of task isolation environments supported by the task terminals, and the functional features are used to identify service functions supported by the task isolation environments;
the index creation module 602 is configured to create a task environment feature index table according to the received multiple task isolation environment configuration information, where the task environment feature index table is used to maintain association relationships among each isolation environment identifier, task terminals and functional features;
A request generating module 603, configured to respond to a target task triggering operation, determine a functional feature corresponding to the description information according to the description information of the target task, and generate a task processing request, where the task processing request includes a target isolation environment identifier and a target task that are matched with the target task;
and the sending module 604 is configured to determine, based on the task environment feature index table, a target task terminal associated with the target isolation environment identifier, and send the task processing request to the target task terminal, so as to instruct the target task terminal to process the target task.
According to the task isolation device provided by the embodiment of the disclosure, an environment task feature index table is created according to the received task isolation environment configuration information, the task isolation environment feature index table is responded, a task processing request is generated, the task processing request comprises a target isolation environment identifier matched with the target task and a target task, a target task terminal associated with the target isolation environment identifier is determined based on the task environment feature index table, the task processing request is sent to the target task terminal, the target task terminal is instructed to process the target task, namely, the target task is executed in the target task isolation environment corresponding to the target isolation environment identifier, the executed task cannot be interacted with tasks in other task isolation environments, the environment conflict of parallel operation of multiple tasks in one task environment can be eliminated, the tasks can be quickly executed in the target task isolation environment, different task isolation environments can respectively operate the tasks, and the task operation efficiency is improved.
The request generation module 603 may include:
the identification determining unit is used for determining a target isolation environment identification associated with the functional characteristic according to the functional characteristic;
a request generation unit for generating a task processing request including the target isolation environment representation and the target task according to the description information of the target task
The identification determining unit is specifically configured to use an isolation environment identification associated with the task terminal with the highest priority associated with the functional feature as a target isolation environment identification; or taking the isolation environment identifier associated with the task terminal which is associated with the functional characteristic and has the minimum number of executing tasks as a target isolation environment identifier
Referring to fig. 7, a schematic diagram of an electronic device (e.g., a task terminal or management server of fig. 1) 700 suitable for use in implementing embodiments of the present disclosure is shown. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 7 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
An electronic device includes: a memory and a processor, where the processor may be referred to as a processing device 701 hereinafter, the memory may include at least one of a Read Only Memory (ROM) 702, a Random Access Memory (RAM) 703, and a storage device 708 hereinafter, as specifically shown below:
as shown in fig. 7, the electronic device 700 may include a processing means (e.g., a central processor, a graphics processor, etc.) 701, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 702 or a program loaded from a storage means 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
In general, the following devices may be connected to the I/O interface 705: input devices 706 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 707 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 708 including, for example, magnetic tape, hard disk, etc.; and a communication device 709. The communication means 709 may allow the electronic device 700 to communicate wirelessly or by wire with other devices to exchange data. While fig. 7 shows an electronic device 700 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via communication device 709, or installed from storage 708, or installed from ROM 702. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 701.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a task processing request sent by a management server, wherein the task processing request comprises a target isolation environment identifier and a target task; and distributing the target task to a target task isolation environment corresponding to the target isolation environment identifier in the task isolation environments so as to execute the target task in the target task isolation environment, wherein each task isolation environment corresponds to a preset account, and data between every two preset accounts are isolated from each other.
Alternatively, the computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: receiving task isolation environment configuration information sent by each task terminal, wherein the task isolation environment configuration information is used for indicating corresponding functional characteristics and isolation environment identifiers of a plurality of task isolation environments supported by the task terminal, and the functional characteristics are used for identifying service functions supported by the task isolation environments; creating a task environment characteristic index table according to the received multiple task isolation environment configuration information, wherein the task environment characteristic index table is used for maintaining association relations among all isolation environment identifiers, task terminals and functional characteristics; responding to a target task triggering operation, determining functional characteristics corresponding to the description information according to the description information of the target task, and generating a task processing request, wherein the task processing request comprises a target isolation environment identifier matched with the target task and the target task; and determining a target task terminal associated with the target isolation environment identifier based on the task environment characteristic index table, and sending the task processing request to the target task terminal to instruct the target task terminal to process the target task.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules or units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. Where the name of the module or unit does not constitute a limitation of the unit itself in some cases, for example, the request receiving module may also be described as "unit obtaining at least two internet protocol addresses".
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, there is provided a task isolation method including:
receiving a task processing request sent by a management server, wherein the task processing request comprises a target isolation environment identifier and a target task;
and distributing the target task to a target task isolation environment corresponding to the target isolation environment identifier in the task isolation environments so as to execute the target task in the target task isolation environment, wherein each task isolation environment corresponds to a preset account, and data between every two preset accounts are isolated from each other.
According to one or more embodiments of the present disclosure, the task isolation method further includes:
creating task isolation environments respectively corresponding to the plurality of accounts;
and sending task isolation environment configuration information corresponding to the task isolation environments to the management server, so that the management server creates an environment task feature index table according to the isolation environment identifiers corresponding to the task isolation environments.
According to one or more embodiments of the present disclosure, sending task isolation environment configuration information corresponding to task isolation environments, respectively, to a management server includes:
and calling a preset agent program through a preset manager account to send the isolation environment identification corresponding to the task isolation environment to the management server.
According to one or more embodiments of the present disclosure, receiving a task processing request sent by a management server includes:
calling a preset agent program through a preset manager account to receive a task processing request sent by a management server; or (b)
And calling an agent program corresponding to the current account through the account of the current user to receive a task processing request sent by the management server.
According to one or more embodiments of the present disclosure, if a task processing request sent by a management server is received by calling a preset agent program through a preset administrator account, a target task is allocated to a target task isolation environment corresponding to a target isolation environment identifier in a plurality of task isolation environments, so as to execute the target task in the target task isolation environment, including:
determining a target task isolation environment corresponding to the target isolation environment identifier from a plurality of preset task isolation environments;
the target tasks are assigned to a target task isolation environment to execute the target tasks in the target task isolation environment.
According to one or more embodiments of the present disclosure, there is provided a task isolation method including:
receiving isolation environment identifiers respectively corresponding to a plurality of task isolation environments sent by a task terminal;
Creating an environment task feature index table according to each isolation environment identifier, wherein the environment task feature index table comprises corresponding relation indexes of the isolation environment identifiers and functional features of the task isolation environment;
when a task processing requirement for a target task is received, generating and sending a task processing request to a task terminal corresponding to the task processing requirement according to the task processing requirement and an environment task characteristic index table.
According to one or more embodiments of the present disclosure, task processing requirements include task features, and generating and transmitting a task processing request to a task terminal corresponding to the task processing requirements according to the task processing requirements and an environmental task feature index table, includes:
determining a target isolation environment identifier corresponding to the task feature through an environment task feature index table, and generating a task processing request according to the target isolation environment identifier;
and sending the task processing request to a target task terminal comprising the target isolation environment identifier.
According to one or more embodiments of the present disclosure, when there are a plurality of target task terminals, sending a task processing request to a target task terminal including a target isolation environment identifier, includes:
and sending the task processing request to any target task terminal according to a preset rule.
According to one or more embodiments of the present disclosure, there is provided a task isolation device including:
the request receiving module is used for receiving a task processing request sent by the management server, wherein the task processing request comprises a target isolation environment identifier and a target task;
the allocation module is used for allocating the target task to a target task isolation environment corresponding to the target isolation environment identifier in the task isolation environments so as to execute the target task in the target task isolation environment, wherein each task isolation environment corresponds to one preset account, and data between every two preset accounts are isolated from each other.
Wherein, the task isolation device may further include:
the creation module is used for creating task isolation environments respectively corresponding to the plurality of accounts;
the identification transmitting module is used for transmitting the task isolation environment configuration information corresponding to the task isolation environments to the management server so that the management server creates an environment task characteristic index table according to the isolation environment identifications corresponding to the task isolation environments.
The identifier sending module is specifically configured to: and calling a preset agent program through a preset manager account to send the isolation environment identification corresponding to the task isolation environment to the management server.
The request receiving module is specifically configured to: calling a preset agent program through a preset manager account to receive a task processing request sent by a management server; or the agent program corresponding to the current account is called by the account of the current user to receive the task processing request sent by the management server.
If the request receiving module is specifically configured to call a preset agent program through a preset administrator account to receive a task processing request sent by the management server, the distributing module includes:
the environment determining unit is used for determining a target task isolation environment corresponding to the target isolation environment identifier from a plurality of preset task isolation environments;
and the task allocation unit is used for allocating the target task to the target task isolation environment so as to execute the target task in the target task isolation environment.
According to one or more embodiments of the present disclosure, there is provided a task isolation device including:
the identification receiving module is used for receiving isolation environment identifications respectively corresponding to a plurality of task isolation environments sent by the task terminal;
the index creating module is used for creating an environment task feature index table according to each isolation environment identifier, wherein the environment task feature index table comprises corresponding relation indexes of the isolation environment identifiers and the functional features of the task isolation environment;
And the sending module is used for generating and sending a task processing request to a task terminal corresponding to the task processing requirement according to the task processing requirement and the environment task characteristic index table when the task processing requirement aiming at the target task is received.
Wherein, the sending module may include:
the generating unit is used for determining a target isolation environment identifier of the corresponding task feature through the environment task feature index table and generating a task processing request according to the target isolation environment identifier;
and the sending unit is used for sending the task processing request to the target task terminal comprising the target isolation environment identifier.
When there are multiple target task terminals, the sending unit is specifically configured to:
and sending the task processing request to any target task terminal according to a preset rule.
According to one or more embodiments of the present disclosure, there is provided an electronic device including:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: the task isolation method according to any of the above embodiments is performed.
According to one or more embodiments of the present disclosure, there is provided a computer readable medium having stored thereon a computer program which, when executed by a processor, implements the task isolation method of any of the above embodiments.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.

Claims (10)

1. A method of task isolation, comprising:
receiving a task processing request sent by a management server, wherein the task processing request comprises a target isolation environment identifier and a target task;
distributing the target task to a target task isolation environment corresponding to the target isolation environment identifier in a plurality of task isolation environments to execute the target task in the target task isolation environment, wherein each task isolation environment corresponds to a preset account respectively, and data between every two preset accounts are isolated from each other;
before receiving the task processing request sent by the management server, the method further includes:
creating task isolation environments respectively corresponding to the plurality of accounts;
the method comprises the steps of sending task isolation environment configuration information corresponding to task isolation environments to a management server respectively, so that the management server creates a task environment feature index table according to isolation environment identifiers corresponding to the task isolation environments, the task isolation environment configuration information is used for indicating functional features and isolation environment identifiers corresponding to the task isolation environments, the functional features are used for representing service functions supported by the task isolation environments, and the task environment feature index table is used for representing association relations among the task isolation environment identifiers, task terminals and the functional features.
2. The task isolation method according to claim 1, wherein the sending task isolation environment configuration information corresponding to each task isolation environment to the management server includes:
and calling a preset agent program through a preset manager account to send task isolation environment configuration information corresponding to the task isolation environment to the management server.
3. The task isolation method of claim 1, wherein the receiving the task processing request sent by the management server includes:
calling a preset agent program through a preset manager account to receive a task processing request sent by a management server; or (b)
And calling an agent program corresponding to the current account through the account of the current user, and receiving a task processing request sent by a management server.
4. A method of task isolation, comprising:
receiving task isolation environment configuration information sent by each task terminal, wherein the task isolation environment configuration information is used for indicating corresponding functional characteristics and isolation environment identifiers of a plurality of task isolation environments supported by the task terminal, and the functional characteristics are used for identifying service functions supported by the task isolation environments;
Creating a task environment characteristic index table according to the received multiple task isolation environment configuration information, wherein the task environment characteristic index table is used for maintaining association relations among all isolation environment identifiers, task terminals and functional characteristics;
responding to a target task triggering operation, determining functional characteristics corresponding to the description information according to the description information of the target task, and generating a task processing request, wherein the task processing request comprises a target isolation environment identifier matched with the target task and the target task;
and determining a target task terminal associated with the target isolation environment identifier based on the task environment characteristic index table, and sending the task processing request to the target task terminal to instruct the target task terminal to process the target task.
5. The task isolation method of claim 4, wherein generating a task processing request comprises:
determining a target isolation environment identifier associated with the functional characteristic according to the functional characteristic;
and generating a task processing request comprising the target isolation environment representation and the target task according to the description information of the target task.
6. The task isolation method of claim 5, wherein when isolation environment identifiers of a plurality of target task terminals correspond to the functional feature, the determining, according to the functional feature, a target isolation environment identifier associated with the functional feature includes:
taking an isolation environment identifier associated with the task terminal with the highest priority associated with the functional characteristic as a target isolation environment identifier; or (b)
And taking the isolation environment identifier associated with the task terminal which is associated with the functional characteristic and has the minimum number of executing tasks as a target isolation environment identifier.
7. A task isolation device, comprising:
the request receiving module is used for receiving a task processing request sent by the management server, wherein the task processing request comprises a target isolation environment identifier and a target task, and the request receiving module further comprises: creating task isolation environments respectively corresponding to the plurality of accounts; the method comprises the steps of sending task isolation environment configuration information corresponding to task isolation environments to a management server respectively, so that the management server creates a task environment feature index table according to isolation environment identifiers corresponding to the task isolation environments, wherein the task isolation environment configuration information is used for indicating functional features and isolation environment identifiers corresponding to a plurality of task isolation environments, the functional features are used for representing service functions supported by the task isolation environments, and the task environment feature index table is used for representing association relations among the task isolation environment identifiers, task terminals and the functional features;
The allocation module is used for allocating the target task to a target task isolation environment corresponding to the target isolation environment identifier in a plurality of task isolation environments so as to execute the target task in the target task isolation environment, wherein each task isolation environment corresponds to one preset account, and data between every two preset accounts are isolated from each other.
8. A task isolation device, comprising:
the device comprises an identifier receiving module, a task isolation environment processing module and a task isolation environment processing module, wherein the identifier receiving module is used for receiving task isolation environment configuration information sent by each of a plurality of task terminals, the task isolation environment configuration information is used for indicating respectively corresponding functional characteristics and isolation environment identifiers of a plurality of task isolation environments supported by the task terminals, and the functional characteristics are used for identifying service functions supported by the task isolation environments;
the system comprises an index creation module, a task environment feature index table, a task terminal and a function feature, wherein the index creation module is used for creating a task environment feature index table according to a plurality of received task isolation environment configuration information, and the task environment feature index table is used for maintaining association relations among all isolation environment identifiers, task terminals and function features;
the request generation module is used for responding to target task triggering operation, determining functional characteristics corresponding to the description information according to the description information of the target task, and generating a task processing request, wherein the task processing request comprises a target isolation environment identifier matched with the target task and the target task;
And the sending module is used for determining a target task terminal associated with the target isolation environment identifier based on the task environment characteristic index table and sending the task processing request to the target task terminal so as to instruct the target task terminal to process the target task.
9. An electronic device, comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: a task isolation method according to any one of claims 1-6.
10. A computer readable medium on which a computer program is stored, characterized in that the program, when executed by a processor, implements the task isolation method of any of claims 1-6.
CN202011185902.9A 2020-10-29 2020-10-29 Task isolation method, device, electronic equipment and computer readable medium Active CN112306685B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011185902.9A CN112306685B (en) 2020-10-29 2020-10-29 Task isolation method, device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011185902.9A CN112306685B (en) 2020-10-29 2020-10-29 Task isolation method, device, electronic equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN112306685A CN112306685A (en) 2021-02-02
CN112306685B true CN112306685B (en) 2023-11-24

Family

ID=74332285

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011185902.9A Active CN112306685B (en) 2020-10-29 2020-10-29 Task isolation method, device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN112306685B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113301155B (en) * 2021-05-24 2022-08-16 挂号网(杭州)科技有限公司 Data routing method, device, equipment and storage medium
CN115297336B (en) * 2022-07-06 2024-03-19 北京达佳互联信息技术有限公司 Task processing method and device, electronic equipment, storage medium and program product

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8640187B2 (en) * 2010-05-28 2014-01-28 Red Hat, Inc. Systems and methods for providing an fully functional isolated execution environment for accessing content
GB201318723D0 (en) * 2013-10-23 2013-12-04 Avecto Ltd Computer device and method for isolating untrusted content

Also Published As

Publication number Publication date
CN112306685A (en) 2021-02-02

Similar Documents

Publication Publication Date Title
CN111581555B (en) Document loading method, device, equipment and storage medium
CN112306685B (en) Task isolation method, device, electronic equipment and computer readable medium
CN114625536B (en) Video memory allocation method, device, medium and electronic equipment
CN112214408A (en) Dependency conflict detection method and device, electronic equipment and computer readable medium
CN111432001B (en) Method, apparatus, electronic device and computer readable medium for jumping scenes
CN116166395A (en) Task scheduling method, device, medium and electronic equipment
CN115237589A (en) SR-IOV-based virtualization method, device and equipment
CN110489158B (en) Method, device, medium and electronic equipment for optimizing code hosting platform
US20240118928A1 (en) Resource allocation method and apparatus, readable medium, and electronic device
CN111324376B (en) Function configuration method, device, electronic equipment and computer readable medium
CN111400068B (en) Interface control method and device, readable medium and electronic equipment
CN111314351A (en) Anti-crawler data processing method and device, electronic equipment and storage medium
CN116302271A (en) Page display method and device and electronic equipment
CN113391882B (en) Virtual machine memory management method and device, storage medium and electronic equipment
CN113518183B (en) Camera calling method and device and electronic equipment
CN111538717B (en) Data processing method, device, electronic equipment and computer readable medium
CN111460020B (en) Method, device, electronic equipment and medium for resolving message
CN113391860B (en) Service request processing method and device, electronic equipment and computer storage medium
CN111182062A (en) Service multi-live calling method and system and electronic equipment
CN111796865A (en) Byte code file modification method and device, terminal equipment and medium
CN111552469B (en) File processing method and device in application engineering and electronic equipment
CN112148448B (en) Resource allocation method, apparatus, device and computer readable medium
CN113448550B (en) Method and device for realizing collection management of classes, electronic equipment and computer medium
CN111626787B (en) Resource issuing method, device, medium and equipment
CN112559394B (en) System library access method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: Tiktok vision (Beijing) Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant