KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q132441: INFO: Multithread Process and Visual FoxPro

Article: Q132441
Product(s): Microsoft FoxPro
Version(s): 
Operating System(s): 
Keyword(s): kbnetwork kbvfp300 kbvfp500
Last Modified: 13-AUG-1999

-------------------------------------------------------------------------------
The information in this article applies to:

- Microsoft Visual FoxPro for Windows, versions 3.0, 5.0 
-------------------------------------------------------------------------------

SUMMARY
=======

The term process is a multitasking concept used in Windows 95 and Windows NT. A
process represents a running instance of an application. It has resources such
as files, memory, and threads. A thread represents a single path of execution of
the process. In Windows 95 and Windows NT, an application can spawn multiple
threads by calling the Win32API function CreateThread().

Under Windows 95 and Windows NT, Visual FoxPro exists in two threads. All
applications created in Visual FoxPro also exist in two threads, and there is no
Visual FoxPro command or operation that spawns an additional thread. Explicitly
calling the CreateThread API function via the DECLARE-DLL command from a program
creates a thread, but Visual FoxPro code won't execute in that thread;
therefore, it is not recommended.

Because Win32s does not support multiple threads for a single process, Visual
FoxPro exists in one thread in Windows and Windows for Workgroups.

REFERENCES
==========

"Inside Windows 95," by Adrian King, published by Microsoft Press.

Additional query words:

======================================================================
Keywords          : kbnetwork kbvfp300 kbvfp500 
Technology        : kbVFPsearch kbAudDeveloper kbVFP300 kbVFP500
Issue type        : kbinfo

=============================================================================

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.