Today, there are more and more electronic devices to support WiFi wireless Internet access, in addition to desktops and notebooks, there are netbooks, tablets, mobile phones, e-books, electronic albums and so on. Sharing video, music, or files between different devices can be unconstrained by location. However, we open the sharing is very simple, but after sharing more, you also know that your computer has the files are already shared, on other device
used between processes, the same process can share a cache, and each process maintains its own cache. The implementation of the cache will be followed by a separate article. Shows the structure diagram after the shared cache is enabled.Figure 1As you can see from Figure 1, the two connections in Process1 share the Btshared object, the Btshared object corresponds to a pager object, and the cache is managed by the pager object, so all connections in th
. so) the required connection and cache file. the default cached file is/etc/lD. so. cache. This file stores the list of Dynamic Linked Library names in the sorted order.2) If the shared library file is installed in/usr/local/lib (many open-source shared libraries are installed in this directory) or other "non-/lib or/usr/lib" directories, add the new
Method One, Resource Manager folder
We only need the following settings to see if the file is shared.
Display the folder in Details view, then right-click in the header row of the folder and select "Other";
In the Select Details list, locate and select both shared status and shared, and confir
, where the "metric" value modified to more than "1" on it.
Figure 1
After confirming that the gateway parameter is set correctly, we also need to check the communication protocol settings of the target network card device, because the client system's network neighbor function uses the NetBIOS communication protocol at work, and if the protocol is not carefully cancelled, Then naturally we cannot find shared resources in the Windows Server 2008 syst
indicates that the generated object module needs to use a shared library
(1) Dlopen ()
First parameter: Specifies the name of the shared library, and the specified shared library is found in the following location.
-The environment variable Ld_library_path all directories listed with a semicolon interval.
-a list
Linux interprocess communication-Using shared memory The following will explain another way of communicating between processes, using shared memory. First, what is shared memory as the name implies, shared memory is to allow two unrelated processes to access the same logical memory.
The so-called shared memory is the fastest available IPC form that allows multiple processes to access the same piece of memory space. is designed for inefficient operation of other communication mechanisms. It is often used in conjunction with other communication mechanisms, such as semaphores, to achieve synchronization and mutual exclusion between processes. Other processes can "connect" the same piece of share
file, the Code is as follows:
#include
Run the following command to compile:
gcc mytest.c -ldl -o mytest
-LDL option, indicating that the generated object module must use the Shared Library
(1) dlopen ()
The first parameter: Specifies the name of the shared library, and searches for the specified shared library in the following position.
-The environment varia
→ Security Settings → local policy → user rights assignment" (figure 1 ), in the right column, find the "Deny access to this computer from the network" option, open it, delete the Guest account, and then open the "access to this computer from the network" option, add a guest account in the Properties window. In this way, you can use the Guest account to access the shared resources of the machine from the network. This method is applicable to Windows
the right: if it is a virtual port, such as Adobe PDF and Microsoft XPS document writer, printing can be successful regardless of the network; if it is a local physical port or a TCP/IP Port, when a Windows computer uses a wireless network, the printer cannot be connected to the Mac, or the printer may be printed incorrectly; if it is an Ethernet ethernet wired network, there is no such problem.
From 10.7 lions to Windows 7/Vista:
You cannot create a printer connection by using a
use the function.
In the mytest. c file, the Code is as follows:
#include
Run the following command to compile:
Gcc mytest. c-ldl-o mytest
-Ldl option, indicating that the generated object module must use the Shared Library
(1) dlopen ()
The first parameter: Specifies the name of the shared library, and searches for the specified shared
1. Install VM mare tools
2. Add a shared folder to a Windows Host
1) Select Virtual Machine> Settings2). Select Options3). Click share folder.4) Click the Add button to open the shared folder wizard and click Next
5) enter the name and location of the shared folder and click Next.
Name -- this name will appear in the VMHost folder -- the folder path you want to s
Isdirectory () are used to determine the true properties of the resource corresponding to this handle. If it is a shared folder *, the list of resources within it will be obtained by calling its listing () method. * The list method supports filter mechanism, there are two kinds of filters to use, one is Smbfilefilter, the other is smbfilenamefilter*, both injcif
Shared memory is one of the simplest methods for inter-process communication. The shared memory allows two or more processes to access the same memory, just as the malloc () function returns a pointer to the same physical memory area to different processes. When a process changes the content of this address, other processes will notice this change.
Fast local communication
Because all processes share the sa
The Unified Call uses MMAP () to map a common file to implement shared memory. System V maps files in the SHM of a special file system to implement shared memory communication between processes. That is to say, each shared memory area corresponds to a file in the shm of the special File System (this is linked through the shmid_kernel structure), and will be elabo
Original article link
When we view process information in top, there will be two projects: RSS and vsz, the former is the memory usage of the process itself, and the latter is the total usage of the shared library. Memstat smallProgramYou can view the memory usage of each shared library for your convenience.
You can use tools such as top or System Manager to view the memory usage of each process. However,
server.
Phenomenon three: The shared printer cannot be searched
This is the most common problem for most local area network users when they install shared printers in Windows XP, usually in the form of "Microsoft Windows Network" Information in the list of shared printers, while
Linux Environment interprocess Communication (V): Shared memory (bottom)In the shared memory (above), mainly around the system call Mmap () for discussion, this section will discuss the System V shared memory, and through the comparison of experimental results to illustrate the similarities and differences. System V shared
Today Mayuyu to learn one of the important things in Linux, namely shared memory . We know that there are various IPC communication mechanisms available in Linux, such as signals, semaphores, pipelines, message queues, shared memory, and sockets. It is the most efficient to share memory. Mayuyu will use the following aspects to introduceContens1. Knowledge of shared
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.