473,396 Members | 2,030 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Can someone provide me links to Windows API Thread tutorials.

Can someone provide me links to some Windows API Thread tutorials.
Or links to some books for the same.

Pawan
Feb 13 '07 #1
5 2247
horace1
1,510 Expert 1GB
Can someone provide me links to some Windows API Thread tutorials.
Or links to some books for the same.

Pawan
have a look at
http://www.geocities.com/samuel_supe...ngTutorial.htm
http://en.wikipedia.org/wiki/Beginthread

try this simple program
Expand|Select|Wrap|Line Numbers
  1. #include <iostream>
  2. #include <process.h>
  3.  
  4. using namespace std;
  5.  
  6. void myFunction( void* number){
  7.  
  8.      int myNumber = *(int*)number;
  9.  
  10.      cout << "This is prcosses number: " << myNumber << "\n";
  11.  
  12.      _endthread();
  13.  
  14. }
  15.  
  16. int main(int argc, char *argv[])
  17. {
  18.     int tempNum[10];
  19.  
  20.     for( int i = 0; i <= 9; i++){
  21.          tempNum[i] = i;
  22.          _beginthread( myFunction, 0, (void*)&tempNum[i]);
  23.     }
  24.  
  25.     system("PAUSE");
  26.     return 0;
  27. }
  28.  
Feb 13 '07 #2
sicarie
4,677 Expert Mod 4TB
Can someone provide me links to some Windows API Thread tutorials.
Or links to some books for the same.

Pawan
I think a Google search of 'c++ win32 api' returned some items you would find useful.
Feb 13 '07 #3
The Samuels page did have Threading tutorial but I think its not that interesting that I want. Please help.

I dont want to make any GUI based application, its just that I want to meet certain Synchronizations in my application. So I wanted a tutorial which can provide me with such details in a good manner.

Pawan
Feb 13 '07 #4
horace1
1,510 Expert 1GB
The Samuels page did have Threading tutorial but I think its not that interesting that I want. Please help.

I dont want to make any GUI based application, its just that I want to meet certain Synchronizations in my application. So I wanted a tutorial which can provide me with such details in a good manner.

Pawan
have a look at these tutorials on synchronization
http://www.codeguru.com/cpp/w-d/dislog/win32/article.php/c9823/
http://www.codeproject.com/threads/Synchronization.asp
Feb 13 '07 #5
Thanks, I think this link :

http://www.codeguru.com/cpp/w-d/dislog/win32/article.php/c9823/

will provide me with sufficient details on Thread Synchronization.

Pawan
Feb 14 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Helmut Giese | last post by:
Hello out there, I am a rather experienced C programmer. However, today I got a javascript assignment because someone left (something like: "You're a great programmer - you'll handle this.") and I...
3
by: Scott | last post by:
I have written windows applications using MFC for several years and have frequently used MFC techniques. Now I'm moving to C# .NET WinForm. Mostly C# books describes C# language (sometimes...
0
by: Peter Otten | last post by:
QOTW: "Testing real examples in doctstrings, or external documentation like tutorials, is important because it's very frustrating for people reading the docs if the examples don't work as...
0
by: Peter Otten | last post by:
QOTW: "I have a certain fondness for the first over-100-lines module I wrote for Python" - Alex Martelli "Programmers should be paid by the amount of code that they avoid writing." - Michael P....
0
by: Jack Diederich | last post by:
QOTW: "The bad news is that I seem to be an anti-channeler, so my interest is perhaps not a *good* sign" - Jim Jewett "I'm sorry this letter is so long. I didn't have time to write a shorter...
0
iam_clint
by: iam_clint | last post by:
This is a list of offsite links with good information on them (if you have any links to add please pm me) Remember when looking for examples use examples from 2 or more sites if you are not sure...
13
iam_clint
by: iam_clint | last post by:
Starting a thread for flash tutorials and such.. got a good link? pm me. http://www.kirupa.com http://www.actionscript.org/resourc...ries/Tutorials/ http://www.gotoandlearn.com ...
0
by: Gabriel Genellina | last post by:
QOTW: "Stop thinking of three lines as 'extensive coding' and your problem disappears immediately." - Steve Holden "Hey, did you hear about the object-oriented version of COBOL? They call it...
2
by: vijayrvs | last post by:
SearchCrawler.java The program search crawler used to search the files from the website. From the following program i got 7 compiler error. can any body clarify it and provide me solution. ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.