Tag:Handle

  • How to check which program the folder is occupied by under Windows

    Time:2020-11-20

    https://blog.csdn.net/m0_ 37321987 / article / details / 903447621. Right click the task bar to start the task manager; 2. Select the “performance” tab and click “resource monitor”; 3. Click the “CPU” tab, enter the file name or folder name in the “search handle” input box on the right side of “associated handle” and click search; […]

  • [APUE] read UNIX file handle and file sharing process

    Time:2020-11-13

    Some concepts related to documents Before starting with the above figure, I will explain some terms closely related to UNIX files for further discussion and use File descriptor (or FD): describes the type of attributes related to an open file; File descriptor table (FDT): each process has an FDT, in which each table entry is […]

  • [APUE] on Linux / Windows system, you can only set up path no more than_ MAX / MAX_ Path length path?

    Time:2020-11-7

    Questions raised When dealing with the file system path, we usually open a memory area to receive the path, or splice the path and pass it to the system call. This is because the path has a maximum length limit on each system. On windows, the value is max_ Path, generally no more than 260; […]

  • Springboot global exception handling code example

    Time:2020-10-31

    This article mainly introduces the springboot global exception handling code example, the article through the example code introduction is very detailed, has the certain reference study value to everybody’s study or the work, needs the friend may refer to preface: Exception handling is essential in development. Throw and try catch are commonly used. In such […]

  • How to increase the number of network connections in CentOS

    Time:2020-10-27

    CentOS uses external access by default, and the total number of TCP links initiated is less than 28232. It can be calculated by the result of the following command $ cat /proc/sys/net/ipv4/ip_local_port_range What I get here is: 32768 60999 The subtraction of the two is equal to 28231, which means that the number of external […]

  • C ා. WinForm calls WinAPI SendMessage method to send messages across processes

    Time:2020-10-20

    This article is mainly used to do interface form cross process use. In addition, the following: Sending ordinary messages is the same as this type public const int WM_SETTEXT = 12; public const int CB_SETCURSEL = 0X014D; [DllImport(“user32.dll”, EntryPoint = “SendMessage”)] public static extern int SendMessage(int hwnd, int wMsg, int wParam, string lParam); //Send text […]

  • C + + multithreading — thread synchronization

    Time:2020-10-19

    thread It is a single sequential control flow in program execution, the smallest unit of program execution flow, and the basic unit of processor scheduling and dispatching. A process can have one or more threads, and each thread shares the memory space of the program (that is, the memory space of the process). A standard […]

  • Process Doppelgänging

    Time:2020-10-11

    Process injection: process doppelg @ ng    attackers can useProcess DoppelgängingMalicious code is injected into the process to evade process based protection and possible privilege escalation. Process doppelg @ ng is a method of executing arbitrary code in the address space of a separate active process. Windows transaction NTFS (TXF) is introduced in Vista as […]

  • Naming rules of Windows API data types and common Windows Data Types

    Time:2020-10-11

    Naming rules of Windows API data types Basic data attacks include: Byte byte Char character Word Short short Int integer Pointer type naming is usually preceded by LP or P /*The letter P is an abbreviation for pointer, such as the pointer type to word, They are usually “lpword” and “PWORD”, (LP and P used […]

  • How to mix nginx and swote

    Time:2020-10-4

    Need to learn to communicate with friends, please join the exchange group of us, have problems to communicate together, progress together! The premise is that you learn technology. Thanks for reading! Click here to join the group​jq.qq.com   Nginx based on epoll With epoll, in theory, one process can connect infinitely without polling, which really […]

  • Principle, performance and optimization of defer

    Time:2020-10-2

    1. Defer execution time for i:=1;i<10;i++{ defer log.Println(i) } The above simple code can be explainedThe execution order of multiple defers When it appears in the codedeferWhen thedeferThe function to be executed is pressed onto the stack, and then executed after the function is executedDefer stackContent in Previously, go1.13 was allocated by heap, added to […]

  • Principle and example analysis of redis processing high concurrency mechanism

    Time:2020-9-30

    1. Redis is based on memory, and the reading and writing speed of memory is very fast; 2. Redis is single threaded, which saves a lot of time for context switching threads; 3. Redis uses multiplexing technology to handle concurrent connections. The internal implementation of non blocking IO is epoll, and the simple event framework […]