Answer:
The programming code can be found in the explanation part, please go through it.
Explanation:
Code:
#include<stdio.h>
#include<stdlib.h>
#include <pthread.h>
// function check whether a number
// is prime or not
int isPrime(int n)
{
// Corner case
if (n <= 1)
return 0;
// Check from 2 to n-1
for (int i = 2; i < n; i++)
if (n % i == 0)
return 0;
return 1;
}
void* printPrimes(void *vargp)
{
int *n = (int *)vargp;
int i=0;
for (i=2;i<=n;i++)
{
if (isPrime(i)) printf("%d\n", i);
}
}
// Driver Program
int main(int argc, char* argv[])
{
int n = atoi(argv[1]);
pthread_t tid;
pthread_create(&tid, NULL, printPrimes, (void *)n);
pthread_exit(NULL);
return 0;
}
Answer: maybe not put cheats no secret or easter eggs or hard challenges im not sure
Explanation:
The answer is : Ergonomics
. It is about ensuring that the work system is favorable to good performance and work effectiveness and consequently, that the work environment is compatible with the health, safety and comfort of the worker. It reduces hazards in the working environment.
It is targeted at one person specifically. More work for the attacker, but higher chances of obtaining sensitive information.
Answer:
Packets with unknown source addresses will be dropped.
Explanation:
This question is incomplete, we must add the number "1" in Fa0/1.
Which event will take place if there is a port security violation on switch S1 interface Fa0/1?
There are four options:
- A notification is sent.
- A syslog message is logged.
-The interface will go into error-disabled state.
- Packets with unknown source addresses will be dropped.
In this specific example, we have configured a security protection mode, if there is an unknown MAC address, every package will be dropped.
We can configure in our switch with different Mac address, if there is not a MAC address in our configuration, the security mode will active, and we could receive any package.