Software: Apache. PHP/5.4.45 

uname -a: Linux webm056.cluster010.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue
Sep 17 08:14:20 UTC 2024 x86_64
 

uid=243112(mycochar) gid=100(users) groups=100(users)  

Safe-mode: OFF (not secure)

/home/mycochar/www/image/photo/gcc-12.3.0/libgomp/testsuite/libgomp.c/   drwxr-xr-x
Free 0 B of 0 B (0%)
Your ip: 216.73.216.77 - Server ip: 213.186.33.19
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    

[Enumerate]    [Encoder]    [Tools]    [Proc.]    [FTP Brute]    [Sec.]    [SQL]    [PHP-Code]    [Backdoor Host]    [Back-Connection]    [milw0rm it!]    [PHP-Proxy]    [Self remove]
    


Viewing file:     priority.c (1.71 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* { dg-do run } */
/* { dg-set-target-env-var OMP_MAX_TASK_PRIORITY "10" } */

/* This test verifies that the "priority" clause of omp task works as
   advertised.

   Testing the OpenMP task scheduler is a bit tricky, especially when
   trying to determine what ran first (without explicitly calling
   time() and/or synchronizing between threads).  What we do here is
   run in single threaded mode which guarantees that we won't run into
   data races while accessing the "prio" array.

   We give each task a priority from 0..63, while setting
   OMP_MAX_TASK_PRIORITY to 10, which basically gives us 10 lower
   priority tasks, and the rest scheduled to run earlier.  We verify
   that the priority < 10 tasks run last.  */

#include <omp.h>
#include <stdlib.h>

#define N 64

int main()
{
  int tsknum=0, prio[N];
  int max_priority = omp_get_max_task_priority ();
  int saved_tsknum = -1;
  int i;

#pragma omp parallel num_threads(1)
#pragma omp single private (i)
  {
    for (i = 0; i < N; i++)
      #pragma omp task priority(i ^ 1)
      {
    int t;
    #pragma omp atomic capture seq_cst
    t = tsknum++;
    prio[t] = i ^ 1;
      }
    #pragma omp atomic read seq_cst
    saved_tsknum = tsknum;
  }

  /* If any of the tasks have run before all tasks were created, don't
     make any assumption on the task order.  Otherwise, we should have
     tasks with >= max_priority scheduled first in arbitrary order,
     followed by the rest of tasks in decreasing priority order, as
     there is only one thread that can schedule them.  */
  if (saved_tsknum == 0)
    {
      for (i = 0; i < N; i++)
    if (i < N - max_priority)
      {
        if (prio[i] < max_priority)
          abort ();
      }
    else if (i != N - prio[i] - 1)
      abort ();
    }
  return 0;
}

Enter:
 
Select:
 

Useful Commands
 
Warning. Kernel may be alerted using higher levels
Kernel Info:

Php Safe-Mode Bypass (Read Files)

File:

eg: /etc/passwd

Php Safe-Mode Bypass (List Directories):

Dir:

eg: /etc/

Search
  - regexp 

Upload
 
[ ok ]

Make Dir
 
[ ok ]
Make File
 
[ ok ]

Go Dir
 
Go File
 

--[ x2300 Locus7Shell v. 1.0a beta Modded by #!physx^ | www.LOCUS7S.com | Generation time: 0.0062 ]--