Multithread Process and Visual FoxPro

Last reviewed: March 5, 1997
Article ID: Q132441
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, versions 3.0, 5.0

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.


Keywords : FxnetworkGeneral kbnetwork vfoxwin
Version : 3.00 5.00
Platform : WINDOWS


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.

Last reviewed: March 5, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.