Comparison between WF and Windows

Source: Internet
Author: User
Tags java format
Comparison between WF and Windows

-- Interpreting the core principles of WF through AEC (11) (additional topic)

Sometimes, during Activity development, there is always a feeling similar to the previous one, such as C, if I forget to release the pointer, I will always hit myself. When developing the Activity, I forgot to Close and I will hit myself ......

I think the structure of WF has many similarities with the operating system. I will compare it below:

 

Item

WF

Operating System

Host,

Computer

Host:

WorkflowRuntime, parasitic Environment

COMPUTER:

Operating System parasitic Environment

WorkflowRuntime,

Operating System

WorkflowRuntime:

Workflow running environment

Operating System:

Application running environment

Workflow,

Applications

Workflow:

Independent code units that can run in WorkflowRuntime to complete various business functions

Application:

Independent code units that can run in the operating system to complete various business functions

Instance,

Process

Instance:

An activation status of a workflow in WorkflowRuntime

Process:

An activation status of an application in the operating system

WF load service,

Driver

WF load service:

It is loaded by WorkflowRuntime to provide some function or interface for the workflow instance.

Driver:

Loaded by the operating system to provide a certain function or interface for the application process

Activity (DLL) format workflow,

Win32 format Program

Activity (DLL) format workflow:

The basic format of the WF workflow, WF's "local code"

Win32 format program:

Windows operating system basic format, local code"

Xoml workflow,

NET format Program

Xoml workflow format:

A file that describes execution logic in string mode. It can be interpreted by defaworkworkflowloaderservice

WF's "Local Code" runs in WorkflowRuntime

NET format program:

A file that describes execution logic in string mode. It can be interpreted by the NET Framework as "Local Code" running in the operating system.

DefaultWorkflowLoaderService,

NET Framework

DefaultWorkflowLoaderService:

Xoml interpreter. WF is loaded by default.

NET Framework:

The interpreter of the. NET format program, which is installed by default in the operating system.

Workflow in other formats,

Java format Program

Other workflow formats:

WF can load workflow descriptors in other xml formats, but it must be implemented based on WorkflowLoaderService and loaded to WorkflowRuntime.

Java format program:

It can run in windows, but you need to install a Java Virtual Machine

Custom WorkflowLoaderService,

Java Virtual Machine

Custom WorkflowLoaderService:

Interpreter that implements custom workflow description format

Java virtual machine:

An intermediate environment that explains Java programs and runs them in the operating system

Parallel,

Thread

Parallelism:

The ParallelActivity of WF does not enable threads to implement parallel branches, but performs staggered execution on different branches to achieve parallel results.

Thread:

The multithreading of the Windows operating system does not rely on multi-core CPUs. It can be executed in an staggered manner to achieve multi-thread parallel performance.

WorkflowQueuingService,

System message

WorkflowQueuingService:

WF provides a communication response interface for interaction, such as AEC, WorkflowRuntimeService, and IServiceProvider.

System message:

A communication response interface provided by the operating system for interaction, Hook, SetWindowsHookEx, and CallNextHookEx

Persistence,

Sleep (not standby)

Persistence:

WF can save the instances in WorkflowRuntime. When WorkflowRuntime is disabled, start WorkflowRuntime to continue running the instances.

Sleep:

The Windows operating system can save the currently running system to the disk, and then power off. After restarting, you can continue to use the processes running in the system before hibernation.

Persistence,

Virtual Memory

Persistence:

WF can save non-running instances in WorkflowRuntime to disks to save memory. When the instance needs to continue running, it is loaded from the disk to the memory.

Virtual Memory:

Processes that do not run in windows are saved to the disk to save memory. Load the process from disk to memory when it needs to continue running

WF,

Operating System

WF:

A program running in the operating system

Operating System:

Maybe one day, you can use a visual development environment like WF to design an operating system.

 

Note:

From the same point of view, you will find that the pencil is the same as the Sun. From the difference, the difference between the two water molecules cannot be described in 13.7 billion years. This article is not a technical article, some of them are not accurate, just a joke about the technology.

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.