Skip to content

Technology Quote by Eric Freeman

“when you send an object the worker gets a copy of it. Any changes the worker makes will not affect the object in your main page. The worker is executing in a different environment than your main page, so you have no access to objects there. The same is true of objects the worker sends you: you get…” quote by Eric Freeman
Download Open image
““when you send an object the worker gets a copy of it. Any changes the worker makes will not affect the object in your main page. The worker is executing in a different environment than your main page, so you have no access to objects there. The same is true of objects the worker sends you: you get a copy of them.””

Eric Freeman

About This Quote

Source Book: Head First JavaScript Programming, O'Reilly, 2014

Objects are passed to web workers by value, so each side works on its own copy, preventing shared mutable state.

In simple terms: Workers get copies, not shared objects.

Key Takeaway

Use workers for parallel tasks without worrying about side‑effects.

Themes

concurrency web workers immutability

Mood

technical practical

Type

explanatory instructional

When to use this quote

  • background data processing
  • image manipulation
  • large calculations
  • UI responsiveness

Key Concepts

copy‑on‑write thread isolation

Questions to Reflect On

  • How do you synchronize results from a worker?
  • When is copying data too costly?
A Different Perspective

Changes in the worker cannot affect the main thread directly, requiring message passing for coordination.

4.4 out of 5 (3 ratings)

More by Eric Freeman

Explore all 90 Eric Freeman quotes

More Technology quotes

Browse all 18,164 Technology quotes