Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6556497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:57:06+00:00 2026-05-25T12:57:06+00:00

What is a blocking function or a blocking call ? This is a term

  • 0

What is a blocking function or a blocking call?

This is a term I see again and again when referring to Node.js or realtime processing languages.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T12:57:07+00:00Added an answer on May 25, 2026 at 12:57 pm

    A function that stops script execution until it ends.

    For example, if I had a function in my language that was used to write to a file, like so:

    fwrite(file, "Contents");
    print("Wrote to file!");
    

    The print statement would only be executed once the file has been written to the disk. The whole program is halted on this instruction. This isn’t noticeable for small enough writes, but imagine I had a huge blob to write to the file, one that took many seconds:

    fwrite(file, blob);
    print("Wrote to file!");
    

    The print statement would only be executed after a few seconds of writting, and the whole program would be stopped for that time. In Node.js, this stuff is done asynchronously, using events and callbacks. Our example would become:

    fwrite(file, blob, function() {
        print("Wrote to file!");
    });
    print("Do other stuff");
    

    Where the third parameter is a function to be called once the file has been written. The print statement located after the write function would be called immediately after, whether or not the file has been written yet. So if we were to write a huge enough blob, the output might look like this:

    Do other stuff
    Wrote to file!
    

    This makes applictions very fast because you’re not waiting on a client message, a file write or other. You can keep on processing the data in a parallel manner. This is considered by many one of the strengths of Node.js.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This boost udp server doesn't function as expected. It is identical to the blocking
Why is it that if I call a seemingly synchronous Windows function like MessageBox()
This is what I'm trying to accomplish. I'm making a remote call to a
Consider the following function that implements non-blocking access to only the one thread. public
I need make UIAlertView blocking. Because i have function and i need to return
On my website there is a button that just used to call a function
I am wrapping a C function which performs a blocking operation (select) and then
I want to call a web service from another web service in a non-blocking
When, exactly, does the BSD socket send() function return to the caller? In non-blocking
What's the simplest way of blocking a thread until a file has been unlocked

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.