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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:10:01+00:00 2026-05-13T07:10:01+00:00

What is thread? How to create thread in win32 application?

  • 0

What is thread? How to create thread in win32 application?

  • 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-13T07:10:01+00:00Added an answer on May 13, 2026 at 7:10 am

    Thread is a light weight process. A thread can be loosely defined as a separate stream of execution that takes place simultaneously with and independently of everything else that might be happening. A thread is like a classic program that starts at point A and executes until it reaches point B. It does not have an event loop. A thread runs independently of anything else happening in the computer. Without threads an entire program can be held up by one CPU intensive task or one infinite loop, intentional or otherwise. With threads the other tasks that don’t get stuck in the loop can continue processing without waiting for the stuck task to finish.
    Please go through this link for more detail and its comparision with process.

    http://en.wikipedia.org/wiki/Thread_(computer_science)

    Creating thread is very easy for an example go through this….

    This is a very example which creates thread i.e ThreadFun1

    #include<windows.h>
    #include<stdio.h>
    #include<conio.h>
    
    void __stdcall ThreadFun1()
    {
        printf("Hi This is my first thread.\n");
    }
    void main()
    {
        printf("Entered In Main\n");
        HANDLE hThread;
        DWORD threadID;
        hThread = CreateThread(NULL, // security attributes ( default if NULL )
                                0, // stack SIZE default if 0
                                ThreadFun1, // Start Address
                                NULL, // input data
                                0, // creational flag ( start if  0 )
                                &threadID); // thread ID
        printf("Other business in Main\n"); 
        printf("Main is exiting\n");
        CloseHandle(hThread);
        getch();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 355k
  • Answers 355k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer It's better to do this in the web server. However,… May 14, 2026 at 8:40 am
  • Editorial Team
    Editorial Team added an answer If you wan't the left/right parts to be sized to… May 14, 2026 at 8:40 am
  • Editorial Team
    Editorial Team added an answer I believe that the best way to fix this problem… May 14, 2026 at 8:40 am

Related Questions

I have problem creating new instance of excel 2007 using VBA (from Access 2002).
I understand that creating too many threads in an application isn't being what you
I am working on an application written in C. One part of the application
I have an array of Win32 event handles that I'm waiting on using WaitForMultipleObjects().
I need to create a thread in Delphi with the following characteristics: Waits until

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.