IO Completion Ports (IOCP)

Yakov

When I call BeginExecuteReader (SQL) does it use IO Completion Ports? What makes it to be asynchronous? Should I call it from Begin[Operation]() or from the wrapper for IAsyncResult constructor?

Richard

does it use IO Completion Ports

Maybe, but that's an implementation detail deep in the native SQL Client's implementation.

Remember the SQL Server ADO.NET calls into the (local) native SQL Server client which will perform communication with the server.

What makes it to be async?

Its implementation. There is more than one way to do this, from approaches which fake it (perform blocking operations with a dedicated worker thread) through to IO Completion Ports and other "true" asynchronous APIs.

Where from should I call it ?

Wherever is right for your design.

for IAsyncResult constructor?

How you use the asynchronous APIs (callback passed to BeginExecuteReader, poll the returned IAsyncResult's IsComplete, wait on IAsyncResult, convert to a Task with TaskFactory.FromAsync, using the Reactive Extensions with Observable.FromAsyncPattern, or something else) is again part of the design of your code.

There are too many possibilities to give any form of guidance.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

IO Completion Ports and socket send()

From Dev

IO Completion Ports and socket WSARecv()

From Dev

IO Completion Ports and OVERLAPPED management

From Dev

IO Completion Ports and socket send()

From Dev

IO Completion Ports and socket WSARecv()

From Dev

Asynchronous action methods and IO completion ports

From Dev

How to reregister for IO Completion ports for a handle

From Dev

io completion ports issue with calling multiple wsarecv or wsasend per GetQueuedCompletionStatus

From Dev

IOCP AcceptEx not creating completion upon connect

From Dev

Multiple I/O Completion Ports

From Dev

select() equivalence in I/O Completion Ports

From Dev

AVR IO Ports can not be global

From Dev

IO Completion port Linux equivalent

From Dev

Business logic in IO completion Port

From Dev

IO Completion port Linux equivalent

From Dev

IOCP: If operation returns immediately with error, can I still receive completion notification?

From Dev

How does the operating system post io completion messages for async io

From Dev

How does the operating system post io completion messages for async io

From Dev

ASIO IO completion callbacks order vs the order of actual IO operations

From Dev

I/O Completion Ports *LAST* called callback, or: where it's safe to cleanup things

From Dev

C# How to perform Asynchrounus I/O using Completion Ports with APM-TAP Patterns on WCF Callback?

From Dev

pandas from mac ports ImportError: No module named io.data

From Dev

Visual c++ 2005 'Ports' : is not a member of 'System::IO'

From Dev

Using system.io.ports c# Windows IoT Univeral

From Dev

IOCP threads - Clarification?

From Dev

Using IOCP with send() and recv()

From Dev

Should WSASocket() be used with IOCP?

From Dev

IOCP recv AND send

From Dev

Should WSASocket() be used with IOCP?

Related Related

  1. 1

    IO Completion Ports and socket send()

  2. 2

    IO Completion Ports and socket WSARecv()

  3. 3

    IO Completion Ports and OVERLAPPED management

  4. 4

    IO Completion Ports and socket send()

  5. 5

    IO Completion Ports and socket WSARecv()

  6. 6

    Asynchronous action methods and IO completion ports

  7. 7

    How to reregister for IO Completion ports for a handle

  8. 8

    io completion ports issue with calling multiple wsarecv or wsasend per GetQueuedCompletionStatus

  9. 9

    IOCP AcceptEx not creating completion upon connect

  10. 10

    Multiple I/O Completion Ports

  11. 11

    select() equivalence in I/O Completion Ports

  12. 12

    AVR IO Ports can not be global

  13. 13

    IO Completion port Linux equivalent

  14. 14

    Business logic in IO completion Port

  15. 15

    IO Completion port Linux equivalent

  16. 16

    IOCP: If operation returns immediately with error, can I still receive completion notification?

  17. 17

    How does the operating system post io completion messages for async io

  18. 18

    How does the operating system post io completion messages for async io

  19. 19

    ASIO IO completion callbacks order vs the order of actual IO operations

  20. 20

    I/O Completion Ports *LAST* called callback, or: where it's safe to cleanup things

  21. 21

    C# How to perform Asynchrounus I/O using Completion Ports with APM-TAP Patterns on WCF Callback?

  22. 22

    pandas from mac ports ImportError: No module named io.data

  23. 23

    Visual c++ 2005 'Ports' : is not a member of 'System::IO'

  24. 24

    Using system.io.ports c# Windows IoT Univeral

  25. 25

    IOCP threads - Clarification?

  26. 26

    Using IOCP with send() and recv()

  27. 27

    Should WSASocket() be used with IOCP?

  28. 28

    IOCP recv AND send

  29. 29

    Should WSASocket() be used with IOCP?

HotTag

Archive