473,409 Members | 1,934 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,409 software developers and data experts.

multitasking

Hi,

I need to learn how to make a multitasking.

I have 2 process.

Process 1 : runs a computing some number of times. Lets say it is N.

Process 2 : As soo nas the process1 starts, process 2 will do something
else.

As soon as the process1 reaches the Nmax, process 2 will be stoped.

Where can I find such an example? I use VC++ 7.0 but any code would be a
good example, of course it is not much different than the C++...

Regards..
Jul 23 '05 #1
5 2166
It looks like your question is not really about C++ (which contains
no support for multitasking). Rather, you are asking about process
management and communication under MS-Windows. You might want to ask
again in one of the windows newsgroups.

Jul 23 '05 #2
sorry

so which windows group is O.K. to ask this question Matt.. I mean
comp.os.windows.win32 or anything else?
Jul 23 '05 #3
kak3012 wrote:
sorry

so which windows group is O.K. to ask this question Matt.. I mean
comp.os.windows.win32 or anything else?

At first I suppose you are looking for multithreading and not multitasking.
If you are using Visual Studio 2003, then you are probably looking for
multithreading under .NET.
A nice beginner to intermediate level book that you can read, and covers
all .NET facilities, and covers multithreading, is "Visual C++ .NET How
To Program" by Deitel.

http://vig.prenhall.com/catalog/acad...373774,00.html
BTW the topic of clc++ is the C++ language itself as defined by the ISO
standard, and this subject is off topic here.
You should ask in microsoft.public.dotnet.languages.vc newsgroup.
If it doesn't appear in your news server use the public MS news server:

msnews.microsoft.com


--
Ioannis Vranos

http://www23.brinkster.com/noicys
Jul 23 '05 #4
"kak3012" <s0*****@student.dtu.dk> wrote in message
news:d0**********@gnd.k-net.dk
sorry

so which windows group is O.K. to ask this question Matt.. I mean
comp.os.windows.win32 or anything else?


microsoft.public.vc.language
--
John Carson
Jul 23 '05 #5
kak3012 wrote:
Hi,

I need to learn how to make a multitasking.

I have 2 process.

Process 1 : runs a computing some number of times. Lets say it is N.

Process 2 : As soo nas the process1 starts, process 2 will do something
else.

As soon as the process1 reaches the Nmax, process 2 will be stoped.

Where can I find such an example? I use VC++ 7.0 but any code would be a
good example, of course it is not much different than the C++...

Regards..


You _can_ multitask using C++.

Break up Process1 into functional pieces; or if it is iterative,
have it perform one or a few iterations.

Next, modify Process2 to call Process1 (or a piece of it).

One of the objectives is to figure out how many and at what
locations within Process2 to call Process1. That is left as
your exercise.

The above assumes that Process1 and Process2 are functions within
the same program. Executing other programs or communicating
with them is outside the discussion scope of this newsgroup.
--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.comeaucomputing.com/learn/faq/
Other sites:
http://www.josuttis.com -- C++ STL Library book
http://www.sgi.com/tech/stl -- Standard Template Library

Jul 23 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Phil Frost | last post by:
A brief introduction for python-list: Unununium is an OS being developed in Python wherever possible. This message is phrased for the Unununium list, but as the questions are about hacking cPython,...
5
by: PeteCresswell | last post by:
Access tends to take over my machine when I run long queries. The queries in question are Append queries. Some of the jobs we're talking about run 45 minutes to an hour...so the loss in...
15
by: Wilfried Mestdagh | last post by:
Hi, After various question (here and on other places) it seems prremtive multitasking is the way to go with .NET. But wat about coorporative multitasking ? While this was so powerfull and easy...
6
by: Mat N | last post by:
Hello access friends, (Originally posted on access.formsprogramming which I think was the wrong place) I'm precalculating a bunch of data for my clients as per a profile I have for each of...
11
Niheel
by: Niheel | last post by:
http://bytes.com/images/howtos/information_overloaded.jpgPaul Graham wrote an interesting article a few months back about how the internet is leading to information overload for information workers...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.