# Programación multiproceso:
 -	Ejecutables. Procesos. Servicios.
 -	Estados de un proceso.
 -	Hilos.
 -	Programación concurrente.
 -	Programación paralela y distribuida.
 -	Comunicación entre procesos.
 -	Gestión de procesos.
 -	Sincronización entre procesos.
 -	Programación de aplicaciones multiproceso.

# Conceptos:
 - Multiproceso
 - BCP

# Conexión SSH
* https://www.jesusninoc.com/09/24/ssh-desde-powershell/

# Pasar parametros en scripts (PowerShell y Bash)
## PowerShell
```PowerShell
Param(
    [string] $Primero,
    [string] $Segundo = "valor por defecto",
    [switch] $Tercero = $false,
    [bool] $Cuarto,
    [int] $Quinto
)
Write-Host $Primero
Write-Host $Segundo
Write-Host $Tercero
Write-Host $Cuarto
Write-Host $Quinto
```
## Bash
```Bash
#!/bin/bash
echo $0 # Script name
echo $1 # 1st parameter
echo $2 # 2nd parameter
echo $3 # 3rd parameter
```

# Función main en C
## Convert the char in command line argument into int type
https://www.jesusninoc.com/2015/10/08/convert-the-char-in-command-line-argument-into-int-type/


# Función main en Java
```Java
public class Test{
    public static void main(String[] args) {
        String[] x = {"1","2","3"};
        System.out.print("3".equals(x[2]));
        System.out.print("3".equals(args[2]));
    }
}
```

## How do I compare strings in Java?
https://stackoverflow.com/questions/513832/how-do-i-compare-strings-in-java

```Java
public class Test{
    public static void main(String[] args) {
        "test".equals("test")
    }
}
```

## Java – Convert String to int
https://www.mkyong.com/java/java-convert-string-to-int/

## Command-Line Arguments
https://docs.oracle.com/javase/tutorial/essential/environment/cmdLineArgs.html

## Strings In Java
https://androidexample.com/Strings_In_Java/index.php?view=article_discription&aid=149&aaid=163

# Kotlin

## Función main en Kotlin

```Kotlin
/**
 * Line 13 demonstrates string templates and array access.
 * See this pages for details:
 * http://kotlinlang.org/docs/reference/basic-types.html#strings
 * http://kotlinlang.org/docs/reference/basic-types.html#arrays
 */

fun main(args: Array<String>) {
    if (args.size == 0) {
        println("Please provide a name as a command-line argument")
        return
    }
    println("Hello, ${args[0]}!")
}
```

## Creating Collections In Kotlin
https://try.kotlinlang.org/#/Kotlin%20in%20Action/Chapter%203/3.1/3.1_2_CreatingCollectionsInKotlin1.kt
```Kotlin
fun main(args: Array<String>) {
    val strings = listOf("first", "second", "fourteenth")
    println(strings.last())
    val numbers = setOf(1, 14, 2)
    println(numbers.max())
}
```

## Get location android Kotlin
https://stackoverflow.com/questions/45958226/get-location-android-kotlin
