• Home
    • View
    • Login
    This page
    • Normal
    • Export PDF
    • Export Word
    • Attachments
    • Page Information

    Loading...
  1. Dashboard
  2. Loom
  3. Main
  4. Differences between regular Threads and virtual Threads

Differences between regular Threads and virtual Threads

Skip to end of metadata
  • Created by Alan Bateman, last modified on Oct 22, 2020
Go to start of metadata

The following is a list of the subtle differences between the two types of thread:

  1. VirtualThread always report their priority as NORM_PRIORITY. The priority is not inherited and cannot be changed with the setPriority method.
  2. Virtual threads are daemon threads. Their daemon status cannot be changed with the setDaemon method.
  3. Virtual threads cannot be suspended, resumed or stopped with the Thread suspend, resume and stop APIs.
  4. Virtual threads have no permissions when running with a security manager.
  5. Virtual threads are not active threads in a thread group. All virtual threads are in the same ThreadGroup. The ThreadGroup enumerate methods do not enumerate the virtual threads in the group.
Overview
Content Tools
ThemeBuilder
  • No labels

Terms of Use • License: GPLv2 • Privacy • Trademarks • Contact Us

Powered by a free Atlassian Confluence Open Source Project License granted to https://www.atlassian.com/software/views/opensource-community-additional-license-offer. Evaluate Confluence today.

  • Adaptavist ThemeBuilder Powered by Atlassian Confluence 7.4.1
  • Adaptavist ThemeBuilder printed.by.atlassian.confluence
  • Report a bug
  • Atlassian News
Atlassian
Adaptavist ThemeBuilder EngineAtlassian Confluence
{"serverDuration": 261, "requestCorrelationId": "e71934d76cfdc77a"}