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 6570773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:47:53+00:00 2026-05-25T14:47:53+00:00

I would like to know the difference between a thread entry function: void* thread_function

  • 0

I would like to know the difference between a thread entry function:

void* thread_function (void* parameter)
{
   struct parameter * thread_data = (struct parameter *)parameter;
   char buffer[20];
   int temp;
   printf_buffer(buffer);
}

and a normal function:

void printf_buffer(char *buffer)
{
    printf("buffer is %s",buffer);
    return;
}

I know a thread entry is called when a thread is created, and how normal functions are used.

Are there any other differences between thread entry functions and a normal functions in terms of execution , behavior, or creating instances?

  • 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-25T14:47:54+00:00Added an answer on May 25, 2026 at 2:47 pm

    There is no difference in the language between what you call a “thread function” (although Justin has edited to call it a “thread entry function”) and what you call a “normal function”.

    With pthreads, the so-called “start routine” of a thread is a function that takes a single void* parameter and returns void*, but there’s nothing to stop you calling the same function “normally”.

    When the start routine of a thread returns, the thread finishes execution, but that’s just because the threading implementation calls it, and then finishes the thread. It’s not because of anything special to do with the start routine itself.

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

Sidebar

Related Questions

I would like to know the difference between this: $('#foo').click(function() { alert('User clicked on
I would like to know difference between static variables and global variables in terms
I would like to know what the difference between these instructions is: MOV AX,
I would like to know what is the difference between initializing a static member
Just I would like to know, is there any difference between if (a==5) or
I would like to know if there is a difference in speed between computing
I would like to know the difference between KEEP and UNCATLG. As per my
I would like to know the difference between Struts 1.x and Struts 2.x
I would like to know the difference between GWT, GWT-RPC, EXT-GWT and Smart GWT.
Basically I would like to know the difference between: :w and :w! or :wq

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.