Threads and processes

Process (process) thread (thread) folk understanding Processes focus on managing the allocation and scheduling of memory resources, and threads focus on using the CPU to run code Threading is equivalent to the number of pipelines in a factory, and the process is the product being produced on a certain pipeline. Process is the basic unit of allocating resources, and threads are the basic units of execution.。In a purely metaphorical way, if you look at the computer as a whole as a national budget, the process is all kinds of special budgets (education, defense, etc.), and the thread is a more...

Character 16 binary byte relationship

* charThe character store space is one byte.* 16Each character in the decimal system needs to be represented by a 4-bit binary, 0x0 0000, 0xf 1111, or a hexadecimal number of 4 bits.* For example, 42 4D38 04 04 00 00 00 00 00 36 04 00 00,Every two hexadecimal digits are separated, meaning: because one hexadecimal digit is 4 digits, two are 8 digits, or 1 byte, so here is 14 bytes, in bytes, easy to count* * BEFORE DECODE (16 bytes) AFTER DECODE (13 bytes) * +------+--------+------+----------------+ +------+----------------+ * | HDR1 | Length | HDR2 | Actual ...

Spring-Data-JPA @Query annotation Sort sorting

When it is difficult to use method names to achieve the desired query results, we can use @Query to query.@QueryIt is a convenient way to add custom queries.   Using @QueryAnnotation, there are two ways to use annotation, one is JPQL SQL language way, one is native SQL language. 1.User.java Entity class package com.niugang.entity; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; //javax.persistence.Entit...

Oracle Solaris 11.4 GA version released, this will be Solaris’s masterpiece.

  On August 28, local time, Oracle officially announced the release of Oracle Solaris 11.4 GA stable version, nearly three years after the release of the previous version 11.3. Oracle product management director Scott LynnThis is the best version of the four Oracle Solaris versions he has participated in.   The news about Solaris is also a little surprising to you. According to our previous reports, Oracle has erased Solaris 12 from the roadmap and fired all Solaris technicians, although there was no official announcement.B, but you can assume that Oracle Solaris 12 has actually been ...

Installation and unloading of Zabbix Agent

cmd /c “C:\zabbix\bin\win64\zabbix_agentd.exe -c c:\zabbix\conf\zabbix_agentd.win.conf -i”cmd /c “C:\zabbix\bin\win64\zabbix_agentd.exe -c c:\zabbix\conf\zabbix_agentd.win.conf -s” cmd /c “C:\zabbix\bin\win64\zabbix_agentd.exe -c c:\zabbix\conf\zabbix_agentd.win.conf -x”cmd /c “C:\zabbix\bin\win64\zabbix_agentd.exe -c c:\zabbix\conf\zabbix_agentd.win.conf -d” -c :Specify all locations of configuration files-i :Install client-s :Boot client-x :Stop client-d :Uninstall client