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

    Loading...
  1. Dashboard
  2. Loom
  3. Main
  4. This page on blocking operations can be removed.

Page History

Versions Compared

Old Version 3

changes.mady.by.user Alan Bateman

Saved on Apr 25, 2019

compared with

New Version 4

changes.mady.by.user Alan Bateman

Saved on Apr 26, 2019

  • Previous Change: Difference between versions 2 and 3
  • Next Change: Difference between versions 4 and 5
  • View Page History

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following blocking operations are fiber friendly, meaning the fiber will park when the socket is not ready for I/O:


APIMethodsNotes
java.nio.channels.SocketChannelread, write, close

socket adaptor: read, write, close
java.nio.channels.ServerSocketChannelaccept, close

socket adaptor: accept, close
java.nio.channels.DatagramChannelread/receive, close
java.nio.channels.Pipe.SourceChannelread, close
java.nio.channels.Pipe.SinkChannelwrite, close



java.net.Socket

read, write, close
java.net.ServerSocketaccept, close

...


The following blocking operations are not currently fiber friendly; these methods may pin the carrier thread:

APIMethodsNotes
java.nio.channels.DatagramChannelsocket adaptor: receive
java.net.DatagramSocketreceive
Thread.interrupt
If
target Thread is the shadow Thread for a Fiber parked
a thread is blocked in an I/O operation on an InterruptibleChannel then
interrupt will
the channel is closed. The locking to support this is not yet fiber friendly so Thread.interrupt may pin the carrier thread
until
while waiting for the blocking operations on the channel
is closed
to abort.
Overview
Content Tools
ThemeBuilder

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.

  • Kolekti ThemeBuilder Powered by Atlassian Confluence 8.5.23
  • Kolekti ThemeBuilder printed.by.atlassian.confluence
  • Report a bug
  • Atlassian News
Atlassian
Kolekti ThemeBuilder EngineAtlassian Confluence
{"serverDuration": 276, "requestCorrelationId": "b555b8fb22bc616a"}