Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does the concept of "worker" mean in programming?

Tags:

I want to know What does the concept of "worker" mean in programming? I've recently started Java and have seen in so many places where they are used but don't get the idea.

Examples would be great.

like image 749
Hossein Avatar asked Apr 24 '12 14:04

Hossein


People also ask

What is a worker method?

A Worker is an object which performs some work in one or more background threads, and whose state is observable and available to JavaFX applications and is usable from the main JavaFX Application thread.

What is a worker process in Java?

The Java work processThe Java work process, implemented in Java, is used to host special services, which have been developed in Java. is required for the following services: Single Sign-on (via KDC) Adaptive ERT calculation. Function Export with references. LDAP (SSL)


1 Answers

A worker is something you give a task and continue in your process, while the worker (or multiple workers) process the task on a different thread. When they finish they let you know about it via a call back method. I.e. a special method provided on the initial call gets called.

like image 165
Jens Schauder Avatar answered Oct 03 '22 07:10

Jens Schauder